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: Fix the link to feature gates documentation #1821

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

ChaoyiHuang
Copy link
Contributor

@ChaoyiHuang ChaoyiHuang commented Jul 29, 2024

The link to feature gates documentation is pointing to the
feature-gates.md in master-commandline-reference.html, it should be updated to link html file.

Copy link

linux-foundation-easycla bot commented Jul 29, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@k8s-ci-robot k8s-ci-robot requested review from marquiz and zvonkok July 29, 2024 09:38
@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Jul 29, 2024
@k8s-ci-robot
Copy link
Contributor

Welcome @ChaoyiHuang!

It looks like this is your first PR to kubernetes-sigs/node-feature-discovery 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes-sigs/node-feature-discovery has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@k8s-ci-robot k8s-ci-robot added the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Jul 29, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @ChaoyiHuang. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jul 29, 2024
Copy link

netlify bot commented Jul 29, 2024

Deploy Preview for kubernetes-sigs-nfd ready!

Name Link
🔨 Latest commit a442749
🔍 Latest deploy log https://app.netlify.com/sites/kubernetes-sigs-nfd/deploys/66ab57a5fe16070008cbb7eb
😎 Deploy Preview https://deploy-preview-1821--kubernetes-sigs-nfd.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

@marquiz marquiz left a comment

Choose a reason for hiding this comment

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

Thanks you @ChaoyiHuang for the contribution. Please sign the CLA so we can get this merged 😊

/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. approved Indicates a PR has been approved by an approver from all required OWNERS files. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 29, 2024
Copy link
Contributor

@marquiz marquiz left a comment

Choose a reason for hiding this comment

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

Now that we're at it, could you fix the same thing in docs/reference/master-commandline-reference.md, too?

@@ -34,7 +34,7 @@ Print version and exit.

The `-feature-gates` flag is used to enable or disable non GA features.
The list of available feature gates can be found in the [feature gates
documentation](../feature-gates.md).
documentation](feature-gates.md).
Copy link
Contributor

Choose a reason for hiding this comment

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

Looking at the netlify preview it didn't work (perhaps some bug in some 3rd party component in our docs building pipeline) 🤔 Maybe the links should not be split accross multiple lines(?)

Suggested change
documentation](feature-gates.md).
[feature gates documentation](feature-gates.md).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Looking at the netlify preview it didn't work (perhaps some bug in some 3rd party component in our docs building pipeline) 🤔 Maybe the links should not be split accross multiple lines(?)

will check to see how to address it

Copy link
Contributor Author

@ChaoyiHuang ChaoyiHuang Jul 30, 2024

Choose a reason for hiding this comment

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

I just found why it doesn't work in netlify preview.

In netlify preview, if you click the item in the navigation bar "10.Feature Gates", it's pointing to "https://deploy-preview-1821--kubernetes-sigs-nfd.netlify.app/reference/feature-gates", and it works there. There is no ".md" for the page URL.

But in the "master-commandline-reference" page, the link to Feature Gates including suffix ".md" in the URL, that means URL "https://deploy-preview-1821--kubernetes-sigs-nfd.netlify.app/reference/feature-gates.md" won't work.

The jekyll should convert the relative link (feature-gates.md) to (feature-gates.html), but it didn't.

Need to figure out how to address the issue.

Copy link
Contributor

Choose a reason for hiding this comment

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

It should change the .md -> .html automatically when building the site. Do what I suggested above^ and I think it fixes it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes, it's the multi-line issue, and some bug in jekyll rendering.

Both .md link and html link work Now.

@ChaoyiHuang
Copy link
Contributor Author

Thanks you @ChaoyiHuang for the contribution. Please sign the CLA so we can get this merged 😊

/ok-to-test

Yes, I am waiting for CLA approve from corporate CLA Manager.

@ChaoyiHuang ChaoyiHuang force-pushed the fixlink branch 2 times, most recently from 2875461 to 3e75769 Compare July 30, 2024 03:08
@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jul 30, 2024
The link to feature gates documentation is pointing to the
upward folder in master-commandline-reference.md, it should
be updated to linking file in the same folder.

Signed-off-by: joehuang <[email protected]>
@k8s-ci-robot k8s-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Aug 1, 2024
@ChaoyiHuang ChaoyiHuang changed the title Fix the link to feature gates documentation Docs: Fix the link to feature gates documentation Aug 1, 2024
@ChaoyiHuang
Copy link
Contributor Author

Closes #1823

@marquiz
Copy link
Contributor

marquiz commented Aug 1, 2024

Thanks @ChaoyiHuang. The worker cmdline reference is also broken similarly, could you fix that, too?
#1821 (review)

@ChaoyiHuang
Copy link
Contributor Author

Thanks @ChaoyiHuang. The worker cmdline reference is also broken similarly, could you fix that, too? #1821 (review)

Sure, I will check other links and fix if necessary

The link to feature gates documentation is pointing to the
feature-gates.md in master-commandline-reference.html and
worker-commandline-reference.html, it should be updated to
linking html file.

Signed-off-by: joehuang <[email protected]>
Copy link
Contributor

@marquiz marquiz left a comment

Choose a reason for hiding this comment

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

Thank your @ChaoyiHuang for fixing the links

/lgtm

docs/Gemfile Outdated
Comment on lines 33 to 35
# render realtive link by plugin
# https://github.blog/news-insights/product-news/relative-links-for-github-pages/
gem 'jekyll-relative-links'
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't seem to help

Suggested change
# render realtive link by plugin
# https://github.blog/news-insights/product-news/relative-links-for-github-pages/
gem 'jekyll-relative-links'

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 1, 2024
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 643dd0ab1c6b3412736c5b111fd984838671cecb

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ChaoyiHuang, marquiz

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot merged commit b2f2888 into kubernetes-sigs:master Aug 1, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants