-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Build client docs #4623
Build client docs #4623
Conversation
✔️ Deploy Preview for knative ready! 🔨 Explore the source changes: 3d7cccb 🔍 Inspect the deploy log: https://app.netlify.com/sites/knative/deploys/61df33e4d4963500079f2b61 😎 Browse the preview: https://deploy-preview-4623--knative.netlify.app/development/reference/client |
On test failures:
The build script works fine on my local system, so not sure what exactly is the problem on the remote... will keep looking into it. |
Update: looks like I need to make sure I'm using go1.16 for all these builds... |
#4624 fixes the Verify failure |
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.
Thanks for adding this! Just a few items in the nav need to be tweaked.
config/nav.yml
Outdated
- kn source: reference/client/kn_source.md | ||
- kn source create: reference/client/kn_source_apiserver_create.md | ||
- kn source delete: reference/client/kn_source_apiserver_delete.md | ||
- kn source describe: reference/client/kn_source_apiserver_describe.md | ||
- kn source apiserver: | ||
- kn source apiserver: reference/client/kn_source_apiserver.md | ||
- kn source apiserver list: reference/client/kn_source_apiserver_list.md | ||
- kn source apiserver update: reference/client/kn_source_apiserver_update.md |
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.
- kn source: reference/client/kn_source.md | |
- kn source create: reference/client/kn_source_apiserver_create.md | |
- kn source delete: reference/client/kn_source_apiserver_delete.md | |
- kn source describe: reference/client/kn_source_apiserver_describe.md | |
- kn source apiserver: | |
- kn source apiserver: reference/client/kn_source_apiserver.md | |
- kn source apiserver list: reference/client/kn_source_apiserver_list.md | |
- kn source apiserver update: reference/client/kn_source_apiserver_update.md | |
- kn source: reference/client/kn_source.md | |
- kn source apiserver: | |
- kn source apiserver: reference/client/kn_source_apiserver.md | |
- kn source apiserver create: reference/client/kn_source_apiserver_create.md | |
- kn source apiserver delete: reference/client/kn_source_apiserver_delete.md | |
- kn source apiserver describe: reference/client/kn_source_apiserver_describe.md | |
- kn source apiserver list: reference/client/kn_source_apiserver_list.md | |
- kn source apiserver update: reference/client/kn_source_apiserver_update.md |
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.
APIServerSource create, delete, and describe links need to be moved down under the kn source apiserver
section.
config/nav.yml
Outdated
- kn source apiserver: reference/client/kn_source_apiserver.md | ||
- kn source apiserver list: reference/client/kn_source_apiserver_list.md | ||
- kn source apiserver update: reference/client/kn_source_apiserver_update.md | ||
- kn source binding: reference/client/kn_source_binding.md |
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.
- kn source binding: reference/client/kn_source_binding.md | |
- kn source binding: | |
- kn source binding: reference/client/kn_source_binding.md |
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.
Create a section for kn source binding
I'm wondering if it is possible to have some of these on the same page? For example, grouping all I don't know if this is possible since all the files in the client repo are on separate pages. |
@rhuss can probably answer better than I can, but my understanding is that the change would need to be made on the source files, unless we wanted to try concatenating them in the build script (though I'd really rather not) |
Discussed in WG: using a single page that links to the client/docs/cmd/kn.md in the reference section (with a variable for the branch to be filled when building the site) |
Linking to Github proved to be a lot easier than I thought... @snneji let me know if the page I added looks ok or if the text should be tweaked a bit. |
The preview referenced above does not reflect the recent changes. Do we need to regenerate the preview or is this done automatically ? |
Looks like the preview didn't default to the development branch... here's a proper link: https://deploy-preview-4623--knative.netlify.app/development/reference/client/ |
I think this is a first step in the right direction (so happy to merge this), but eventually, I really would love a tighter and more seamless integration that is easier to consume for the reader. Let me check if I can consolidate the markdown generation into fewer pages and generate a nice drill-down navigation. |
FYI, if I select 1.1 in the rendered preview, I don't see a "Client" item in the "Reference" navigation bar (guess this will work only for future versions ?) |
+1
It needs to get cherry picked into the different release branches, which we can do once we merge. |
docs/reference/client/README.md
Outdated
Please see the `kn` documentation available at: | ||
|
||
[{{ clientdocs() }}]({{ clientdocs() }}){target=_blank} |
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.
Please see the `kn` documentation available at: | |
[{{ clientdocs() }}]({{ clientdocs() }}){target=_blank} | |
See the [`kn` documentation]({{ clientdocs() }}){target=_blank} in GitHub. |
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.
I think it is better for accessibility purposes to have link text instead of a URL. Also it is in our style guide.
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.
Also, should this link go to the 1.1 branch? At the moment, from the preview it looks like it's going to main.
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.
Also, should this link go to the 1.1 branch? At the moment, from the preview it looks like it's going to main.
It should get updated automatically depending on which branch is being built, similar to how the serving/eventing yaml links in the getting started guide are handled.
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.
Ah I see now! Since we're in main it'll go to main.
That would be great! |
/cherrypick release-1.1 |
@snneji: once the present PR merges, I will cherry-pick it on top of release-1.1 in a new PR and assign it to you. In response to this:
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/test-infra repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: psschwei, snneji 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 |
@snneji: #4623 failed to apply on top of branch "release-1.1":
In response to this:
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/test-infra repository. |
Proposed Changes
Add documentation for the
kn
client to the docs.Fixes #4430