-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
Create docs that explain how to update generated reference pages. #6366
Conversation
Deploy preview ready! Built with commit 7b78afd https://deploy-preview-6366--kubernetes-io-master-staging.netlify.com |
3761924
to
5c3498a
Compare
@@ -0,0 +1,64 @@ | |||
--- | |||
title: Generating Reference Pages for Kubernetes Federation Components |
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.
This page is not linked from docs-home.html ?
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.
There's a new home page coming soon as part of the User Journeys project. We'll revisit linking when that is in place.
447ad6f
to
1677939
Compare
df7d5b9
to
57a379d
Compare
Thanks for your pull request. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please follow instructions at https://github.com/kubernetes/kubernetes/wiki/CLA-FAQ to sign the CLA. It may take a couple minutes for the CLA signature to be fully registered; after that, please reply here with a new comment and we'll verify. Thanks.
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. I understand the commands that are listed here. |
410a182
to
3fae5cb
Compare
go get github.com/kubernetes/federation | ||
``` | ||
|
||
TODO: Checkout the branch of interest. For 1.8 docs, release-1.8. |
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.
This TODO for you or for readers? :)
go get github.com/kubernetes/federation | ||
``` | ||
|
||
TODO: Checkout the branch of interest. For 1.8 docs, release-1.8. |
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.
here too
1ab056b
to
c76a5fb
Compare
751b640
to
d287e25
Compare
@chenopis Could you do a sanity check on this. There are several things we could do to improve these topics, but in the interest of finishing this PR in finite time, I'd like to wrap this up. We can do further improvements in future PRs. For example, in a future PR, we could enhance the Federation API topic by showing how to edit comments in the Federation source code. |
cc @heckj |
This totally works, but won't most individuals be using their own forks of the k/website repository? We reference the whole "pull request" under the Federation docs - do we need more specific details there, or am I being overly conservative about the reader's knowledge/skills here? Reviewed 7 of 7 files at r5. Comments from Reviewable |
@heckj If I knew how to use Reviewable, I would reply there. But try as I will, I can't figure it out. Anyway, I think we can link to our existing topics on creating a fork and a pull request to kubernetes/website. For help creating pull requests to kubernetes/kubernetes and kubernetes/federation, I'm not sure what to do. I don't want to teach Git and GitHub in these new topics. The reader has to be set up with a Golang development environment. That makes me think the reader probably knows how to create a pull request, and the reader probably has a workflow that involves a fork. For readers who don't already have a local kubernetes/xxx repo, I show one way of cloning (go get). The fact that I show cloning the upstream repo doesn't stop the reader from using a workflow that involves a fork. |
yeah, totally good with that
…-joe
On Jan 5, 2018, at 5:03 PM, Steve Perry ***@***.***> wrote:
@heckj @chenopis How about this? Under Before you begin, we explain that you need to know how to create a pull request, and that this typically involves having a fork. For more info, see xxxx.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
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.
You might want to double check the version requirement for Golang for each of these. I ran into an error indicating I should upgrade to Golang v1.9 when running hack/generate-docs.sh
for kubernetes/kubernetes but not kubernetes/federation.
|
||
* [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) | ||
|
||
* [Golang](https://golang.org/doc/install) version 1.8 or later |
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.
Just found out kubernetes/kubernetes is now requiring Go v1.9+ in order to run hack/generate-docs.sh
. LGTM otherwise.
|
||
* [Git](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) | ||
|
||
* [Golang](https://golang.org/doc/install) version 1.8 or later |
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, users will probably need to run go get github.com/ghodss/yaml
if they don't already have it, since it's a requirement of the script.
This looks amazing. 🌟 |
9e13f25
to
7b78afd
Compare
…henopis-user-journeys * 'master' of https://github.com/kubernetes/website: fix admission plugins orders (#6900) link to other terms (#6625) Fix See Also links. (#6948) --experimental-nvidia-gpus error (#6527) Add HA guide for kubeadm (#6458) remove duplicated and conflicted TOC instrument fix deadlink Clarify the token webhook posts the TokenReview object Update federation.md Update create-cluster-kubeadm.md Add note about viewing changes locally. (#6936) Create page that lists supported doc versions. (#6882) Document how to generate reference pages. (#6366) Update networking.md to list ACI CNI plugin (#6367) Update kubeadm-init.md (#6932) fix typo in doc kubeadm-alpha dulplicated sentences Update certificates.md Replace all kube-ui with kubernetes dashboard Add openstack internal load balancer option
This PR creates four new topics. Here are the previews:
Generating Reference Pages for Kubernetes Components and Tools
Generating Reference Documentation for kubectl Commands
Generating Reference Documentation for the Kubernetes API
Generating Reference Documentation fo the Kubernetes Federation API
This change is