-
Notifications
You must be signed in to change notification settings - Fork 686
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
Fixes #5285 upgrades sphinx for developer requirements #5286
Conversation
Failed with
Found the issue, I have to mark it manually. |
Also possible error with pygments, I will have to upgrade that too.
|
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.
Thanks @kushaldas for the changes,the diff looks good visually to me, and CI is passing. However, as I was clicking around the interface to look at the codeblock changes rendered, I observed an error:
On sphinx 3.0.4, any link that appears in the search results is not clickable (undefined
instead of .html
in the URL). Reverting back to the 3 year old version does resolve, see below
seems like perhaps a config has changed in Sphinx 3.x?
Error logs returns a basic 404 with no further useful information:
[W 200602 09:06:09 web:2063] 404 GET /development/virtualizing_tailsundefined?highlight=virtualizing%20tails (127.0.0.1) 3.65ms
@emkll that is an excellent find. I am searching for answer/fix. |
Found the issue, our theme was also million years old :D Now upgraded to a modern one. @emkll you can have a look after CI is green. |
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.
Yes, as we use a theme written by someone else, we have to use what ever they provide. |
Per discussion at standup, prior to merge, I'll do a bit of regression testing locally esp. focused on the theme changes. |
No objections from me to merging this PR. The only thing I'm noticing that I would characterize as a regression due to the new theme is that links in definitions are no longer clearly identifiable due to the formatting. The only page I was able to spot where this is an issue is https://docs.securedrop.org/en/master/development/apt_repo.html which looks like this in the new theme: Note that you can no longer tell which of the headings are clickable. Otherwise, the new style does make apparent a few more existing formatting issues with our docs, such as this: This bullet list item should really not be formatted as a definition (it's bold in the old theme, which is also incorrect). So in my view there's a couple of minimal follow-up actions:
We could also override the new styling, but to minimize maintenance effort, it may be best to stick with the stock theme for now until we really replace it with something custom. |
Good points from @eloquence noting the slight regressions. Fine for now, let's keep an eye out for further improvements as we step through the docs prior to release. |
Status
Ready for review
Description of Changes
Fixes #5285
Upgrades sphinx version.
Also adds proper code block value at 3 places in the documentation.
Testing
make lint
command output.Deployment
Any special considerations for deployment? Consider both:
Checklist
If you made changes to the server application code:
make lint
) and tests (make test
) pass in the development containerIf you made changes to
securedrop-admin
:make -C admin test
) pass in the admin development containerIf you made changes to the system configuration:
If you made non-trivial code changes:
If you made changes to documentation:
make docs-lint
) passed locallyIf you added or updated a code dependency:
Choose one of the following: