Polyconseil/sphinx-dust

Request: Flexibility in descriptions

Closed this issue · 2 comments

I would like to be able to pass a custom setting to Dust which allows me to author my own message phrasing.

  1. The "authored on" message and preferred datestamp format.
  2. The "proofread on" message and preferred datestamp format.
  3. The concatenation character.

I've made the following change for myself, but it would be nice if I could change this with a setting without having to edit the source code directly.

written_strf = datetime.datetime.strftime(written_on, _("Authored on %A, %Y-%m-%d"))
proofread_strf = datetime.datetime.strftime(proofread_on, _("reviewed for accuracy on %A, %Y-%m-%d"))

content = statemachine.StringList(['; '.join([written_strf, proofread_strf])])
lburg commented

I've opened a PR including some changes that should solve your problem, please check it out and tell me if this looks good to you!

I've commented. Thank you. :)