-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
feat: Generate Markdown-doc from Variantfile #86
Comments
In a similar, but related PR we added support for "man pages" to In my own words, do you want a way to run the variant command and have it generate markdown suitable for appending to the |
@mumoshu, |
I tend to agree with @aroq on this point. |
@aroq @osterman Thanks for your feedbacks! Yep, generating md from variant yaml should work better and sounds more feasible. Originally I wanted the md-syntax as the first-class citizen so that you can ensure that the instructions and commands written in the md document is correct and can be verified to work(by running integration tests against the commands defined in the md). But almost certainly we can ensure the md doc is correct as long as variant generates md docs from variant yaml correctly :) |
As an ordinary engineer I often write documentation for my one-off scripts in GitHub Flavored Markdown. But it tends to get outdated quickly due to various reasons, including I just forget updating it, it isn't runnable hence unable to apply CI practices on it.
There's already a few task runners that tries to aid this issue, which uses markdown as the primary configuration syntax for tasks, like saku and maid. The idea of turning the documentation into a task runner is great, but none of those seems mature. Especially their syntaxes and features seems very limited.
On the other hand variant is already a feature-rich task runner. How about adding the markdown as the secondary configuration syntax for your command and tasks, and allows easy conversion between the existing YAML-based syntax and the brand-new Markdown-based syntax?
It will provide you:
The text was updated successfully, but these errors were encountered: