Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix inclusion of
random.js
in HTML output (#6935)
* Revert removal of random gallery script This script was removed in #6933 [1] even though it is still in use on our front page [2]! Therefore revert this particular change of #6933. [1] #6933 [2] scikit-image/skimage-web#85 * Merge random.js generation into sphinx_extensions.py Previously, `gallery_random.py` would generate the appropriate `random.js` file with the `source/_static` as the target folder after Sphinx itself was done. However, this meant that `random.js` would not be included in our CI's build artifacts (locally it's included if sphinx is run a second time). Inclusion in skimage_extensions.py with a trigger on the Sphinx event "build-finished" ensures that the appropriate output path can be determined from Sphinx's configuration. This inclusion seems to have been broken at least since 2020-08-15 [2]. [2] http://web.archive.org/web/20200815074104/https://scikit-image.org/
- Loading branch information