Skip to content

Commit c9d5e3b

Browse files
fix
1 parent 13fd0e2 commit c9d5e3b

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/hugo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
#- name: Fetch syntax highlighter
5555
# run: git clone https://github.com/hedyhli/tree-sitter-cognate
5656
- name: Build syntax-highlighting
57-
run: make
57+
run: make BASEURL="${{ steps.pages.outputs.base_url }}/"
5858
- name: Setup Pages
5959
id: pages
6060
uses: actions/configure-pages@v5

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
AWK=awk
22
HUGO=hugo
3+
BASEURL=https://cognate-lang.github.io
34

45
.PHONY: build
56
build:
67
# NOTE: Requires gawk
78
tree-sitter query --test scripts/doc-comments.scm prelude.cog --config-path tree-sitter.json | $(AWK) -v linkURL="https://github.com/cognate-lang/cognate/blob/master/src/" -f scripts/doc-comments.awk > content/reference/prelude.md
8-
$(HUGO)
9+
$(HUGO) --gc --minify --baseURL $(BASEURL)
910
make $(shell find public -type f -name "*.html")
1011

1112
public/%.html: .FORCE

0 commit comments

Comments
 (0)