Replace many absolute URLs with root-relative URLs#91
Conversation
|
Would it be possible to use the ref shortcode for the URLs? Hugo can raise some error/warning when a path cannot be resolved which can be very helpful to avoid broken URLs. |
|
On the ref shortcode page there's a warning
I checked a md file of the Hugo documentation, and it does not use ref. Instead it defines the references at the end of the md file. There are ways to verify the links with some Hugo code. I've found a discussion on Hugo's discourse, which includes a link to a tutorial. However, I think it's out-of-scope to implement this functionality in this PR. |
zabetak
left a comment
There was a problem hiding this comment.
I went through the diff and everything LGTM! Will merge soon.
|
I've imported the link validator, and it seems to work, though we would need to remove the ref shortcuts. See the PR. |
This PR replaces the absolute URLs (e.g.,
https://hive.apache.org/community/resources/hivedeveloperfaq) with root-relative URLs (/community/resources/hivedeveloperfaq). This makes it easier to navigate through the site when testing the site locally withhugo server.I manually checked the links and fixed some minor nearby formatting issues.