-
Notifications
You must be signed in to change notification settings - Fork 190
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
Publish generated API documentation #876
Comments
Is this what you are looking for?
|
@rs -- It's not quite clear if you're asking if this is representative of the info I had in mind or if you're implying the CLI help system is adequate (to cover this feat request). If the former, then yes -- that info but collected and pushed to something like If the latter, then I'm happy to concede. This is a "nice-to-have" feature request, not a bug report. I found what I needed eventually (via the CLI help flags, as you've demonstrated). In the workflows I'm accustomed to, it's often handy to have (and find) this content in an open browser tab. I figured it couldn't hurt to ask, but I also want to be respectful of the project's time, resources, and priorities. |
The occasion for writing this feat request was specifically related to configuration directives. I was wondering about
max-ttl
and could only find brief commentary on the Cache Configuration page.Which values are valid? The
5s
example is clearly "5 seconds". Does it support5m
or5seconds
? How does it interpret5
(no suffix)? What about0
? I could see that meaning "off (always fetch)" or "indefinite (never fetch)" -- there's precedent for both semantic meanings in the wild.Also, what settings are even available? I can find the
Config
struct in the source, but I've not found an enumeration of these config keys in any published documentation.The above is just an example -- although it would be appreciated, I'm not asking for feedback about
max-ttl
here (and I plan on figuring it out by reading the source). Rather, I believe that this scenario (and more) would be naturally covered by auto-generated API documentation.I hail from the Python ecosystem where the de facto solution is Sphinx, commonly paired with something like
pdoc
,autodoc
,doxygen
, etc. I'm sure Go must have similar tooling available. With proper docstrings and a pipeline, it would be effortless to keep these generated docs in sync.The text was updated successfully, but these errors were encountered: