Add proper xkey tags to docs 404 pages

Since we purge docs pages based on the version they are for, we need to
tag the 404 pages with version as well, when available. Without that,
any page that had been requested returning a 404 (such as somebody or
some tool polling for release notes on a version that hasn't been
released yet) would not get purged when new docs are loaded, which
results in the 404 staying around even after the actual docs are
updated.
This commit is contained in:
Magnus Hagander
2021-08-16 14:15:38 +02:00
parent d4de73ec5b
commit fc1d49da21
2 changed files with 18 additions and 7 deletions

View File

@ -17,7 +17,9 @@ pgdocs_current
Set on all documentation pages that are in the current version at
the time of setting.
pgdocs_all
Set on documentation pages that are cross-version, such as index pages.
Set on documentation pages that are cross-version, such as index pages,
as well as on 404 pages for versions that is unknown (in case this version
is loaded later).
pgdocs_<version>
Set on documentation of the specified version.
pgdocs_pdf