This is a simple CLI tool that allows you to automatically generate highly opinionated documentation with minimal input from the human
git clone git@github.com:userbradley/actions-documenter.git
go installCreate a file called readme.hcl
In the file put the below:
version = "v1.0.0"
title {
enabled = true
override = ""
}
quickstart {
path = "docs/quickstart.md"
}
examples {
example {
enabled = true
name = "Example 1"
path = "docs/example1.md"
}
}
footer {
footer_from = "footer.md"
}To make life easier and not having to update every reference for the verison, you can use @${{version}} in the action file
steps:
- uses: userbradley/example-action@${{version}}When this gets rendered out, it will be replaced with what ever version is set to
You should ensure that the readme.hcl file is in the same location as the action.yml file
To add more examples, just repeat the example block like below
examples {
example {
enabled = true
name = "Example 1"
path = "docs/example1.md"
}
example {
enabled = true
name = "Example 2"
path = "docs/example2.md"
}
}As per the license, if you want to use this internally please contact me on legal@breadnet.co.uk