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

Documentation generation for functions/resources #760

Open
purpleidea opened this issue May 14, 2024 · 1 comment
Open

Documentation generation for functions/resources #760

purpleidea opened this issue May 14, 2024 · 1 comment

Comments

@purpleidea
Copy link
Owner

Problem:

Our end users will likely want to get information on the available resources, functions, and constants. Let's make the documentation story better.

Issues:

It is possible to get information about the resources from reading the godoc page, but it is not in the ideal format for non-golang programmers to review. We'd also like to get information about the functions and constants. That information can be queried from an internal API. (We will add a .D (documentation) sub-field for that.)

We'd like to combine all of this information into simple, clear documentation which we can push to a statically generated website somewhere (html/markdown/text?) or even output in the terminal.

Architecture:

You should write a command to mgmt (maybe mgmt doc) that provides some mechanisms/flags to generate this documentation.

If you have questions please ask here!

@purpleidea
Copy link
Owner Author

@laurent-indermuehle I believe you suggested https://abhinav.github.io/doc2go/ might be a good API to look into instead of looking at the godoc code itself. At least for parsing resources, we'd need to use one of the existing golang libraries. I expect we wouldn't be able to use either godoc or the above tool via their CLI interfaces, but we'd want to wrap their actual codebase directly. HTH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant