🔧 Chore: update CodeQL configuration, add Hugo test build workflow (#625)

This commit is contained in:
Cell
2025-08-18 12:51:47 +08:00
committed by GitHub
parent c6e31682c3
commit 57d920244b
5 changed files with 8 additions and 10 deletions
-1
View File
@@ -2,4 +2,3 @@ name: "CodeQL config"
paths-ignore:
- assets/lib/**
- docs/**
@@ -1,4 +1,4 @@
name: Hugo build check
name: FixIt Test Build
on:
pull_request:
branches: [ main ]
@@ -18,4 +18,4 @@ jobs:
hugo-version: ${{ vars.HUGO_VERSION || 'latest' }}
extended: true
- name: Build Hugo static files
run: hugo --source=demo --gc --minify --logLevel info
run: hugo --source=test --themesDir ../.. --theme $PWD --gc --minify --logLevel info
+4 -1
View File
@@ -70,8 +70,11 @@ pnpm test:production
### Building
```bash
# Build the theme (production build with minification)
# Build demo site
pnpm build
# Build test site
pnpm build:test
```
## Project Structure
+1
View File
@@ -22,6 +22,7 @@
"type": "module",
"scripts": {
"build": "hugo --source=demo --themesDir ../.. --theme $PWD --gc --minify --logLevel info",
"build:test": "hugo --source=test --themesDir ../.. --theme $PWD --gc --minify --logLevel info",
"server": "hugo server --source=demo --themesDir ../.. --theme $PWD -D --disableFastRender --navigateToChanged --ignoreCache -O",
"server:production": "npm run server -- -e production",
"server:docs": "hugo server --source=../fixit-docs -D --disableFastRender --navigateToChanged --ignoreCache -O",
+1 -6
View File
@@ -1,15 +1,10 @@
# =====================================================================================
# The following is a necessary configuration for the FixIt theme.
# =====================================================================================
# -------------------------------------------------------------------------------------
# Hugo Configuration
# See: https://gohugo.io/getting-started/configuration/
# -------------------------------------------------------------------------------------
title = "Hugo FixIt Demo"
title = "Hugo FixIt TEST"
baseURL = "http://example.org/"
# theme = "FixIt"
[markup]
_merge = "shallow"