mirror of https://github.com/tiangolo/fastapi.git
✨ Set up and enable Material for MkDocs Insiders for the docs (#2325)
* ⬆️ Upgrade Material for MkDocs * ⬆️ Install Material for MkDocs Insiders on CI * 🔧 Update MkDocs configs to use Material for MkDocs Insiders * ✨ Use the lightbulb because it looks nice 💡 * 💚 Fix GitHub Action workflow syntax for building docs * 🐛 Fix GitHub Actions workflow syntax, strike one ⚾
This commit is contained in:
parent
97adeca0a4
commit
4bcdbc5673
|
|
@ -20,6 +20,9 @@ jobs:
|
||||||
run: python3.7 -m pip install flit
|
run: python3.7 -m pip install flit
|
||||||
- name: Install docs extras
|
- name: Install docs extras
|
||||||
run: python3.7 -m flit install --extras doc
|
run: python3.7 -m flit install --extras doc
|
||||||
|
- name: Install Material for MkDocs Insiders
|
||||||
|
if: github.repository == 'tiangolo/fastapi'
|
||||||
|
run: pip install git+https://${{ secrets.ACTIONS_TOKEN }}@github.com/squidfunk/mkdocs-material-insiders.git
|
||||||
- name: Build Docs
|
- name: Build Docs
|
||||||
run: python3.7 ./scripts/docs.py build-all
|
run: python3.7 ./scripts/docs.py build-all
|
||||||
- name: Zip docs
|
- name: Zip docs
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,21 @@ site_url: https://fastapi.tiangolo.com/
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
palette:
|
palette:
|
||||||
scheme: preference
|
- scheme: default
|
||||||
primary: teal
|
primary: teal
|
||||||
accent: amber
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb-outline
|
||||||
|
name: Switch to light mode
|
||||||
|
- scheme: slate
|
||||||
|
primary: teal
|
||||||
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb
|
||||||
|
name: Switch to dark mode
|
||||||
|
features:
|
||||||
|
- search.suggest
|
||||||
|
- search.highlight
|
||||||
icon:
|
icon:
|
||||||
repo: fontawesome/brands/github-alt
|
repo: fontawesome/brands/github-alt
|
||||||
logo: img/icon-white.svg
|
logo: img/icon-white.svg
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,21 @@ site_url: https://fastapi.tiangolo.com/es/
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
palette:
|
palette:
|
||||||
scheme: preference
|
- scheme: default
|
||||||
primary: teal
|
primary: teal
|
||||||
accent: amber
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb-outline
|
||||||
|
name: Switch to light mode
|
||||||
|
- scheme: slate
|
||||||
|
primary: teal
|
||||||
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb
|
||||||
|
name: Switch to dark mode
|
||||||
|
features:
|
||||||
|
- search.suggest
|
||||||
|
- search.highlight
|
||||||
icon:
|
icon:
|
||||||
repo: fontawesome/brands/github-alt
|
repo: fontawesome/brands/github-alt
|
||||||
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,21 @@ site_url: https://fastapi.tiangolo.com/fr/
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
palette:
|
palette:
|
||||||
scheme: preference
|
- scheme: default
|
||||||
primary: teal
|
primary: teal
|
||||||
accent: amber
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb-outline
|
||||||
|
name: Switch to light mode
|
||||||
|
- scheme: slate
|
||||||
|
primary: teal
|
||||||
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb
|
||||||
|
name: Switch to dark mode
|
||||||
|
features:
|
||||||
|
- search.suggest
|
||||||
|
- search.highlight
|
||||||
icon:
|
icon:
|
||||||
repo: fontawesome/brands/github-alt
|
repo: fontawesome/brands/github-alt
|
||||||
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,21 @@ site_url: https://fastapi.tiangolo.com/it/
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
palette:
|
palette:
|
||||||
scheme: preference
|
- scheme: default
|
||||||
primary: teal
|
primary: teal
|
||||||
accent: amber
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb-outline
|
||||||
|
name: Switch to light mode
|
||||||
|
- scheme: slate
|
||||||
|
primary: teal
|
||||||
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb
|
||||||
|
name: Switch to dark mode
|
||||||
|
features:
|
||||||
|
- search.suggest
|
||||||
|
- search.highlight
|
||||||
icon:
|
icon:
|
||||||
repo: fontawesome/brands/github-alt
|
repo: fontawesome/brands/github-alt
|
||||||
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,21 @@ site_url: https://fastapi.tiangolo.com/ja/
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
palette:
|
palette:
|
||||||
scheme: preference
|
- scheme: default
|
||||||
primary: teal
|
primary: teal
|
||||||
accent: amber
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb-outline
|
||||||
|
name: Switch to light mode
|
||||||
|
- scheme: slate
|
||||||
|
primary: teal
|
||||||
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb
|
||||||
|
name: Switch to dark mode
|
||||||
|
features:
|
||||||
|
- search.suggest
|
||||||
|
- search.highlight
|
||||||
icon:
|
icon:
|
||||||
repo: fontawesome/brands/github-alt
|
repo: fontawesome/brands/github-alt
|
||||||
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,21 @@ site_url: https://fastapi.tiangolo.com/ko/
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
palette:
|
palette:
|
||||||
scheme: preference
|
- scheme: default
|
||||||
primary: teal
|
primary: teal
|
||||||
accent: amber
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb-outline
|
||||||
|
name: Switch to light mode
|
||||||
|
- scheme: slate
|
||||||
|
primary: teal
|
||||||
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb
|
||||||
|
name: Switch to dark mode
|
||||||
|
features:
|
||||||
|
- search.suggest
|
||||||
|
- search.highlight
|
||||||
icon:
|
icon:
|
||||||
repo: fontawesome/brands/github-alt
|
repo: fontawesome/brands/github-alt
|
||||||
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,21 @@ site_url: https://fastapi.tiangolo.com/pt/
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
palette:
|
palette:
|
||||||
scheme: preference
|
- scheme: default
|
||||||
primary: teal
|
primary: teal
|
||||||
accent: amber
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb-outline
|
||||||
|
name: Switch to light mode
|
||||||
|
- scheme: slate
|
||||||
|
primary: teal
|
||||||
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb
|
||||||
|
name: Switch to dark mode
|
||||||
|
features:
|
||||||
|
- search.suggest
|
||||||
|
- search.highlight
|
||||||
icon:
|
icon:
|
||||||
repo: fontawesome/brands/github-alt
|
repo: fontawesome/brands/github-alt
|
||||||
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,21 @@ site_url: https://fastapi.tiangolo.com/ru/
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
palette:
|
palette:
|
||||||
scheme: preference
|
- scheme: default
|
||||||
primary: teal
|
primary: teal
|
||||||
accent: amber
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb-outline
|
||||||
|
name: Switch to light mode
|
||||||
|
- scheme: slate
|
||||||
|
primary: teal
|
||||||
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb
|
||||||
|
name: Switch to dark mode
|
||||||
|
features:
|
||||||
|
- search.suggest
|
||||||
|
- search.highlight
|
||||||
icon:
|
icon:
|
||||||
repo: fontawesome/brands/github-alt
|
repo: fontawesome/brands/github-alt
|
||||||
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,21 @@ site_url: https://fastapi.tiangolo.com/tr/
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
palette:
|
palette:
|
||||||
scheme: preference
|
- scheme: default
|
||||||
primary: teal
|
primary: teal
|
||||||
accent: amber
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb-outline
|
||||||
|
name: Switch to light mode
|
||||||
|
- scheme: slate
|
||||||
|
primary: teal
|
||||||
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb
|
||||||
|
name: Switch to dark mode
|
||||||
|
features:
|
||||||
|
- search.suggest
|
||||||
|
- search.highlight
|
||||||
icon:
|
icon:
|
||||||
repo: fontawesome/brands/github-alt
|
repo: fontawesome/brands/github-alt
|
||||||
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,21 @@ site_url: https://fastapi.tiangolo.com/uk/
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
palette:
|
palette:
|
||||||
scheme: preference
|
- scheme: default
|
||||||
primary: teal
|
primary: teal
|
||||||
accent: amber
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb-outline
|
||||||
|
name: Switch to light mode
|
||||||
|
- scheme: slate
|
||||||
|
primary: teal
|
||||||
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb
|
||||||
|
name: Switch to dark mode
|
||||||
|
features:
|
||||||
|
- search.suggest
|
||||||
|
- search.highlight
|
||||||
icon:
|
icon:
|
||||||
repo: fontawesome/brands/github-alt
|
repo: fontawesome/brands/github-alt
|
||||||
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,21 @@ site_url: https://fastapi.tiangolo.com/zh/
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
palette:
|
palette:
|
||||||
scheme: preference
|
- scheme: default
|
||||||
primary: teal
|
primary: teal
|
||||||
accent: amber
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb-outline
|
||||||
|
name: Switch to light mode
|
||||||
|
- scheme: slate
|
||||||
|
primary: teal
|
||||||
|
accent: amber
|
||||||
|
toggle:
|
||||||
|
icon: material/lightbulb
|
||||||
|
name: Switch to dark mode
|
||||||
|
features:
|
||||||
|
- search.suggest
|
||||||
|
- search.highlight
|
||||||
icon:
|
icon:
|
||||||
repo: fontawesome/brands/github-alt
|
repo: fontawesome/brands/github-alt
|
||||||
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
logo: https://fastapi.tiangolo.com/img/icon-white.svg
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ test = [
|
||||||
]
|
]
|
||||||
doc = [
|
doc = [
|
||||||
"mkdocs >=1.1.2,<2.0.0",
|
"mkdocs >=1.1.2,<2.0.0",
|
||||||
"mkdocs-material >=5.5.0,<6.0.0",
|
"mkdocs-material >=6.1.4,<7.0.0",
|
||||||
"markdown-include >=0.5.1,<0.6.0",
|
"markdown-include >=0.5.1,<0.6.0",
|
||||||
"mkdocs-markdownextradata-plugin >=0.1.7,<0.2.0",
|
"mkdocs-markdownextradata-plugin >=0.1.7,<0.2.0",
|
||||||
"typer >=0.3.0,<0.4.0",
|
"typer >=0.3.0,<0.4.0",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue