Enhance the xkey tags set on documentation pages
authorMagnus Hagander <magnus@hagander.net>
Tue, 18 May 2021 07:20:13 +0000 (09:20 +0200)
committerMagnus Hagander <magnus@hagander.net>
Tue, 18 May 2021 07:39:02 +0000 (09:39 +0200)
commitf15ffc84b0fc5e954426441581fd01052c07aa96
tree32a3c48dce02df74a5ae9cd80238964250b8e8dd
parentff7058fe58593df58662b907b889e6ae1b903b97
Enhance the xkey tags set on documentation pages

* For 'current' docs, *also* set the xkey pgdocs_current. Otherwise when
  a new major release is turned into current, the loader purge wouldn't
  be able to replace it, only replace the devel version.
* Set the pgdocs_<version> key on the release notes pages under
  /release/ (this is what triggered me to look at this)
* Set the pgdocs_all key for index pages such as /docs/ and /docs/release/. This
  will be purged every time, making sure we have an up-to-date list of
  versions.
* Set the key pgdocs_pdf for any pages that have PDF file information in
  them, so we can purge the list when new PDFs are uploaded.
pgweb/docs/views.py