From ea13e408e1d60828c6ff52648eb3d53bbfb6961c Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Tue, 1 Sep 2026 11:21:15 +0800 Subject: [PATCH] chore(workflow): add config_path to librarybot steps --- .github/workflows/librarybot.yml | 5 ++++- CLAUDE.md | 2 +- librarybot.yml => assets/lib/librarybot.yml | 0 layouts/_partials/init/index.html | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) rename librarybot.yml => assets/lib/librarybot.yml (100%) diff --git a/.github/workflows/librarybot.yml b/.github/workflows/librarybot.yml index 3c3abe39..a2deab47 100644 --- a/.github/workflows/librarybot.yml +++ b/.github/workflows/librarybot.yml @@ -1,9 +1,10 @@ name: Update libraries from npm on: schedule: - # Run at 00:00, on day 1 of the month - cron: '0 0 1 * *' workflow_dispatch: +env: + CONFIG_PATH: ./assets/lib/librarybot.yml permissions: contents: write pull-requests: write @@ -20,6 +21,7 @@ jobs: uses: hugo-fixit/librarybot@v1 with: mode: list + config_path: ${{ env.CONFIG_PATH }} update: needs: prepare runs-on: ubuntu-latest @@ -36,6 +38,7 @@ jobs: with: mode: update library: ${{ matrix.library }} + config_path: ${{ env.CONFIG_PATH }} - name: Create Pull Request if: steps.update.outputs.changed == 'true' uses: peter-evans/create-pull-request@v8 diff --git a/CLAUDE.md b/CLAUDE.md index 19ce64f1..9918e7d2 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -92,7 +92,7 @@ Hugo Pipes processes all assets. The key orchestration is in `_partials/base/ass - **CSS**: `scss/main.scss` is the entry point importing `core/`, `pages/`, `widgets/`, `custom`. SCSS variables are configured via `hugo:vars` (user-configurable from `[params.appearance]`) and `hugo:vars/internal` (theme system config). UnoCSS utility classes are pre-built to `assets/css/unocss.css` (via `pnpm unocss`), loaded before the main SCSS bundle. - **JS**: `_partials/function/js-build.html` wraps `js.Build` with minify-in-production defaults. Hugo's `@params` injection passes config values into TypeScript at build time. -- **Third-party libraries**: Stored in `assets/lib/` (vendored, not npm-managed). Tracked by `librarybot.yml` and updated weekly by the `hugo-fixit/librarybot` GitHub Action. Can be overridden via CDN config in `assets/data/cdn/jsdelivr.yml` or `unpkg.yml`. +- **Third-party libraries**: Stored in `assets/lib/` (vendored, not npm-managed). Tracked by `librarybot.yml` and updated monthly by the `hugo-fixit/librarybot` GitHub Action. Can be overridden via CDN config in `assets/data/cdn/jsdelivr.yml` or `unpkg.yml`. ### Theme Configuration diff --git a/librarybot.yml b/assets/lib/librarybot.yml similarity index 100% rename from librarybot.yml rename to assets/lib/librarybot.yml diff --git a/layouts/_partials/init/index.html b/layouts/_partials/init/index.html index 8112d884..bdd9032f 100644 --- a/layouts/_partials/init/index.html +++ b/layouts/_partials/init/index.html @@ -8,7 +8,7 @@ Called from: layouts/baseof.html. */ -}} -{{- hugo.Store.Set "version" "v1.0.0-alpha-mtcmp1fx" -}} +{{- hugo.Store.Set "version" "v1.0.0-alpha-mti3uoot" -}} {{- .Store.Set "this" dict -}} {{- partial "init/detection-env.html" . -}}