update mkdocs config

- use git-revision-date-localized with enabled creation date
- update requirements-mkdocs.txt and pin verisons
- add requirements
- add dev addr
- fix template
- use better icons for repo and edit button
- remove odd extension
This commit is contained in:
mauwii 2022-09-18 11:12:45 +02:00
parent 016fd65f6a
commit 676c772f11
No known key found for this signature in database
GPG Key ID: D923DB04ADB3F5AB
3 changed files with 11 additions and 10 deletions

View File

@ -7,7 +7,7 @@ title: Home
```bash ```bash
pip install -r requirements-mkdocs.txt pip install -r requirements-mkdocs.txt
mkdocs serve -a localhost:8080 mkdocs serve
``` ```
--> -->
<div align="center" markdown="1"> <div align="center" markdown="1">

View File

@ -1,6 +1,8 @@
# General # General
site_name: Dream Script Docs site_name: Dream Script Docs
site_url: https://lstein.github.io/stable-diffusion/ site_url: https://lstein.github.io/stable-diffusion/
site_author: mauwii
dev_addr: "127.0.0.1:8080"
# Repository # Repository
repo_name: lstein/stable-diffusion repo_name: lstein/stable-diffusion
@ -13,18 +15,16 @@ copyright: Copyright &copy; 2022 Lincoln D. Stein <lincoln.stein@gmail.com>
# Configuration # Configuration
theme: theme:
name: material name: material
# features: icon:
# - toc.integrate repo: fontawesome/brands/github
edit: material/file-document-edit-outline
palette: palette:
- media: '(prefers-color-scheme: light)' - media: '(prefers-color-scheme: light)'
primary: blue
scheme: default scheme: default
toggle: toggle:
icon: material/lightbulb icon: material/lightbulb
name: Switch to dark mode name: Switch to dark mode
- media: '(prefers-color-scheme: dark)' - media: '(prefers-color-scheme: dark)'
primary: dark-blue
accent: white
scheme: slate scheme: slate
toggle: toggle:
icon: material/lightbulb-outline icon: material/lightbulb-outline
@ -37,7 +37,6 @@ markdown_extensions:
- attr_list - attr_list
- def_list - def_list
- footnotes - footnotes
- meta
- md_in_html - md_in_html
- toc: - toc:
permalink: '#' permalink: '#'
@ -75,4 +74,5 @@ markdown_extensions:
plugins: plugins:
- search - search
- git-revision-date - git-revision-date-localized:
enable_creation_date: true

View File

@ -1,2 +1,3 @@
mkdocs-material mkdocs==1.3.1
mkdocs-git-revision-date-plugin>=0.3.2 mkdocs-material==8.5.1
mkdocs-git-revision-date-localized-plugin==1.1.0