-
-
Notifications
You must be signed in to change notification settings - Fork 685
Generate documentation based on your taskfile #1695
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
Comments
I've wanted to overhaul the task formatter for a while so that you can do something like:
A nice way to do this might be to support:
Since most docs servers support some flavour of markdown, this would allow us to support them in a generic way. We could even do this ourselves to document our project Taskfile using our Docusaurus site. |
You can see what I did to generate documentation, which is consumed by a VS Code extension, for autocomplete operation. Note that the task schema is not (currently) sufficient for the task of documenting a task completely, so I had to put it in a metadata file, along with other things that did not fit in the schema. We would/will use that to also generate MD doc, but @pd93 please be aware, generated Markdown still needs to work within a documentation system (i.e. Hugo) and existing documentation styles, so a templating mechanism would probably be better. Perhaps, one way to do this would be to simply walk the AST and apply a user provided go template file. That way its possible to get the doc generated according to the needs of the documentation system we are targeting. |
#2261 and #2091 brings up a similar topic, custom output for list command ... I did something with the @pd93 might it be possible to do this using the text/template go stdlib, then the output can be user defined. Something like this, based on the json object created by the
template.txt
Having access to a metadata object (#1916) would further support the use case. |
Uh oh!
There was an error while loading. Please reload this page.
We have option for displaying summary, also we configure input variables. I we use multiple task modules and sharing between teams, document generation tool can really helpout to have better visibility on how to use the task module one created.
I created my own python code to generate docs: https://github.com/Rishang/task-templates/blob/main/generate_docs.py
And here is how the docs look: https://github.com/Rishang/task-templates/blob/main/docs/_aws.md
The text was updated successfully, but these errors were encountered: