-
Notifications
You must be signed in to change notification settings - Fork 31
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
Update Sphinx theme re move to latest bootstrap #493 #494
Update Sphinx theme re move to latest bootstrap #493 #494
Conversation
In updating from a now very old bootstrap of v3.3.4/5, to v5.3.3, we have a number of breakages. Includes: - Removal of redundant jslibs & css files.
@FroggyFlox & @Hooverdan96 E.g. (when using a loopback server as per our docs): http://0.0.0.0:8000/installation/quickstart.html Compared with our current PRODUCTION master branch which displays the same area just fine: With this branch, some overrides have been removed, but I think the miriad changes in bootstrap have again foiled our efforts here. Any ideas, I know we've seen the like of this a while back. Just wanted to get the bootstrap updated fully, as we will be doing the same in the Web-UI (next testing channel) as-well, so should server to help with that effort also. |
When you check a page like |
I think you're into it here, @Hooverdan96 ... That indeed reminds me we had that issue a while ago where a lot of our text/code was showing as barely visible and I do believe this is how we fixed it then... Not sure why there are still some of that if that is the case, though. |
@Hooverdan96 Re:
Yes, it is the same with all our I think what we need is far less override layers !!! So we don't keep getting tripped up every time we update anything here. |
OK, some progress, in our own theme we had a disabled override:
re-instating, now we seem to have lost some works-by-accident arrangement we had previously via Sphinx bootstrap highlight on console highlight !!
And we have: Bit harsh but at least it's narrowed down a tad. I'll look to see if we can remove this override entirely as I suspect is was grabbed from some auto-generated theme that may now no-longer apply. Especially give we now have bootstrap doing different overrides now. |
The existing pygments_style in conf.py was not listed in comment reference added. Move to `native` as this is found in all themes. Re-enables highlight background override (in theme) for .highlight.
This has been non-functional in production for some time now; removing, in the interests of minimising our doc html dependencies.
Simplifies layout and saves space. Includes minor logo vertical centering.
Unspecified code-block:: elements displayed sub-optimally. Thus far we use `console`, `text`, 'bash', and `yaml` in order of frequency of use. All appear to format acceptably. Includes - incidental warnings format element addition: scrutiny.rst.
Our most recent linkcheck fail:
But the site now looks to be good when visited using a browser! |
Not that I have understood all that much, but there now seems to be a more simplified/elegant way to manage overrides that came with bootstrap 4, but I let you figure out what that really means :): |
@Hooverdan96 Thanks. I did notice a number of significant changes re CSS etc, and this was all part of the problem: yet more layers. And we definitely have some more simplifications & modernisations that we can work on here. From your link the following looks to pertinent: https://getbootstrap.com/docs/5.3/customize/css-variables/ I am keen to reduce our Sphinx theme to a minimum, but at least in this phase we fixed the collapsed bar fail and did-away with a number of older js libs. So bit-by-bit. In time we can fully modernise / minimise our remaining overrides to hopefully ease future development here. We do have a similar update lined up for the Rockstor Web-UI in our next testing phase. So all good re gaining recent familiarity. |
Fixes #493
This pull request's proposal
Update our Sphinx bootstrap based theme dependencies; avoiding our contributors having to wade back through historical references for proposed fixes.
Includes:
In updating from a now very old bootstrap of v3.3.4/5, to v5.3.3, we have a number of breakages.
Checklist