Skip to content

Commit

Permalink
tidyup building using config override option (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
hry-gh authored Sep 12, 2024
1 parent 06b5e72 commit b5e5d7c
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
version: "1.6.0"

- name: Build project
run: npm run build

- name: Build index
run: npm run build:index

- name: Setup Pages
Expand Down
9 changes: 9 additions & 0 deletions config.index.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
base_url = "https://ref.opendre.am"
minify_html = false

[slugify]
paths = "safe"

[extra]
repo = "https://github.com/OpenDreamProject/od-dm-reference"
branch = "main"
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"watch:css": "tailwindcss -m -w -i styles/index.css -o static/index.css",
"watch:zola": "zola serve",
"build": "NODE_ENV=production tailwindcss -m -i styles/index.css -o static/index.css; ZOLA_ENV=prod zola build",
"build:index": "sed -i 's/minify_html = true/minify_html = false/' config.toml && zola build -o index && sed -i 's/minify_html = false/minify_html = true/' config.toml && npm run build && stork build --input index/toml/index.html --output public/search.st",
"watch": "npx concurrently 'npm:watch:css' 'npm:watch:zola'"
"build:index": "zola --config config.index.toml build -o index && stork build --input index/toml/index.html --output public/search.st",
"watch": "concurrently 'npm:watch:css' 'npm:watch:zola'"
},
"author": "",
"license": "MIT",
Expand Down

0 comments on commit b5e5d7c

Please sign in to comment.