mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-09-02 19:52:40 +00:00
🔧 Chore: update CodeQL configuration, add Hugo test build workflow (#625)
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
@@ -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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user