Replies: 3 comments 3 replies
-
Sorry for the long delay. Default template for generating content contains Markdown specific comment, as it is the most used format for terraform-docs, but you can provide your own template and more importantly your own template comment. To properly generating AsciiDoc format you can use: formatter: adoc
output:
file: README.adoc
mode: replace
template: |-
// BEGIN_TF_DOCS (or whatever else you want to word it here)
{{ .Content }}
// END_TF_DOCS (... also here) |
Beta Was this translation helpful? Give feedback.
-
Since this is not an actual bug, if you're ok with it, I'm going to convert this to discussion for visibility and future reference for other folks. |
Beta Was this translation helpful? Give feedback.
-
Is there any way to have no comment? I'm wanting to use this for json, but there are no comments in json |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
Produces:
The
<!-- -->
comment style does not exist in asciidoc so its interpreted as text which i dont want to see in my documentation. It would be awesome if you can change that to one of the following:https://docs.asciidoctor.org/asciidoc/latest/comments/
How can we reproduce it?
see above just generate tfdocs with format "adoc"
Environment information
tfdocs 0.16
win11 -> wsl2 -> ubuntu -> tfdoc
I may be too dumb to use tfdocs but i guess its a small and easy to fix bug.
Best
SeameX
Beta Was this translation helpful? Give feedback.
All reactions