Skip to content
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

Use Canonical-ish theme from canonical/sphinx-docs-starter-pack #941

Merged
merged 3 commits into from
Jun 7, 2023

Conversation

benhoyt
Copy link
Collaborator

@benhoyt benhoyt commented Jun 2, 2023

It's not perfect, but I think it's probably an improvement to be more consistent with Canonical styling. We'll update to the Canonical "Vanilla" theme once the web & design team are ready with that.

I definitely don't love the _compute_navigation_tree patch we have to do in conf.py (it seems like there's an oversight in the Furo theme to not fall back to the "local TOC" like the sphinx-rtd-theme did). But it will do the job for now, and hopefully the Canonical theme will address it properly.

You can view the rendered version here: https://ops--941.org.readthedocs.build/en/941/

Also rename "Operator Framework" to "Charmed Operator Framework" for
clarity and consistency with our SDK docs.
Copy link
Member

@jnsgruk jnsgruk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!

@jnsgruk
Copy link
Member

jnsgruk commented Jun 2, 2023

Only thought I had was how we keep the theme styles in sync over time (they could change?)

@benhoyt
Copy link
Collaborator Author

benhoyt commented Jun 2, 2023

@jnsgruk Yeah, my thought exactly. It's going to be a bit manual for now, but per https://library.canonical.com/documentation/read-the-docs-at-canonical, the web and design team are working on a proper Canonical theme for Sphinx. So I think it's okay if this needs to be updated/merged manually till then. At that point we can just reference the canonical Canonical theme.

@benhoyt
Copy link
Collaborator Author

benhoyt commented Jun 7, 2023

Per discussion on Mattermost, this isn't perfect but it's more improvement than not, and it's more Canonical-looking. Going to merge this now.

@benhoyt benhoyt merged commit 4918bba into canonical:main Jun 7, 2023
@benhoyt benhoyt deleted the canonicalish-theme branch June 7, 2023 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants