envdoc icon indicating copy to clipboard operation
envdoc copied to clipboard

Custom Template Support

Open rhodeon opened this issue 3 months ago • 1 comments

Hey, there. Great project. I recently started using envdoc and wanted to make some docs with Markdown tables, but realised that wasn't a built-in format. So I implemented custom template support. The new addition is a -template flag which points to the custom file and has precedence over the -format flag. I've also updated the documentation and examples to reflect the new feature. This should also resolve #41. Do let me know if any related changes need to be made.

rhodeon avatar Nov 12 '25 17:11 rhodeon

I just added an extra bit of customisation. Previously, the headers of the generated files were hard-coded to Environment Variables. In a codebase where multiple files are generated, it can be useful to have a more specific title. I introduced a -title flag for that, and it defaults to Environment Variables for backward compatibility.

rhodeon avatar Nov 13 '25 19:11 rhodeon