Skip to content
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

Change relative link to absolute link #965

Merged
merged 1 commit into from
Oct 15, 2024

Conversation

evrardjp
Copy link
Collaborator

@evrardjp evrardjp commented Aug 7, 2024

Without this patch, the copy of the contributing.md into our doc site (generated from 1 and 2) will refer to a local README.md into the website git repo, which is not existing.

This is a problem, as it generates dead link for lychee on local runs in 'content/en/docs/development.md'.

This fixes it by making the link absolute, while keeping the CONTRIBUTING.md in sync between repos. The alternative would be to edit the site generator in 1. Yet, I believe having an absolute link does not hurt, because we already use the full git repo in other parts of the same documentation.

Without this patch, the copy of the contributing.md into our
doc site (generated from [1] and [2]) will refer to a local README.md
into the website git repo, which is not existing.

This is a problem, as it generates dead link for lychee on local
runs in 'content/en/docs/development.md'.

This fixes it by making the link absolute, while keeping the
CONTRIBUTING.md in sync between repos. The alternative would be
to edit the site generator in [1]. Yet, I believe having an
absolute link does not hurt, because we already use the full
git repo in other parts of the same documentation.

[1]: https://github.com/kubereboot/website/blob/5da8aba559460ef7a8c363ab021328cba9e0deda/hack/gen-content.py
[2]: https://github.com/kubereboot/website/blob/5da8aba559460ef7a8c363ab021328cba9e0deda/external-sources/kubereboot/kured

Signed-off-by: Jean-Philippe Evrard <open-source@a.spamming.party>
@dholbach
Copy link
Member

dholbach commented Aug 7, 2024

I think it could be a problem in https://github.com/kubereboot/website/commits/main/hack/gen-content.py

Copy link

github-actions bot commented Oct 7, 2024

This PR was automatically considered stale due to lack of activity. Please refresh it and/or join our slack channels to highlight it, before it automatically closes (in 7 days).

@evrardjp
Copy link
Collaborator Author

@dholbach Please read my comment again ?

@evrardjp evrardjp merged commit 804ff87 into kubereboot:main Oct 15, 2024
16 of 18 checks passed
@evrardjp evrardjp deleted the fix-lychee-pointer branch October 15, 2024 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants