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
pip install -r requirements-mkdocs.txt
mkdocs serve -a localhost:8080
mkdocs serve
```
-->
<div align="center" markdown="1">

View File

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

View File

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