Ignore 'last_updated' for auto-generated pages
We (nova) see the following warnings in our documentation builds: [openstackdocstheme] could not determine last_updated for 'genindex' [openstackdocstheme] could not determine last_updated for 'search' This makes sense, since these pages are automatically generated by Sphinx. Filter out warnings to remove these. Change-Id: Ic85bc4356bc5bf0f5bf5771d4e81bb2be72f6ff7 Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
parent
a8a7978410
commit
6c9250b258
@ -84,9 +84,13 @@ def _get_last_updated(app, pagename):
|
||||
'[openstackdocstheme] Last updated for %s is %s',
|
||||
pagename, last_updated)
|
||||
return last_updated
|
||||
LOG.info(
|
||||
'[openstackdocstheme] could not determine last_updated for %r',
|
||||
pagename)
|
||||
|
||||
if pagename not in ('genindex', 'search'):
|
||||
LOG.info(
|
||||
'[openstackdocstheme] could not determine last_updated for %r',
|
||||
pagename,
|
||||
)
|
||||
|
||||
return _default_last_updated
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user