-
Notifications
You must be signed in to change notification settings - Fork 12
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
Switch to (branded) alternate sphinx theme #87
Comments
…ich are much more manageable, with their own easier to find rendered pages. Closes #61 Whilst splitting this file into many smaller files, a number of additions and changes were made to the documentation, including: + Adds (basic) documentation for: + IBM XL compilers (Closes #61) + Amber (Part of #78) + EMAN2 + GRACE + Gromacs (Closes #37, part of #79) + NAMD + OpenMM + PLUMED + Singularity (Apptainer) (Closes #49) + Generic python information, with more detailed conda usage (Closes #47) + nvidia-smi (Closes #75) + HECBioSim project + IBM Collaboration project + Boost Module + FFTW module + NVTX library + PLUMED library + VTK + CMake + Make + Creates new `guides` section + Migrates the `profiling` documentation into the guides section + Migrates the `wanderings` about CUDA into the guides section + Adds some notes/warnings about potential WMLCE + RHEL 8 incompatibility. Larger changes still required (#63) + CSS/JS/_templates changes for a useful sidebar with the bootstrap theme with split source files + New issue #87 opened to consider replacing the theme to an actively maintained theme. + Removes relations.html from the sidebar, as styling issues were difficult to resolve nicely (Closes #77) + Adds sphinxext-rediraffe plugin for redirects for moved .html files (see conf.py) + Assorted RST improvements (links, crossrefs, quoteblocks, code-block, note, etc.) + Clarify module loads for RHEL 7 vs RHEL 8 where appropriate (Part of #73). + Assorted other improvements throughout the documentation History was a little messy, so has been squashed to avoid `.git` bloat.
Some testing of other sphinx themes without significant branding for reference, to see if they resolve the issues above. Further branding would be possible if the switch is deemed worthwhile. sphinx-rtd-themefuroFuro has a user-toggleable dark and light theme, It should be possible to configure the default or disable this if it complicates and custom css. LightDarkpydata |
…ich are much more manageable, with their own easier to find rendered pages. Closes #61 Whilst splitting this file into many smaller files, a number of additions and changes were made to the documentation, including: + Adds (basic) documentation for: + IBM XL compilers (Closes #61) + Amber (Part of #78) + EMAN2 + GRACE + Gromacs (Closes #37, part of #79) + NAMD + OpenMM + PLUMED + Singularity (Apptainer) (Closes #49) + Generic python information, with more detailed conda usage (Closes #47) + nvidia-smi (Closes #75) + HECBioSim project + IBM Collaboration project + Boost Module + FFTW module + NVTX library + PLUMED library + VTK + CMake + Make + Creates new `guides` section + Migrates the `profiling` documentation into the guides section + Migrates the `wanderings` about CUDA into the guides section + Adds some notes/warnings about potential WMLCE + RHEL 8 incompatibility. Larger changes still required (#63) + CSS/JS/_templates changes for a useful sidebar with the bootstrap theme with split source files + New issue #87 opened to consider replacing the theme to an actively maintained theme. + Removes relations.html from the sidebar, as styling issues were difficult to resolve nicely (Closes #77) + Adds sphinxext-rediraffe plugin for redirects for moved .html files (see conf.py) + Assorted RST improvements (links, crossrefs, quoteblocks, code-block, note, etc.) + Clarify module loads for RHEL 7 vs RHEL 8 where appropriate (Part of #73). + Assorted other improvements throughout the documentation + Adds the sphinx-copybutton plugin, for easy to copy code-block contents. History was a little messy, so has been squashed to avoid `.git` bloat.
Furo looks the best if it can be made to include in-page navigation. |
Furo's developer / maintainer has marked issues for combining the site navigation and page navigation into a single sidebar as I'm not convinced the split site and page toc is the better option, especially when both fold/collapse independently so the second toc may not be found by users. We could probably override furo's toc implementation to include the page navigation, but this might be a decent amount of effort, so I'll likely fallback to
|
Material themeA few other HPC centres (Archer2, baskerville) use However it does fold the site navigation quite early, and the mobile navigation lackas any indication of depth: It is not clearly under development/active maintenance however. Sphinx-book-themeThe sphinx book theme mentioned in the previous comment seems like a good option for a non-RTD theme which splits the navigation and in-page tocs. My only real complaint so far is the in-page highlighting of the current element does not behave well with short sections, as it skips some headings depending on content length. I.e. the I'd also like the topbar to include the n8cir logo when the side-nav is folded away, but i've not looked into this yet. I'll spend a short amount of time customising/branding Additionally, the https://sphinx-book-theme.readthedocs.io/en/latest/customize/announcements.html |
Simple customisation of the sphinx-book-theme, pushed to If selected over RTD, there's still a bit more work to be done
So far switching to this has greatly reduced the amount of custom CSS required to workaround issues, and fixes the major problems with the boostrap theme highlighted at the start of this issue. |
After some (minor) customisation / branding of the If selected over the book theme, it would still benefit from:
|
I've set up temporary hosted demos of the RTD and book themes via ghpages + repo forks for demos withotu local builds being required:
|
While working on splitting the source / using
toctree
more heavily, issues with the sphinx-bootstrap theme have been cropping up that are hard to workaround, or are not trivial to resolve.This includes:
<pre>
contentinfo
andwarning
blocks, which are difficult to restyle without changing the theme (Bold colours are good for headers, but make reading longer text more difficult)Many of these would be resolved by switching to the
sphinx-rtd-theme
, with rebranding of colours.This is essentially duplicating previous work, but it should be less effort than manually modifying the sphinx-bootstrap-theme to address the issues highlighted above.
As other potential alternative themes, furo and pydata-sphinx-them are potential alternatives
If any big theme changes are made, it would also be worthwhile ensuring accessibility guideleines are met (#42)
The text was updated successfully, but these errors were encountered: