We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fa0e63 commit 359c04fCopy full SHA for 359c04f
.github/workflows/github-pages.yml
@@ -72,11 +72,8 @@ jobs:
72
# For maximum backward compatibility with Hugo modules
73
HUGO_ENVIRONMENT: production
74
HUGO_ENV: production
75
- run: |
76
- cd docs
77
- devbox run -- hugo \
78
- --minify \
79
- --baseURL "${{ steps.pages.outputs.base_url }}/"
+ BASE_URL: "${{ steps.pages.outputs.base_url }}/"
+ run: devbox run -- build-docs
80
81
- name: Upload artifact
82
if: github.ref == 'refs/heads/main'
devbox.json
@@ -38,7 +38,10 @@
38
"shell": {
39
"scripts": {
40
"preview-docs": [
41
- "cd docs && hugo server -F -D"
+ "cd docs && hugo server --buildFuture --buildDrafts"
42
+ ],
43
+ "build-docs": [
44
+ "cd docs && hugo --minify --baseURL \"${BASE_URL}\""
45
]
46
}
47
0 commit comments