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

Create docs that explain how to update generated reference pages. #6366

Merged
merged 1 commit into from
Jan 11, 2018

Conversation

@steveperry-53 steveperry-53 added the do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. label Nov 17, 2017
@steveperry-53 steveperry-53 self-assigned this Nov 17, 2017
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Nov 17, 2017
@k8sio-netlify-preview-bot
Copy link
Collaborator

k8sio-netlify-preview-bot commented Nov 17, 2017

Deploy preview ready!

Built with commit 7b78afd

https://deploy-preview-6366--kubernetes-io-master-staging.netlify.com

@k8s-ci-robot k8s-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Nov 17, 2017
@@ -0,0 +1,64 @@
---
title: Generating Reference Pages for Kubernetes Federation Components
Copy link
Contributor

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 ?

Copy link
Contributor Author

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.

@steveperry-53 steveperry-53 force-pushed the ref-gen branch 3 times, most recently from 447ad6f to 1677939 Compare November 21, 2017 17:56
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 21, 2017
@k8s-ci-robot k8s-ci-robot removed the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 29, 2017
@k8s-ci-robot
Copy link
Contributor

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.

@k8s-ci-robot k8s-ci-robot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Nov 29, 2017
@steveperry-53 steveperry-53 removed the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Nov 29, 2017
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 29, 2017
go get github.com/kubernetes/federation
```

TODO: Checkout the branch of interest. For 1.8 docs, release-1.8.
Copy link
Contributor

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.
Copy link
Contributor

Choose a reason for hiding this comment

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

here too

@steveperry-53
Copy link
Contributor Author

@zachpuck

@steveperry-53 steveperry-53 force-pushed the ref-gen branch 2 times, most recently from 751b640 to d287e25 Compare January 4, 2018 21:53
@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jan 5, 2018
@k8s-ci-robot k8s-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Jan 5, 2018
@steveperry-53 steveperry-53 removed the do-not-merge DEPRECATED. Indicates that a PR should not merge. Label can only be manually applied/removed. label Jan 5, 2018
@steveperry-53
Copy link
Contributor Author

@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.

@steveperry-53
Copy link
Contributor Author

cc @heckj

@heckj
Copy link
Contributor

heckj commented Jan 6, 2018

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.
Review status: all files reviewed at latest revision, 4 unresolved discussions.


Comments from Reviewable

@steveperry-53
Copy link
Contributor Author

steveperry-53 commented Jan 6, 2018

@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.

@steveperry-53
Copy link
Contributor Author

@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.

@heckj
Copy link
Contributor

heckj commented Jan 6, 2018 via email

@steveperry-53
Copy link
Contributor Author

@hekj @chenopis I added text about creating PRs to the Before you begin sections.

Copy link
Contributor

@chenopis chenopis left a 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
Copy link
Contributor

@chenopis chenopis Jan 9, 2018

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
Copy link
Contributor

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.

@zacharysarah
Copy link
Contributor

This looks amazing. 🌟 :shipit:

@k8s-ci-robot k8s-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Jan 11, 2018
@steveperry-53 steveperry-53 merged commit f4ab0f3 into kubernetes:master Jan 11, 2018
@steveperry-53 steveperry-53 deleted the ref-gen branch January 11, 2018 20:55
chenopis added a commit that referenced this pull request Jan 12, 2018
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants