I wanted to share with you docsible. It helps generate documentation for Ansible roles and collections automatically.
Docsible creates clear, organized README files with mermaid graph, making it easier to manage/read your projects.
Nice one, have you considered an additional command line option to output the results to a file other than README.md? Personally I’d rather write the results to a different file name and link from the README.md.
I have run docsible for one role but I couldn’t commit it to share it as it failed the pre-commit config for Markdown files, in .pre-commit-config.yaml I have:
Hello @chris,
Yes, file name with path can be different, on issues github page there is a feature request template.
You should get a message like this if the yaml in tasks folder is diff than a role tasks:
Unexpected data type for tasks in .pre-commit-config.yaml. Skipping.
Ok, I get your problem now.
I have generate the readme and yes table result with vars values are to long.
You can extract the base jinja2 template from docsible and create your own readme template.
Just pass --md-template with path.
I suggest you to only show link to var and not the value, the vars contains a big list.
Thank you for your reply, I’ll try to find a solution for long lists in vars.
Hi @lucian , thanks for sharing! I’m moving the thread to the Project Discussions category, as it seems this can be considered as a discussion related to the whole Ansible projects documentation efforts.
For reference, the original category (Social Space) is mostly for “off topic” things, like hobbies or other social exchanges, ideally, stuff that doesn’t fit elsewhere. Checking other posts, we probably need to curate it a bit… sorry about that!