Closed Lotes closed 1 month ago
PR Preview Action v1.4.6 :---: Preview removed because the pull request was closed. 2024-08-07 06:55 UTC
This is still draft, because I need to test as a deployment ftm because on local mode it does not show up the custom 404. The problem so far is that the others.html
partial includes paths to CSS that are not correct on subpages like "/docs/xxx"...
Bah, it seems I cannot test it really on a preview server. The 404 page is a result of the HTTP server, which redirects to 404.html
(GH-Preview-Pages does not). So what was missing? The base URL T_T...
I think when we release the changed flag, it will work. But I definitely cannot test it locally.
This seems to break the GitHub PR preview: https://eclipse-langium.github.io/langium-previews/pr-previews/pr-238/docs/
True. We need to set the correct base url before we are building. Otherwise it would be https://eclipse-langium.github.io/langium-previews/pr-previews
instead of https://eclipse-langium.github.io/langium-previews/pr-previews/pr-xxx
.
EDIT: @msujew I tried adding the base URL in the GH Action. But for some reason it seems to use the workflow file from main, not from the branch. Is there any way to test this locally? Do you know something?
I've peeked at this too and it feels like hugo isn't responding to a myriad of ways to set a custom 404. The usual locations in layout, static, or even modifying the theme don't seem to have effect (notably the theme's own 404 isn't applied as expected). There can be a few reasons for this based on how we've customized the app, but we're also using an older version from about 3 years ago. I'm not sure how easily we could upgrade, but it might be worth checking if some newer version of hugo makes it easier to resolve this.
I am closing this PR. No idea how to check this, without breaking something.
Fixes #236