mirror of
https://github.com/driftywinds/materialmkdocs.git
synced 2025-12-19 13:03:34 +00:00
workflow
This commit is contained in:
29
.github/workflows/ci.yml
vendored
Normal file
29
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
name: ci
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- main
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Configure Git Credentials
|
||||||
|
run: |
|
||||||
|
git config user.name github-actions[bot]
|
||||||
|
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
|
||||||
|
- uses: actions/setup-python@v5
|
||||||
|
with:
|
||||||
|
python-version: 3.x
|
||||||
|
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
|
||||||
|
- uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
key: mkdocs-material-${{ env.cache_id }}
|
||||||
|
path: .cache
|
||||||
|
restore-keys: |
|
||||||
|
mkdocs-material-
|
||||||
|
- run: pip install mkdocs-material
|
||||||
|
- run: mkdocs gh-deploy --force
|
||||||
2
docs/blog/index.md
Normal file
2
docs/blog/index.md
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
# Blog
|
||||||
|
|
||||||
28
mkdocs.yml
28
mkdocs.yml
@@ -1,22 +1,22 @@
|
|||||||
site_name: drifty's docs
|
site_name: drifty's docs
|
||||||
site_url: https://docs.drifty.win
|
site_url: https://docs.drifty.win
|
||||||
theme:
|
theme:
|
||||||
favicon: images/favicon.png
|
favicon: images/favicon.png
|
||||||
logo: assets/logo.png
|
logo: assets/logo.png
|
||||||
name: material
|
name: material
|
||||||
palette:
|
palette:
|
||||||
primary: teal
|
primary: teal
|
||||||
accent: purple
|
accent: purple
|
||||||
# Palette toggle for light mode
|
# Palette toggle for light mode
|
||||||
- scheme: default
|
#- scheme: default
|
||||||
toggle:
|
# toggle:
|
||||||
icon: material/lightbulb
|
# icon: material/lightbulb
|
||||||
name: Switch to dark mode
|
# name: Switch to dark mode
|
||||||
# Palette toggle for dark mode
|
# Palette toggle for dark mode
|
||||||
- scheme: slate
|
#- scheme: slate
|
||||||
toggle:
|
# toggle:
|
||||||
icon: material/lightbulb-outline
|
# icon: material/lightbulb-outline
|
||||||
name: Switch to light mode
|
# name: Switch to light mode
|
||||||
features:
|
features:
|
||||||
- navigation.instant
|
- navigation.instant
|
||||||
- navigation.tabs
|
- navigation.tabs
|
||||||
|
|||||||
Reference in New Issue
Block a user