Add proper xkey tags to docs 404 pages
authorMagnus Hagander <magnus@hagander.net>
Mon, 16 Aug 2021 12:15:38 +0000 (14:15 +0200)
committerMagnus Hagander <magnus@hagander.net>
Mon, 16 Aug 2021 12:17:10 +0000 (14:17 +0200)
commitfc1d49da217ae3cb1e229ace4d805fb69bb552b9
treed0856500be104438ebfea7fa1c87e481622febb2
parentd4de73ec5b8b2fdbfa9ab092c9b804cf564efb08
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.
docs/xkey.rst
pgweb/docs/views.py