Revamp the design and Mkdocs conf
This commit is contained in:
parent
a40fa45e58
commit
1f4df2694c
2 changed files with 40 additions and 34 deletions
|
@ -1,4 +0,0 @@
|
||||||
[data-md-color-scheme="slate"][data-md-color-primary="black"] {
|
|
||||||
--md-typeset-a-color: hsl(230.8, 39.9%, 68%);
|
|
||||||
}
|
|
||||||
|
|
36
mkdocs.yml
36
mkdocs.yml
|
@ -1,3 +1,4 @@
|
||||||
|
---
|
||||||
site_name: benoit.jp.net
|
site_name: benoit.jp.net
|
||||||
copyright: <p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><span property="dct:title">benoit.jp.net</span> is marked with <a href="http://creativecommons.org/publicdomain/zero/1.0?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC0 1.0<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://benoit.jp.net/images/cc.svg"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://benoit.jp.net/images/zero.svg"></a></p>
|
copyright: <p xmlns:cc="http://creativecommons.org/ns#" xmlns:dct="http://purl.org/dc/terms/"><span property="dct:title">benoit.jp.net</span> is marked with <a href="http://creativecommons.org/publicdomain/zero/1.0?ref=chooser-v1" target="_blank" rel="license noopener noreferrer" style="display:inline-block;">CC0 1.0<img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://benoit.jp.net/images/cc.svg"><img style="height:22px!important;margin-left:3px;vertical-align:text-bottom;" src="https://benoit.jp.net/images/zero.svg"></a></p>
|
||||||
repo_url: https://git.benoit.jp.net/benoit/mkdocs-benoit.jp.net
|
repo_url: https://git.benoit.jp.net/benoit/mkdocs-benoit.jp.net
|
||||||
|
@ -6,10 +7,24 @@ edit_uri: _edit/master/docs/
|
||||||
|
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
font: false
|
|
||||||
palette:
|
palette:
|
||||||
scheme: slate
|
# Palette toggle for light mode
|
||||||
|
- media: "(prefers-color-scheme: light)"
|
||||||
primary: black
|
primary: black
|
||||||
|
accent: amber
|
||||||
|
scheme: default
|
||||||
|
toggle:
|
||||||
|
icon: material/brightness-7
|
||||||
|
name: Switch to dark mode
|
||||||
|
# Palette toggle for dark mode
|
||||||
|
- media: "(prefers-color-scheme: dark)"
|
||||||
|
primary: black
|
||||||
|
accent: amber
|
||||||
|
scheme: slate
|
||||||
|
toggle:
|
||||||
|
icon: material/brightness-4
|
||||||
|
name: Switch to light mode
|
||||||
|
font: false
|
||||||
favicon: images/console-network.png
|
favicon: images/console-network.png
|
||||||
icon:
|
icon:
|
||||||
logo: material/console-network
|
logo: material/console-network
|
||||||
|
@ -17,14 +32,13 @@ theme:
|
||||||
features:
|
features:
|
||||||
- navigation.tabs
|
- navigation.tabs
|
||||||
- navigation.sections
|
- navigation.sections
|
||||||
|
- navigation.tracking
|
||||||
- toc.integrate
|
- toc.integrate
|
||||||
|
- content.action.edit
|
||||||
|
|
||||||
extra_css:
|
|
||||||
- stylesheets/extra.css
|
|
||||||
extra_javascript:
|
extra_javascript:
|
||||||
- javascripts/tablesort.min.js
|
- javascripts/tablesort.min.js
|
||||||
- javascripts/tables.js
|
- javascripts/tables.js
|
||||||
- javascripts/mermaid.min.js
|
|
||||||
|
|
||||||
markdown_extensions:
|
markdown_extensions:
|
||||||
- toc:
|
- toc:
|
||||||
|
@ -40,18 +54,14 @@ markdown_extensions:
|
||||||
- pymdownx.snippets
|
- pymdownx.snippets
|
||||||
- pymdownx.highlight
|
- pymdownx.highlight
|
||||||
- pymdownx.superfences:
|
- pymdownx.superfences:
|
||||||
# make exceptions to highlighting of code:
|
|
||||||
custom_fences:
|
custom_fences:
|
||||||
- name: mermaid
|
- name: mermaid
|
||||||
class: mermaid
|
class: mermaid
|
||||||
format: !!python/name:mermaid2.fence_mermaid
|
format: !!python/name:pymdownx.superfences.fence_code_format
|
||||||
|
|
||||||
|
|
||||||
plugins:
|
plugins:
|
||||||
- git-revision-date
|
- git-revision-date-localized:
|
||||||
- mermaid2:
|
enable_creation_date: true
|
||||||
arguments:
|
|
||||||
theme: 'dark'
|
|
||||||
|
|
||||||
extra:
|
extra:
|
||||||
social:
|
social:
|
||||||
|
@ -60,7 +70,7 @@ extra:
|
||||||
name: Mastodon
|
name: Mastodon
|
||||||
- icon: material/git
|
- icon: material/git
|
||||||
link: https://git.benoit.jp.net/benoit
|
link: https://git.benoit.jp.net/benoit
|
||||||
name: Gitea
|
name: Forgejo
|
||||||
- icon: material/github
|
- icon: material/github
|
||||||
link: https://github.com/benoitjpnet
|
link: https://github.com/benoitjpnet
|
||||||
name: Github
|
name: Github
|
||||||
|
|
Loading…
Reference in a new issue