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

docs: mkdocs and github pages support #1018

Merged
merged 11 commits into from
Dec 8, 2024
Prev Previous commit
Next Next commit
chore: add light theme with shiori red color
fmartingr committed Dec 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 47e9366233e0e05401ccd1c60e5a3a1d0372ed1b
3 changes: 3 additions & 0 deletions docs/assets/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[data-md-color-scheme="shiori"] {
--md-primary-fg-color: rgb(244, 67, 54);
}
23 changes: 14 additions & 9 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -4,14 +4,18 @@ repo_url: https://github.com/go-shiori/shiori
theme:
name: material
palette:
- scheme: default
toggle:
icon: material/brightness-7
name: Switch to dark mode
- scheme: slate
toggle:
icon: material/brightness-4
name: Switch to light mode
# Light mode
- scheme: shiori
media: "(prefers-color-scheme: light)"
toggle:
icon: material/brightness-7
name: Switch to dark mode
# Dark mode
- scheme: slate
media: "(prefers-color-scheme: dark)"
toggle:
icon: material/brightness-4
name: Switch to light mode
features:
- navigation.instant
- navigation.tracking
@@ -22,7 +26,8 @@ theme:
- search.suggest
- search.highlight
- content.tabs.link

extra_css:
- assets/css/style.css
nav:
- Home: index.md
- Getting Started: