Merge pull request #81 from ParampreetR/master
Added theme toggle button and upgraded `mkdocs-material`
This commit is contained in:
commit
4ec64ee518
|
@ -1,5 +1,5 @@
|
||||||
.md-typeset__table table {
|
.md-typeset__table table {
|
||||||
font-size: .75rem !important;
|
font-size: 0.75rem !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md-typeset__table table tr td:first-child {
|
.md-typeset__table table tr td:first-child {
|
||||||
|
@ -8,16 +8,16 @@
|
||||||
|
|
||||||
.md-typeset code {
|
.md-typeset code {
|
||||||
background-color: rgb(240, 240, 240);
|
background-color: rgb(240, 240, 240);
|
||||||
font-size: .95em;
|
font-size: 0.95em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md-typeset pre > code {
|
.md-typeset pre > code {
|
||||||
background-color: rgb(245, 245, 245);
|
background-color: rgb(245, 245, 245);
|
||||||
font-size: .90em;
|
font-size: 0.9em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md-typeset .admonition {
|
.md-typeset .admonition {
|
||||||
font-size: .70rem;
|
font-size: 0.7rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
@ -29,7 +29,7 @@ body {
|
||||||
border-bottom-color: rgb(234, 236, 239);
|
border-bottom-color: rgb(234, 236, 239);
|
||||||
border-bottom-style: solid;
|
border-bottom-style: solid;
|
||||||
border-bottom-width: 1px;
|
border-bottom-width: 1px;
|
||||||
padding-bottom: .3rem;
|
padding-bottom: 0.3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md-content a:hover {
|
.md-content a:hover {
|
||||||
|
@ -39,3 +39,22 @@ body {
|
||||||
.highlight code .cp {
|
.highlight code .cp {
|
||||||
color: #a83;
|
color: #a83;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a code {
|
||||||
|
color: #472a63 !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-md-color-scheme="dark"] {
|
||||||
|
--md-primary-fg-color: #321860;
|
||||||
|
--md-default-bg-color: #170a1c;
|
||||||
|
--md-default-fg-color: #dabaff;
|
||||||
|
--md-typeset-color: #ffffff;
|
||||||
|
--md-default-fg-color--light: #b0a8b9;
|
||||||
|
--md-typeset-a-color: #b596d2;
|
||||||
|
--md-code-bg-color: #f5f5f5;
|
||||||
|
--md-code-fg-color: #170a1c;
|
||||||
|
--md-admonition-fg-color: #ffffff;
|
||||||
|
--md-default-fg-color--lighter: #acb7c0;
|
||||||
|
--md-default-fg-color--lightest: #d2d5db;
|
||||||
|
--md-code-hl-variable-color: #815abb;
|
||||||
|
}
|
||||||
|
|
|
@ -1,59 +1,70 @@
|
||||||
# Project information
|
# Project information
|
||||||
site_name: 'Sailfish Documentation'
|
site_name: "Sailfish Documentation"
|
||||||
# site_description: 'Sailfish Documentation'
|
# site_description: 'Sailfish Documentation'
|
||||||
site_author: 'Ryohei Machida'
|
site_author: "Ryohei Machida"
|
||||||
# site_url: 'https://***.com'
|
# site_url: 'https://***.com'
|
||||||
|
|
||||||
# Copyright
|
# Copyright
|
||||||
copyright: '© 2020 Ryohei Machida'
|
copyright: "© 2020 Ryohei Machida"
|
||||||
|
|
||||||
# Repository
|
# Repository
|
||||||
repo_name: 'rust-sailfish/sailfish'
|
repo_name: "rust-sailfish/sailfish"
|
||||||
repo_url: 'https://github.com/rust-sailfish/sailfish'
|
repo_url: "https://github.com/rust-sailfish/sailfish"
|
||||||
|
|
||||||
# Configuration
|
|
||||||
theme:
|
theme:
|
||||||
name: 'material'
|
name: "material"
|
||||||
language: 'en'
|
language: "en"
|
||||||
logo: 'images/logo.svg'
|
logo: "images/logo.svg"
|
||||||
palette:
|
palette:
|
||||||
scheme: 'default'
|
- media: "(prefers-color-scheme: dark)"
|
||||||
primary: 'deep purple'
|
scheme: "dark"
|
||||||
accent: 'deep purple'
|
primary: "deep purple"
|
||||||
favicon: 'images/favicon.ico'
|
accent: "deep purple"
|
||||||
|
toggle:
|
||||||
|
icon: "material/lightbulb-outline"
|
||||||
|
name: "Light Mode"
|
||||||
|
- media: "(prefers-color-scheme: light)"
|
||||||
|
scheme: "default"
|
||||||
|
primary: "deep purple"
|
||||||
|
accent: "deep purple"
|
||||||
|
toggle:
|
||||||
|
icon: "material/lightbulb"
|
||||||
|
name: "Dark Mode"
|
||||||
|
favicon: "images/favicon.ico"
|
||||||
font:
|
font:
|
||||||
text: 'Ubuntu'
|
text: "Ubuntu"
|
||||||
code: 'Ubuntu Mono'
|
code: "Ubuntu Mono"
|
||||||
features:
|
features:
|
||||||
- 'navigation.expand'
|
- "navigation.expand"
|
||||||
|
|
||||||
# Extensions
|
# Extensions
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
- 'admonition'
|
- "admonition"
|
||||||
- 'footnotes'
|
- "footnotes"
|
||||||
- 'pymdownx.highlight'
|
- "pymdownx.highlight"
|
||||||
- 'pymdownx.tabbed'
|
- "pymdownx.tabbed":
|
||||||
- 'pymdownx.superfences':
|
alternate_style: true
|
||||||
|
- "pymdownx.superfences":
|
||||||
custom_fences:
|
custom_fences:
|
||||||
- name: mermaid
|
- name: mermaid
|
||||||
class: mermaid
|
class: mermaid
|
||||||
|
|
||||||
extra_css:
|
extra_css:
|
||||||
- 'assets/css/custom.css'
|
- "assets/css/custom.css"
|
||||||
|
|
||||||
extra:
|
extra:
|
||||||
social:
|
social:
|
||||||
- icon: 'fontawesome/brands/github-alt'
|
- icon: "fontawesome/brands/github-alt"
|
||||||
link: 'https://github.com/rust-sailfish'
|
link: "https://github.com/rust-sailfish"
|
||||||
|
|
||||||
# Page tree
|
# Page tree
|
||||||
nav:
|
nav:
|
||||||
- 'Welcome': 'index.md'
|
- "Welcome": "index.md"
|
||||||
- 'Installation': 'installation.md'
|
- "Installation": "installation.md"
|
||||||
- 'Getting Started': 'getting-started.md'
|
- "Getting Started": "getting-started.md"
|
||||||
- 'Configuration': 'options.md'
|
- "Configuration": "options.md"
|
||||||
- 'Syntax':
|
- "Syntax":
|
||||||
- 'Overview': 'syntax/overview.md'
|
- "Overview": "syntax/overview.md"
|
||||||
- 'Tags': 'syntax/tags.md'
|
- "Tags": "syntax/tags.md"
|
||||||
- 'Includes': 'syntax/includes.md'
|
- "Includes": "syntax/includes.md"
|
||||||
- 'Filters': 'syntax/filters.md'
|
- "Filters": "syntax/filters.md"
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
mkdocs-material==5.2.3
|
mkdocs-material==8.2.3
|
||||||
mkdocs==1.2.3
|
mkdocs==1.2.3
|
||||||
|
|
Loading…
Reference in New Issue