Skip to content

Commit cf54d80

Browse files
committed
fix doc style
1 parent 93dffa9 commit cf54d80

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ jobs:
4040

4141
- name: Build CoMLRL docs
4242
working-directory: comlrl-src
43+
env:
44+
HUGO_RELATIVEURLS: "false"
4345
run: hugo --gc --minify -s docs -b "${SITE_BASE_URL}/CoMLRL/"
4446

4547
- name: Sync CoMLRL docs into site static dir

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ mistake.
2626
## CoMLRL docs import
2727

2828
The GitHub Pages workflow clones [`OpenMLRL/CoMLRL`](https://github.com/OpenMLRL/CoMLRL),
29-
builds its Hugo docs site with `hugo --gc --minify -s docs -b "$SITE_BASE_URL/CoMLRL/"`,
29+
builds its Hugo docs site with `HUGO_RELATIVEURLS=false hugo --gc --minify -s docs -b "$SITE_BASE_URL/CoMLRL/"`,
3030
and copies the generated `docs/public/` folder into `static/CoMLRL/` right before
3131
running `hugo` for this site. No CoMLRL HTML lives in Git anymore; the files only
3232
exist in the CI workspace and the published Pages artifact. If you need to test
33-
those docs locally, run the same commands manually and drop the output under
34-
`static/CoMLRL/` before starting `hugo server`.
33+
those docs locally, run `HUGO_RELATIVEURLS=false hugo --gc --minify -s docs -b "http://localhost:1313/CoMLRL/"` from the CoMLRL repo, copy the resulting `docs/public/`
34+
into `static/CoMLRL/`, and then start `hugo server`.

0 commit comments

Comments
 (0)