From 31e0a65a929a3bcd3d030c0e16fee0b082089e0a Mon Sep 17 00:00:00 2001 From: FTS427 Date: Sun, 3 Dec 2023 14:42:32 +0800 Subject: [PATCH] U | Update the mkdocs, add more insteresting thing C | Change the workflow --- .github/workflows/{build.yml => ci.yml} | 9 +++++++-- mkdocs.yml | 27 ++++++++++++++++++++++++- 2 files changed, 33 insertions(+), 3 deletions(-) rename .github/workflows/{build.yml => ci.yml} (67%) diff --git a/.github/workflows/build.yml b/.github/workflows/ci.yml similarity index 67% rename from .github/workflows/build.yml rename to .github/workflows/ci.yml index f0314d1c..f1e673b6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,8 @@ -name: build +name: ci on: push: branches: + - master - main permissions: contents: write @@ -9,7 +10,11 @@ jobs: deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - 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@v4 with: python-version: 3.x diff --git a/mkdocs.yml b/mkdocs.yml index 384eb364..c2af9a76 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,7 +1,32 @@ site_name: Huang FTS427's Blog +repo_url: https://github.com/FTS427/FTS427.github.io +repo_name: FTS427/FTS427.github.io +edit_uri: edit/main/docs/ theme: name: material - locale: zh + language: zh + features: + - content.action.edit + icon: + repo: fontawesome/brands/github + edit: material/pencil + view: material/eye + palette: + # Light mode + - scheme: default + primary: blue + accent: light blue + toggle: + icon: material/brightness-7 + name: Dark mode + # Dark mode + - scheme: slate + primary: blue + accent: light blue + toggle: + icon: material/brightness-4 + name: Light mode + markdown_extensions: - admonition - codehilite: