docs: change sphinx theme to Clarity#995
Open
liborjelinek wants to merge 3 commits intosyncthing:mainfrom
Open
docs: change sphinx theme to Clarity#995liborjelinek wants to merge 3 commits intosyncthing:mainfrom
liborjelinek wants to merge 3 commits intosyncthing:mainfrom
Conversation
Author
|
Because I introduced the first external dependency (the theme itself 😄), I had to change the HTML build step. But we now have an egg-chicken problem here. The theme requires a different structure for |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I am proposing a new theme for documentation. This is a follow-up and closes #991. It includes the "Edit on GitHub" link and the version select dropdown.
The Clarity theme already has built-in support for version selection. It is less visually intrusive than today's banner
It is also JS-free because the version list is validated and prepared during the Sphinx build. It allowed me remove former JS and legacy jQuery.
I also explicitly list dependencies in
requirements.txt(only Sphinx and Clarity theme).Lastly, I have changed
lsver.goscript a bit to conform Clarity theme's expected structure (changed sort order (oldest→latest becomes latest→oldest) and changed output from{"entries": [...]}to an array of{"version": "..."}objects.You can preview it at https://showcase.readcraft.io/syncthing/. But keep in mind that version selection doesn't work because, for faster working, I am deploying to the showcase website only the latest version's files.