Skip to content

Commit c48ddfe

Browse files
authored
Fix GCS docs preview URL navigation by enabling uglyURLs for CI builds (#1497)
Signed-off-by: Emilia Desch <emy@redhat.com>
1 parent 1f02e25 commit c48ddfe

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

automation/check-patch.docs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ preview_baseurl="${url}/kubevirt-prow/pr-logs/pull/nmstate_kubernetes-nmstate${b
1010
${IMAGE_BUILDER} run -v $(pwd)/docs:/docs/ -w /docs \
1111
-e GOBIN=/usr/local/bin \
1212
docker.io/hugomods/hugo:exts \
13-
sh -c "npm install && command -v htmltest || go install github.com/wjdp/htmltest@latest && hugo --baseURL / --destination build/ && htmltest && hugo --baseURL '${preview_baseurl}' --destination build/"
13+
sh -c "npm install && command -v htmltest || go install github.com/wjdp/htmltest@latest && hugo --config hugo.yaml,hugo.preview.yaml --baseURL / --destination build/ && htmltest && hugo --config hugo.yaml,hugo.preview.yaml --baseURL '${preview_baseurl}' --destination build/"
1414

1515
# Copy the docs to the artifacts
1616
mkdir -p $ARTIFACTS/gh-pages

docs/hugo.preview.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# hugo.preview.yaml - Configuration for CI preview builds
2+
# The config is merged with hugo.yaml and enables uglyURLs for GCS CI docs preview
3+
4+
uglyURLs: true

0 commit comments

Comments
 (0)