-
Notifications
You must be signed in to change notification settings - Fork 621
Fixing API Reference Doc Generation #549
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
Fixing API Reference Doc Generation #549
Conversation
|
@robscott: GitHub didn't allow me to request PR reviews from the following users: jberger. Note that only kubernetes-sigs members and repo collaborators can review this PR, and authors cannot review their own PRs. 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: robscott 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 |
b5c7a67 to
dcc977d
Compare
|
Need to get tests running again now that repo has been renamed, will make a PR to test-infra shortly. |
|
Waiting for kubernetes/test-infra#20851 to merge in before cancelling hold on this. |
dcc977d to
78d2407
Compare
|
/retest |
|
seems ok to me /lgtm |
Previously reference docs were converted from godoc to HTML with gen-crd-api-reference-docs and then converted to markdown with mkdocs as part of generating the docs site. This takes out the second step and instead inserts the generated html for the reference docs directly into the generated html for the docs site.
78d2407 to
fb265c8
Compare
|
@bowei Updated to use better replacement string. PTAL. /hold cancel |
|
I agree it's not the most elegant solution, but it's much, much better than what we had before. /lgtm |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Previously reference docs were converted from godoc to HTML with gen-crd-api-reference-docs and then converted to markdown with mkdocs as part of generating the docs site. This takes out the second step and instead inserts the generated html for the reference docs directly into the generated html for the docs site.
I will be the first to say this is a rather ugly solution and I'm very open to others. I've tried lots of different approaches but it's quite difficult to solve this without removing the double conversion that was happening before. I tried using the
includedirective we use elsewhere with mkdocs but even that results in the html getting converted to markdown again. #539 has some other options I tried as well with limited success.Some notable downsides of this approach:
*characters in godoc.make serve.docs-src/spec.mddoes not include generated reference docs - need to either look atdocs-src/spec.htmlor the website itself.I'm very open to other solutions here, but so far this is the least bad solution I've found.
Which issue(s) this PR fixes:
Fixes #539
Does this PR introduce a user-facing change?:
/cc @jpeach @hbagdi @jberger