mirror of
https://github.com/driftywinds/materialmkdocs.git
synced 2025-12-19 04:53: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_url: https://docs.drifty.win
|
||||
theme:
|
||||
favicon: images/favicon.png
|
||||
logo: assets/logo.png
|
||||
name: material
|
||||
palette:
|
||||
primary: teal
|
||||
accent: purple
|
||||
favicon: images/favicon.png
|
||||
logo: assets/logo.png
|
||||
name: material
|
||||
palette:
|
||||
primary: teal
|
||||
accent: purple
|
||||
# Palette toggle for light mode
|
||||
- scheme: default
|
||||
toggle:
|
||||
icon: material/lightbulb
|
||||
name: Switch to dark mode
|
||||
#- scheme: default
|
||||
# toggle:
|
||||
# icon: material/lightbulb
|
||||
# name: Switch to dark mode
|
||||
# Palette toggle for dark mode
|
||||
- scheme: slate
|
||||
toggle:
|
||||
icon: material/lightbulb-outline
|
||||
name: Switch to light mode
|
||||
#- scheme: slate
|
||||
# toggle:
|
||||
# icon: material/lightbulb-outline
|
||||
# name: Switch to light mode
|
||||
features:
|
||||
- navigation.instant
|
||||
- navigation.tabs
|
||||
|
||||
Reference in New Issue
Block a user