Bug 14121

Summary: Implement sphinx switchers.js for bitbake
Product: [Documentation] BitBake User Manual Reporter: Nicolas Dechesne <ndec13>
Component: bitbake-manualAssignee: Michael Opdenacker <michael.opdenacker>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: michael.opdenacker, ndec13, randy.macleod, richard.purdie
Version: 3.2   
Target Milestone: 5.1 M2   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Nicolas Dechesne 2020-11-09 09:28:13 UTC
In Sphinx docs, we added switchers.js to switch back and forth between:
* regular page view vs mega manual 'style' view
* all versions

However the implementation of switchers.js is rather specific to yocto-docs and does not work with with bitbake *if* we use bitbake versions (1.48 vs 3.2). 

So we should implement the 'version' switcher differently for bitbake or yocto-docs. 

An alternative would be to use the YP version for Bitbake user manual. e.g. in the 1.48 branch of bitbake, in conf.py set current_version to 3.2, not 1.48.
Comment 1 Randy MacLeod 2022-11-03 15:18:50 UTC
Michael, can you work with Nico on this one?
Comment 2 Michael Opdenacker 2024-06-11 13:11:22 UTC
We now have switchers.js (doc/sphinx-static/switchers.js) that make it possible to access the BitBake manual corresponding to a given Yocto release name.

See https://docs.yoctoproject.org/bitbake/2.8/index.html
Closing this bug.