-
Notifications
You must be signed in to change notification settings - Fork 2.7k
fix: Broken /about links in distribution documentation. #4238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This isn't visible in a local hugo server, but the links were using absolute pathing, and in the prod deploy everything is prefixed with /distribution/ . Overriding the hugo prefix for deploy is another option, but this repo uses relative pathing, so these were fixed accordingly. Signed-off-by: Brian Harring <ferringb@gmail.com>
| ### Alternatives | ||
|
|
||
| If you just want authentication for your registry, and are happy maintaining users access separately, you should really consider sticking with the native [basic auth registry feature](/about/deploying#native-basic-auth). | ||
| If you just want authentication for your registry, and are happy maintaining users access separately, you should really consider sticking with the native [basic auth registry feature](../../about/deploying#native-basic-auth). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These links seem to be broken when rendering on GitHub. Wondering if it works to link to the markdown file instead. I _think _ Hugo replaces those with the correct links; in that case I think they also need one ../ level removed, but haven't tried;
| If you just want authentication for your registry, and are happy maintaining users access separately, you should really consider sticking with the native [basic auth registry feature](../../about/deploying#native-basic-auth). | |
| If you just want authentication for your registry, and are happy maintaining users access separately, you should really consider sticking with the native [basic auth registry feature](../about/deploying.md#native-basic-auth). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pathing I used there is correct btw, at least for hugo. The (.*\.md) I'd avoid personally since encoding the template isn't really a norm in hugo- in my limited experience. I'm not sure I'd worry about the github linkage anyways, since nothing else in this repo has that.
| > **Warning**: For the scheduler to clean up old entries, `delete` must | ||
| > be enabled in the registry configuration. See | ||
| > [Registry Configuration](/about/configuration) for more details. | ||
| > [Registry Configuration](../../about/configuration) for more details. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for the others;
| > [Registry Configuration](../../about/configuration) for more details. | |
| > [Registry Configuration](../about/configuration.md) for more details. |
|
@thaJeztah Closing this out since it's a larger issue then just what I drove by/fixed while looking at your docs. For reference, take a look at https://distribution.github.io/distribution/about/configuration/#storage and check backend links like For reference, the way I've always done what you're doing is via using hugo's ref and relref functionality, rather than hardcoded pathing. The function tag approach has the benefit that hugo should be able to flag broken internal links like the ones I've been referencing. I may take a stab at doing the conversion (purely for my own hugo practice), but this level of breakage is something I think y'all probably want to handle. That's a lot of docs to touch, in short. As an interim hack to hack it until it's fixed properly, you might want to look into https://gohugo.io/content-management/urls/#relative-urls . Thar be dragons- if you try that, run If I wasn't clear in what I was pointing at for above, feel free to ping; pardon for kicking it back your way. I literally was just cutting a few fix's while looking at your docs, this isn't in the path of what I'm trying to get done ;) |
This isn't visible in a local hugo server, but the links were using absolute pathing, and in the prod deploy everything is prefixed with /distribution/ .
Overriding the hugo prefix for deploy is another option, but this repo uses relative pathing, so these were fixed accordingly.