Add publish date to HTML output
Update __init__.py in the starlingxdocs_plus theme folder to restore the publish date info in footer. Change-Id: I5330f2e213cf07eefecf734f404614c9b6fca65b Signed-off-by: MCamp859 <maryx.camp@intel.com>
This commit is contained in:
parent
d896e0d442
commit
04dd295ee9
@ -1,10 +1,12 @@
|
||||
import openstackdocstheme as osdt
|
||||
import datetime
|
||||
|
||||
def _html_page_context(app, pagename, templatename, context, doctree):
|
||||
context['this_version']=app.config.starlingxdocs_plus_this_version
|
||||
context['other_versions']=app.config.starlingxdocs_plus_other_versions
|
||||
context['bug_project'] = app.config.starlingxdocs_plus_bug_project
|
||||
context['bug_tag'] = app.config.starlingxdocs_plus_bug_tag
|
||||
context['last_updated'] = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
|
||||
|
||||
def setup(app):
|
||||
app.add_html_theme(
|
||||
|
Loading…
x
Reference in New Issue
Block a user