diff --git a/.github/workflows/buildnext.yml b/.github/workflows/buildnext.yml new file mode 100644 index 00000000..a63531ec --- /dev/null +++ b/.github/workflows/buildnext.yml @@ -0,0 +1,34 @@ +name: Build Next↹ +on: + push: + branches: + - master + - main + workflow_dispatch: + +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: apt-get install libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev + - run: pip install \ + mkdocs-material \ + mkdocs-material[imaging] \ + - run: mkdocs gh-deploy --force \ No newline at end of file diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 64b786dd..8d2c5353 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,16 +1,6 @@ name: CI-Run Deploy→ on: - push: - branches: - - main - paths-ignore: - - "**.md" - pull_request: - paths-ignore: - - "**.md" - release: - types: [published] workflow_dispatch: jobs: diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index cc9ac976..6ca42117 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,11 +1,8 @@ name: github pages on: - push: - branches: - - main - pull_request: - + workflow_dispatch: + jobs: deploy: runs-on: ubuntu-22.04 diff --git a/.obsidian/workspace-mobile.json b/.obsidian/workspace-mobile.json index 38fbe215..3b3607f0 100644 --- a/.obsidian/workspace-mobile.json +++ b/.obsidian/workspace-mobile.json @@ -146,8 +146,9 @@ "table-editor-obsidian:Advanced Tables Toolbar": false } }, - "active": "99f1268c8e8bdb2f", + "active": "845fe3642ac2a575", "lastOpenFiles": [ + "docs/about.md", "10856822.tmp", "docs/assets/fa-light-300.woff2", "docs/assets/fa-light-300.woff", @@ -165,7 +166,6 @@ "docs/advanced/3.2.文件照片上传.md", "docs/advanced/3.1.私密主题.md", "docs/advanced/advanced.md", - "docs/advanced", "docs/basic/basic.md", "docs/basic/2.6.个人设置.md", "docs/basic/2.5.小黑屋.md", diff --git a/docs/about/about.md b/docs/about.md similarity index 100% rename from docs/about/about.md rename to docs/about.md diff --git a/mkdocs-conf.yml b/mkdocs-conf.yml index 48b1b8eb..fa0af337 100644 --- a/mkdocs-conf.yml +++ b/mkdocs-conf.yml @@ -37,7 +37,7 @@ theme: - navigation.tracking - navigation.tabs - navigation.path - - navigation.indexes + # - navigation.indexes - toc.follow - navigation.top # font: @@ -79,15 +79,22 @@ markdown_extensions: custom_checkbox: true - pymdownx.tilde + plugins: - search: separator: '[\s\-\.]+' lang: - en - + - social: + cards_layout: default/variant + cards_layout_options: + background_color: "#02A6F2" + + # Customization extra_javascript: - - "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.6/MathJax.js?config=TeX-MML-AM_CHTML" + # - "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.6/MathJax.js?config=TeX-MML-AM_CHTML" + - "https://cdn.jsdelivr.net/npm/mathjax@3.2.2/es5/tex-mml-chtml.min.js" extra_css: - "assets/css/custom.css" @@ -95,7 +102,7 @@ extra_css: # Page tree!!!目录 nav: - "开始→": "index.md" - - "1. 关于社区": "about.md" + - "1. 关于社区": "about/about.md" - "2. 基本功能": - "basic/basic.md" - "2.1 注册&登录": "basic/2.1.注册&登录.md"