chiark / gitweb /
documentation: encode format version into search data filename.
authorVladimír Vondruš <mosra@centrum.cz>
Wed, 17 Jul 2019 16:33:41 +0000 (18:33 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Thu, 18 Jul 2019 11:34:34 +0000 (13:34 +0200)
commit4c82d276c5277d83c75ef93f86c633d8a47b44be
tree10e58d462b6cc4a3d258290e031d0112b352b3b9
parenta89f9979d0304b6a826fb0cd2c1359ec9ff150bc
documentation: encode format version into search data filename.

The browser having a stale data (and a stale script) cached is okay-ish
as things still mostly work, but having a stale data with a script
expecting a new version or vice versa is *bad*, so prevent that by
having the script always download file of the exact version it expects.

This is a bit less useful with docs served from local filesystem (as
the filename is encoded in HTML pages rather than in the script), but
there I don't assume the browser is doing much caching so that should be
okay.
23 files changed:
documentation/_search.py
documentation/doxygen.py
documentation/python.py
documentation/search.js
documentation/templates/doxygen/base.html
documentation/templates/python/base.html
documentation/test_doxygen/layout/pages.html
documentation/test_doxygen/layout_generated_doxyfile/index.html
documentation/test_doxygen/layout_minimal/index.html
documentation/test_doxygen/layout_search_binary/index.html
documentation/test_doxygen/layout_search_opensearch/index.html
documentation/test_doxygen/test_layout.py
documentation/test_doxygen/test_search.py
documentation/test_doxygen/test_undocumented.py
documentation/test_doxygen/undocumented/File_8h.html
documentation/test_doxygen/undocumented/annotated.html
documentation/test_doxygen/undocumented/classClass.html
documentation/test_doxygen/undocumented/dir_4b0d5f8864bf89936129251a2d32609b.html
documentation/test_doxygen/undocumented/files.html
documentation/test_doxygen/undocumented/group__group.html
documentation/test_doxygen/undocumented/namespaceNamespace.html
documentation/test_doxygen/undocumented/structNamespace_1_1ClassInANamespace.html
documentation/test_python/layout/index.html