-
Notifications
You must be signed in to change notification settings - Fork 717
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
Generate documentation automatically from our external API types and CLI commands #842
Comments
true. the state at website is quite messy at the moment as there is still ongoing migration to the hugo website framework. some of the old .mds contain HTML formatting that i cannot generate. also the whole automation of the process is quite unclear to me. |
cc @kubernetes/sig-docs-maintainers ^ |
Not sure whether y'all have seen the (old) planning doc, but in case it helps, it's here: https://docs.google.com/document/d/1w22y-C1YD1mmqqETxrQrCLnJpzwttscanddgvfYceYY/edit?usp=sharing TL;DR: considerably more detail than the more general explanation of what's going on in the /contribute content on the docs website. Unfortunately, also not updated for Hugo. I have my guesses about fixes needed for |
so i was thinking about the example config files included on some of our pages like this one: the tooling to generate a master config example automatically and import them on the page could be in the meantime, this has to be edited manually and i was thinking to saying the following instead of including an inline example:
|
I agree that's an ugly big config file and it's a pain to maintain manually. But the godoc seems like poor UX -- it's the same fields with a whole lotta interspersed comments and so it's even harder for the reader to parse. If the idea behind the recent work on kubeadm is to improve the UX, sending folks to the godoc feels like a bad regression. |
we just had a talk about this at the sig-meeting and it appears that we are leaning towards godocs instead of maintaining an example inline config. |
so ideally i would need a final decision on how to proceed with this - e.g. what should we put in place of the config here: godocs links, |
I'm in favor for at least adding GoDoc as a compliment. We're actively improving the quality of the Godoc comments. |
Could we provide both for 1.11, and try to commit to "the tooling to generate a master config example automatically" for 1.12? That is, provide the config YAML and the godoc? For 1.11, I'd be willing to double-check the YAML to make sure it's current. (Just be sure to assign the related docs PR directly to me, and add the 1.11 milestone, or I'll never find it ...) For this particular scenario, the problem is as much the sheer size of the object as it is the quality of the godoc comments. Harder to parse out the actual config file if you're a user. |
@neolit123 sounds feasible to you? |
@luxas @Bradamant3 for 1.11 i'm adding:
👍 |
I'm a nak on generating for the main website vs. linking to godoc, b/c it will become a maintenance burden. |
By that token, any generated doc is a maintenance burden, or keeping docs up to date at all. Some maintenance burdens are part of life | software. Or we can ignore our users. (True there's no great UX solution here. But that doesn't mean we should make the UX worse with godoc only.) |
@neolit123 @luxas what are we doing here. I really want to avoid generated docs and instead link out to godocs where possible. |
so the old PR from Fabrizio that @luxas mentions in the OP is generating docs and including docs. i will mention the above in: i think part of the idea here is to also be able to include automatically generated YAMLs for the master config, and other config types inside a until then, for this page specifically we need to replace the old config: |
Folks, we've conflated two different issues here: the OP, which was about the current kubeadm docs and how we produce them, and a related but different issue specifically about generating the YAML at https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm-init/#config-file. @neolit123 has some good thoughts about the YAML, but let's set them aside for now. For the larger issue about the kubeadm docs: Godocs are not an option here. We do not link to godocs from the /website repo. This is reference material for users/operators, not for devs, and the plan for the kubeadm docs was formulated and agreed upon over a period of months in 2017. It involved multiple iterations between dev and docs. Note also that historically sig-docs has been responsible for generating any required docs for the release. kubeadm is currently an exception because the process has not been adequately documented, and because the deliverables follow a new model, but these are the issues to address here, not whether we generate. sig-docs will need some help from sig-cluster-lifecycle in identifying and documenting the tooling and process. See inter alia kubernetes/website#8874 As #8874 also demonstrates, we've discovered recently that we do in fact need to include the generated docs for new kubeadm commands in PRs during the release cycle. This process is still being worked on. |
ok, we are leaving this issue only for the original topic: the two other ideas that came from this discussion are now logged in separate issues: |
@timothysc @luxas please, close if see fit. |
@fabriziopandini did half of this initially in kubernetes/website#6103, but I don't think those docs are updated automagically nor is the generation flow documented I think.
We should document how to generate those docs, along with API reference docs, in this repo (with link from https://github.com/kubernetes/kubeadm/blob/master/docs/release-cycle.md to whatever doc we create to make sure we do this if it has to be done manually for now).
cc @timothysc @neolit123
The text was updated successfully, but these errors were encountered: