Skip to content

Commit e1ada48

Browse files
committed
refactor: centralize fixed theme variables
- move fixed font, navbar, and palette tokens to CSS-owned defaults - replace check:css with Node test-runner helper and generation tests - update contributor docs and PR build paths to use pnpm test
1 parent 4607ad0 commit e1ada48

16 files changed

Lines changed: 387 additions & 634 deletions

File tree

.github/workflows/pr-build-check.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@ on:
66
- main
77
- dev
88
paths:
9+
- '_config.yml'
10+
- 'layout/**'
11+
- 'styles/**'
912
- 'source/js/**'
1013
- 'source/css/**'
1114
- 'scripts/**'
15+
- 'tests/**'
1216
- 'package.json'
1317
- 'pnpm-lock.yaml'
1418
- 'pnpm-workspace.yaml'
@@ -39,5 +43,8 @@ jobs:
3943
runtime: node@24
4044
cache: true
4145

42-
- name: Build Project
43-
run: pnpm run build
46+
- name: Test Theme
47+
run: pnpm test
48+
49+
- name: Build JavaScript
50+
run: pnpm run build:js

AGENTS.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ package-specific command says otherwise.
3535
## Commands and verification
3636

3737
- Install: `pnpm install --frozen-lockfile`.
38-
- Theme source or configuration: `pnpm run build`. There is no root test or
39-
lint script; use `pnpm run build:css` or `pnpm run build:js` only for a
40-
narrower affected area.
41-
- Theme CSS verification: `pnpm run check:css` builds CSS and generates the
42-
canonical demo site with default, feature, and plugin configuration matrices.
38+
- Theme source or configuration: `pnpm run build`. Use `pnpm run build:css` or
39+
`pnpm run build:js` only for a narrower affected area.
40+
- Theme tests: `pnpm test` uses Node's built-in test runner, builds CSS, tests
41+
Hexo helpers, and generates the canonical demo site with default, feature,
42+
and plugin configuration matrices.
4343
- Interactive theme preview: `pnpm dev` serves Hexo at
4444
`http://127.0.0.1:4000`, resets and links the demo site, and watches CSS.
4545
It serves source browser modules and does not watch production JavaScript

0 commit comments

Comments
 (0)