-
Notifications
You must be signed in to change notification settings - Fork 23
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
CRD docs integration #263
CRD docs integration #263
Conversation
Signed-off-by: John Krug <[email protected]>
✅ Deploy Preview for silly-bunny-8cedd0 ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@jhkrug it's starting to look good, but the |
This is personal preference, but I wonder if we could not generate the docs for old |
I think this is a step in the right direction. There are some minor rendering glitches as others pointed out, but I like it! |
This because the documentation source contains markdown for a list. A markdown list is not permitted in a markdown table cell. At least not in docusaurus. So, you can't put markdown formatting in the crd source. Plain, vanilla, unformatted text only. It's likely not to work. It works for asciidoc. Which we don't use, sadly perhaps. |
Maybe we can generate the crd docs in markdown instead, that could be a possibility too. |
That's what I did for the demo. We can't use the default asciidoc. |
I can take a look at the docs source file for this and try opening a PR in there. |
You can use a html list in policy_types.go and it works as well. So, that's another option. |
Signed-off-by: John Krug <[email protected]>
Signed-off-by: John Krug <[email protected]>
So, it appears that the most you can get away with regarding docstring formatting is a html encoded list and list items. And I'd discourage that as well. Too prone to error and complications. Some of the docstrings have code blocks in them. They don't work. I'd suggest an iteration of the docstrings. There is perhaps too much material in there. Keep it as short as possible, with links to doc pages as necessary for further explanations. So why does it currently work? Well, different tool chains, but it doesn't really, particularly the namespaceSelector at the bottom. |
Signed-off-by: John Krug <[email protected]>
Signed-off-by: John Krug <[email protected]>
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.
LGTM!
Super happy with this! This section was also the last one not accessible offline, now we can ship the docs together with the helm-charts, make them available even on airgap, or provide them in the UI!
I'm ok with making the CRDs more explicit, maybe just under "Reference docs" and not "Reference docs -> Operator Manual". |
Forgive me, I wasn't really explicit about the change I made. I've just added the new "TIP" section, the one in green. |
Signed-off-by: John Krug <[email protected]>
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 the new changes!
Do you like the look of this? I've just added the generated file contents into the page to see what it looks like.
@flavio , @viccuad , @jvanz