From 04dd295ee993e2d7b4a4cde7561467471166bc1d Mon Sep 17 00:00:00 2001 From: MCamp859 Date: Fri, 14 May 2021 10:09:01 -0400 Subject: [PATCH] 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 --- doc/source/_themes/starlingxdocs_plus/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/source/_themes/starlingxdocs_plus/__init__.py b/doc/source/_themes/starlingxdocs_plus/__init__.py index ea977fe89..1276df61f 100644 --- a/doc/source/_themes/starlingxdocs_plus/__init__.py +++ b/doc/source/_themes/starlingxdocs_plus/__init__.py @@ -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(