-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move indexsidebar.html and switchers.js to docsbuild-scripts #90
Comments
I like this idea a lot. I'm not sure what you are suggesting replacing the index sidebar with stable -> https://docs.python.org/ |
It's in production now. Still to do:
|
Done. |
The idea is that the cpython Doc/ repository should just care about building the documentation, not linking to other builds and languages from docs.python.org.
Building multiple versions, multiple languages, and linking them together is the role of docsbuild-scripts.
This would also avoid the need to update
switchers.js
andindexsidebar.html
on every cpython branch for every new cpython release and every new language.What would need to change:
switchers=1
fromcpython/Doc/Makefile
if switchers
block incpython/tools/templates/layout.html
. it already has an alternative. Add anid
to the<li>
so it can be easily found by the newswitchers.js
as the placeholders are dropped.switchers.js
to docsbuild-scripts and make it use the<li>
new id instead of placeholders if they are not found, and maybe fallback to find the place from other ways so it can work on old branches without commiting to them.We then need a clean way for docsbuild-scripts to edit the HTML to make it load switchers.js.
The text was updated successfully, but these errors were encountered: