Skip to content

Conversation

dvdksn
Copy link
Contributor

@dvdksn dvdksn commented Jul 1, 2024

It seems like the geekdocOverwriteHTMLBase configuration option caused local links URL fragments to target the root URL of the site, rather than the current page.

Closes #4388

Setting the HTML <base> element causes page-internal links to point to
the root of the website, rather than local anchors on the same page.

Signed-off-by: David Karlsson <35727626+dvdksn@users.noreply.github.com>
Copy link
Member

@milosgajdos milosgajdos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@squizzi
Copy link
Collaborator

squizzi commented Jul 1, 2024

@dvdksn will this break any existing functionality? The geekdocs docs (that's a mouthful) specify using this option to get markdown images/links working.

@dvdksn
Copy link
Contributor Author

dvdksn commented Jul 2, 2024

@squizzi I couldn't see that anything broke from this change. Images still show, at least on local preview, and I don't see any broken links (docker buildx bake docs-test)

@milosgajdos
Copy link
Member

Is there anywhere we can see the preview of this fix, @dvdksn

@dvdksn
Copy link
Contributor Author

dvdksn commented Jul 3, 2024

@milosgajdos I tried to upload here: https://registry.surge.sh/

It doesn't have the /distribution path prefix though. I don't know how to do that with surge.sh. Otherwise just run this branch locally with hugo server and it should run on localhost:1313/distribution

@milosgajdos
Copy link
Member

@thaJeztah wanna have a look at this?

Copy link
Collaborator

@davidspek davidspek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@milosgajdos milosgajdos merged commit 3a84995 into distribution:main Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

anchor links in documentation are wrong
4 participants