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

Changing from wagtail to rtd theme. #836

Merged
merged 10 commits into from
Oct 8, 2024
Merged

Conversation

vprusso
Copy link
Owner

@vprusso vprusso commented Oct 6, 2024

Closes #649

Copy link

codecov bot commented Oct 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.8%. Comparing base (13de99c) to head (417cb6d).
Report is 1 commits behind head on master.

Additional details and impacted files
@@          Coverage Diff           @@
##           master    #836   +/-   ##
======================================
  Coverage    97.8%   97.8%           
======================================
  Files         168     168           
  Lines        3259    3259           
  Branches      800     800           
======================================
  Hits         3189    3189           
  Misses         46      46           
  Partials       24      24           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@purva-thakre
Copy link
Collaborator

I think we had decided to switch to a different theme because rtd does not allow a user to switch between light and dark modes.

Have you tried using sphinx <7.2 as suggested by the linked wagtail issue?

Let me try to search around for which other themes are available.

@vprusso
Copy link
Owner Author

vprusso commented Oct 6, 2024

Personal preference, but I think RTD looks the best out of any of the themes that render:
https://sphinx-themes.org/

On top of that, I noticed this theme also renders much better in my browser. Wagtail forced me to scroll down for certain API function pages. I think I'm happy to discard the light/dark option in favor of better page rendering and functional search. Thoughts?

@purva-thakre
Copy link
Collaborator

Ok between the tradeoff of search documentation and light/dark mode.

The thing that irks me about this theme is the blank white space on the right. Looking through the official documentation, it looks like that's how it is supposed to be.

@vprusso
Copy link
Owner Author

vprusso commented Oct 6, 2024

Ok between the tradeoff of search documentation and light/dark mode.

The thing that irks me about this theme is the blank white space on the right. Looking through the official documentation, it looks like that's how it is supposed to be.

Yeah, I think that's just how it is. Personally, I find this theme to be better than wagtail, but I guess that's personal preference. Let me know if you think I should go ahead with the update here (unless you're still trying out other themes)

@purva-thakre
Copy link
Collaborator

purva-thakre commented Oct 6, 2024

unless you're still trying out other themes

I made a note to do this before our weekly meeting.

@purva-thakre
Copy link
Collaborator

purva-thakre commented Oct 6, 2024

What if we use furo?

https://sphinx-themes.org/sample-sites/furo/

It looks similar to RTD without the blank space on the right. It also has the dark mode option that I tend to prefer. Search inside documentation also works similarly to RTD.

@vprusso
Copy link
Owner Author

vprusso commented Oct 6, 2024

furo is pretty slick. Yeah, let's use that if we can. If you have the furo theme working on your end, feel free to hijack the PR. Otherwise, I can take it and swap the rtd theme out. @purva-thakre

@purva-thakre
Copy link
Collaborator

I will hijack the PR later today. I have it working on my end. Need to make a couple tweaks!

@vprusso
Copy link
Owner Author

vprusso commented Oct 6, 2024

I will hijack the PR later today. I have it working on my end. Need to make a couple tweaks!

Sounds good. Good find on the theme--I like it!

@purva-thakre
Copy link
Collaborator

purva-thakre commented Oct 7, 2024

I don't know why the RTD build fails. Will try to figure out why we get the following:

Theme error:
no theme named 'furo' found (missing theme.toml?)

It works locally.

Edit: forgot to add furo to requirements.txt in docs/.

@purva-thakre
Copy link
Collaborator

@vprusso this is ready

@vprusso
Copy link
Owner Author

vprusso commented Oct 8, 2024

Nice find for the req/docs.txt. LGTM and nice theme choice! Great work, @purva-thakre !

@purva-thakre purva-thakre merged commit 181f78f into master Oct 8, 2024
18 checks passed
@purva-thakre purva-thakre deleted the 649-switch-to-rtd-theme branch October 8, 2024 00:39
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.

Search inside documentation is broken
2 participants