mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2024-01-19 02:48:50 +00:00
docs: minor adjustments (#1889)
* docs: add version to mkdocs docker image * docs: add version tag to build image * feat(docs): add back-to-top button * feat(docs): add back-to-top button * feat(docs): add dark theme
This commit is contained in:
parent
27a9fd21cf
commit
b60b294be1
2
.github/workflows/deploy-docs.yml
vendored
2
.github/workflows/deploy-docs.yml
vendored
|
@ -41,7 +41,7 @@ jobs:
|
||||||
- name: 'Build with mkdocs-material via Docker'
|
- name: 'Build with mkdocs-material via Docker'
|
||||||
working-directory: docs
|
working-directory: docs
|
||||||
# --user is required for build output file ownership to match the CI user instead of the containers internal user
|
# --user is required for build output file ownership to match the CI user instead of the containers internal user
|
||||||
run: docker run --rm --user "$(id -u):$(id -g)" -v "${PWD}:/docs" squidfunk/mkdocs-material build --strict
|
run: docker run --rm --user "$(id -u):$(id -g)" -v "${PWD}:/docs" squidfunk/mkdocs-material:7.1.0 build --strict
|
||||||
|
|
||||||
- name: 'If a tagged version, fix canonical links and remove `404.html`'
|
- name: 'If a tagged version, fix canonical links and remove `404.html`'
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
|
2
.github/workflows/pr-docs.yml
vendored
2
.github/workflows/pr-docs.yml
vendored
|
@ -19,4 +19,4 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: 'Build with mkdocs-material via Docker'
|
- name: 'Build with mkdocs-material via Docker'
|
||||||
run: docker run --rm -v ${PWD}:/docs squidfunk/mkdocs-material build --strict
|
run: docker run --rm -v ${PWD}:/docs squidfunk/mkdocs-material:7.1.0 build --strict
|
||||||
|
|
|
@ -31,8 +31,26 @@ theme:
|
||||||
repo: fontawesome/brands/github
|
repo: fontawesome/brands/github
|
||||||
features:
|
features:
|
||||||
- navigation.tabs
|
- navigation.tabs
|
||||||
|
- navigation.top
|
||||||
- navigation.expand
|
- navigation.expand
|
||||||
- navigation.instant
|
- navigation.instant
|
||||||
|
palette:
|
||||||
|
# Light mode
|
||||||
|
- media: "(prefers-color-scheme: light)"
|
||||||
|
scheme: default
|
||||||
|
primary: indigo
|
||||||
|
accent: indigo
|
||||||
|
toggle:
|
||||||
|
icon: material/weather-night
|
||||||
|
name: Switch to dark mode
|
||||||
|
# Dark mode
|
||||||
|
- media: "(prefers-color-scheme: dark)"
|
||||||
|
scheme: slate
|
||||||
|
primary: indigo
|
||||||
|
accent: blue
|
||||||
|
toggle:
|
||||||
|
icon: material/weather-sunny
|
||||||
|
name: Switch to light mode
|
||||||
|
|
||||||
# We make some minor style adjustments or resolve issues that upstream `mkdocs-material` would not accept a PR for:
|
# We make some minor style adjustments or resolve issues that upstream `mkdocs-material` would not accept a PR for:
|
||||||
extra_css:
|
extra_css:
|
||||||
|
|
Loading…
Reference in a new issue