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

docs/CONTRIBUTING.md: Fix links in CONTRIBUTING #32473

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Geod24
Copy link
Contributor

@Geod24 Geod24 commented Apr 25, 2024

Get them to point to the rendered version, instead of
letting Github thinks they are absolute links in the
repository. The rendered version is much more user-friendly.Use relative links and the right name.

@@ -38,8 +38,8 @@ See [reporting of security vulnerabilities](/SECURITY).
## Posting Pull Requests

* Make sure to post PRs only relative to a recent tip of the `main` branch.
* Follow our [Coding Style](/CODING_STYLE) when contributing code. This is a requirement for all code we merge.
* Please make sure to test your change before submitting the PR. See the [Hacking guide](/HACKING) for details on how to do this.
* Follow our [Coding Style](./CODING_STYLE.md) when contributing code. This is a requirement for all code we merge.
Copy link
Member

@YHNdnzj YHNdnzj Apr 25, 2024

Choose a reason for hiding this comment

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

Why? We need absolute path here, and the rendered files are .html, not .md ...

If currently the links are broken for systemd.io, that's because the recent changes haven't been deployed.

Copy link
Contributor Author

@Geod24 Geod24 Apr 25, 2024

Choose a reason for hiding this comment

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

I wasn't aware of https://systemd.io/CONTRIBUTING/ . My experience as a first-time contributor was to open a new PR, get side dialog from Github telling me to review the contributing guide and get a 404 when checking those files.

Is there a way to have the links work both on Github and on systemd.io ? I see a few absolute links (e.g. the README one) and was wondering why the difference, that makes sense now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Is there a way to have the links work both on Github and on systemd.io ?

Well, I'd rather avoid reading raw .md files (although they might be readable). Instead, convert links that point to these markdown files to point to systemd.io?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. Changed to that.

Copy link
Member

Choose a reason for hiding this comment

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

Hmm, I don't see it?

Copy link
Member

Choose a reason for hiding this comment

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

So, I sympathize with having valid links in the documents that are rendered by GH as well, and I think I have a potential solution, but will need to do a couple of tests first just to make sure it doesn't break anything.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@YHNdnzj : I amended the commit but forgot to add 🤦 Fixed now.

@mrc0mmand : I don't have a strong opinion either way. The docs on systemd.io are nicely rendered, but I could live with the ones in Github as well. What matters most to me is that first time contributors don't run into obstacles when getting started. Perhaps there's value in having them stay on Github but I leave that judgement call to more seasoned contributors.

Copy link
Member

Choose a reason for hiding this comment

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

Oh well, nevermind. The trailing slash we have in the page permalink is really annoying and thwarts any attempts to work around this, but we can't drop it without breaking existing links. Not sure what to do here, but rI guess eplacing the absolute links with fully qualified URLs might be a possibility.

Copy link
Member

Choose a reason for hiding this comment

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

/cc @keszybz

@YHNdnzj YHNdnzj added documentation reviewed/needs-rework 🔨 PR has been reviewed and needs another round of reworks labels Apr 25, 2024
@github-actions github-actions bot added please-review PR is ready for (re-)review by a maintainer and removed reviewed/needs-rework 🔨 PR has been reviewed and needs another round of reworks labels Apr 25, 2024
@YHNdnzj YHNdnzj added reviewed/needs-rework 🔨 PR has been reviewed and needs another round of reworks and removed please-review PR is ready for (re-)review by a maintainer labels Apr 25, 2024
@Geod24 Geod24 changed the title docs/CONTRIBUTING.md: Fix links to HACKING.md and CODING_STYLE.md docs/CONTRIBUTING.md: Fix links in CONTRIBUTING Apr 25, 2024
@github-actions github-actions bot added please-review PR is ready for (re-)review by a maintainer and removed reviewed/needs-rework 🔨 PR has been reviewed and needs another round of reworks labels Apr 25, 2024
Get them to point to the rendered version, instead of
letting Github thinks they are absolute links in the
repository. The rendered version is much more user-friendly.
@YHNdnzj
Copy link
Member

YHNdnzj commented Apr 25, 2024

Hmm, I was more thinking about changing README.md, so that new contributors go directly to systemd.io rather than the markdown files.

@Geod24
Copy link
Contributor Author

Geod24 commented Apr 25, 2024

so that new contributors go directly to systemd.io rather than the markdown files.

I didn't get there through README though, I got there through the prompt on the RHS:
image

There's also this when you open a PR:
image

(Contributing link)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation please-review PR is ready for (re-)review by a maintainer
Development

Successfully merging this pull request may close these issues.

None yet

5 participants