poky/documentation/sphinx-static
Quentin Schulz ee6718fe08 docs: sphinx-static: switchers.js.in: fix broken switcher for branches
The switcher expects URL subpath to match the "release" used by sphinx
to build the documentation. Branches, however, are put in a subpath
after their name (e.g. dunfell) while sphinx sets the "release" to
X.Y.999. This means the switcher cannot replace correctly the path to
switch between releases/versions.

Let set_versions.py inject the list of release names into the
switchers.js.in file so it can check whether the subpath is one of the
release names in which case it needs to be stripped.

Cc: Quentin Schulz <foss+yocto@0leil.net>
(From yocto-docs rev: 5ef3d129b8d0d8ae98a694103930988a46285525)

Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-04-20 17:25:33 +01:00
..
switchers.js.in docs: sphinx-static: switchers.js.in: fix broken switcher for branches 2022-04-20 17:25:33 +01:00
theme_overrides.css docs: Fix license CC-BY-2.0-UK -> CC-BY-SA-2.0-UK 2020-10-08 11:28:30 +01:00
YoctoProject_Logo_RGB.jpg sphinx: add Yocto project logo 2020-09-17 10:09:33 +01:00