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

📝 Add dark mode auto switch to docs based on OS preference #4869

Merged
merged 3 commits into from
May 11, 2022

Conversation

ComicShrimp
Copy link
Contributor

Implement the example from Material MKdocs that make the docs auto switch from light to dark mode based on system preference.

@codecov
Copy link

codecov bot commented May 6, 2022

Codecov Report

Merging #4869 (e0479d2) into master (d07422a) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##            master     #4869   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          531       531           
  Lines        13629     13629           
=========================================
  Hits         13629     13629           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d07422a...e0479d2. Read the comment docs.

@ComicShrimp ComicShrimp changed the title docs: add dark mode auto switch based on OS preference 📝 docs: add dark mode auto switch based on OS preference May 6, 2022
@github-actions
Copy link
Contributor

github-actions bot commented May 6, 2022

📝 Docs preview for commit 9f03c1b at: https://62755bf4d35e5d1672cea49f--fastapi.netlify.app

@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2022

📝 Docs preview for commit e0479d2 at: https://62796d0186ccd4069344bd57--fastapi.netlify.app

@tiangolo tiangolo changed the title 📝 docs: add dark mode auto switch based on OS preference 📝 Add dark mode auto switch to docs based on OS preference May 11, 2022
@tiangolo
Copy link
Member

Great, thanks! 📝 🦇

@tiangolo tiangolo merged commit 15dd126 into fastapi:master May 11, 2022
JeanArhancet pushed a commit to JeanArhancet/fastapi that referenced this pull request Aug 20, 2022
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.

None yet

2 participants