-
Notifications
You must be signed in to change notification settings - Fork 77
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 the MPS manual to using the Read the Docs theme #166
Conversation
…he Docs theme colour scheme.
Also consider adopting Edit: See Ravenbrook Perforce changelist 199182 for an example of fixing a quietly broken manual build using |
The current manual has a sidebar like this: |
We need to examine the manual for cases where the MPS Sphinx extension and the MPS theme interact. For example, in the Bibiolgraphy, abstracts of papers now render with a strongly-highlighted exclamation-mark box like this Of course we should try to use whatever intentional markup Sphinx provides for any purpose. |
In the case of abstracts, an admonition is used: Line 10 in 17c57ad
In solving this problem, we should:
|
Switching themes may fix #121 but this needs checking. |
Checked. The layout problem does not appear with Sphinx 6.1.3 with the Read the Docs theme, the latest available from PyPI. |
The content navigation bar on the left in the Read the Docs theme is incorrect.
Here are the entries using the Read the Docs theme:
Compare to the way the contents appear in the MPS Sphinx theme:
|
This is no doubt because the Read the Docs theme does not support this configuration Lines 41 to 43 in 96a1cb6
See also How the table of contents displays. |
It looks like the Read the Docs theme is ignoring the index inserted here, and also the Lines 28 to 38 in 96a1cb6
|
This can be solved by extending a Jinja template layout.html, as described here https://stackoverflow.com/a/37843854 . |
This branch is in danger of breaking the build of the Memory Management Reference described in #165 (comment) . |
Fixed in a708cdb |
Fixed in 454fc27 |
executing proc.review.log Start time 1610 @rptb1 new.M2: What was found in item 7 also applies to everything under master @rptb1 raises new.minor.imp Git wont automatically stamp our files with a source control revision ID so we fail to meet rule.genric.ident. There's other sorts of ident (eg product document) that is in a way more important @rptb1 new.m in "contributing to the mps" the text is stale. We could do better eg reference to the branch. logging finised at 1649 |
Just noting that this is relevant to issue #98 in that the whole tree below https://www.ravenbrook.com/project/mps/ is a manifestation of the Perforce project, and much of it should be redirected. Solving this will also partly resolve #200 .
Raise: This note effectively add this to #98 . |
Fixed in Perforce changelist 199686 by introducing a redirection in the web server. |
Fix: Subscribed Ravenbrook to "Gold Membership" of Read the Docs. The ad status of projects can be managed at https://readthedocs.org/accounts/gold/projects/ . I have disabled ads on the MPS. |
|
Reject: It is appropriate, I think. You can also rotate the phone :) |
Fix: Corrected in 5d27364 . |
Reply: Discussed during review, but documenting here: We don't know exactly what is wrong with our homegrown theme in #121 and it would be wasteful to debug it, since we've chosen to switch to the Read the Docs theme. In short, #121 is fixed by using a community-maintained up-to-date theme. |
Raise: #98 (comment) |
Executing proc.review.edit.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Approving" after checking edits as requested by @rptb1
ready for exit
performing proc.review.exit Start time 1830 Transgressions: T1 exit.universal.edit: "m3. "Abstract" in bibliography appears with a "!" like a warning" - there is no action recorded T2 exit.universal.imp: "new.minor.imp Git wont automatically stamp our files with a source control revision ID so we fail to meet rule.genric.ident. There's other sorts of ident (eg product document) that is in a way more important" - there is no action recorded T3: Fixed: exit.universal.record estimation of remaining defects is missing. Estimating 1M remains, as 2M were found (not a transgression) exit.universal.rates - rates were in danger of being too fast as the estimation of LOC was based only on the diffs. However, relevant checkers took more time and then reported having enough time to do the checking properly Exit paused at 1847 while transgressions T1-2 discussed |
Included in #166 (comment) but I failed to link it.
Genuinely overlooked that one. I'll see if there's some better markup. |
Reject: Cosmetic and too expensive to fix. I've investigated how this comes about and overriding it would be tricky, fragile, and costly. The markup is semantically probably correct (a custom admonition). We may come up with something later in passing. The offending bit of source code is here https://github.com/readthedocs/sphinx_rtd_theme/blob/8ce23cec96f628ac0d29737bf1cf8cc2e750f068/src/sass/_theme_rst.sass#L137 |
I'm concerned that I missed this, and @thejayps didn't find it at exit. It suggests that proc.review.log isn't producing a findable log. |
Fixed: Introduced punctuation and spacing in ebeee66 |
I believe that concludes proc.review.exit.fix so merge is pending a pass from @thejayps . |
exit.pass |
Executing proc.merge.pull-request.
|
We should get on with #228 to fix this. |
Working on #157 by experimenting with using the Read the Docs theme.
See https://memory-pool-system--166.org.readthedocs.build/en/166/ for the manual built from this pull request by Read the Docs CI.
The search in the Read the Docs theme works when the manual is built locally. It does not depend on the manual being published on a server.
This change could remove the MPS theme and thus reduce maintenance costs.