66nf-docs generate PIPELINE_PATH [OPTIONS]
77```
88
9- | Option | Description |
10- | ------------------- | ----------------------------------------------------------- |
11- | ` --format ` , ` -f ` | Output format: ` html ` (default), ` markdown ` , ` json ` , ` yaml ` |
12- | ` --output ` , ` -o ` | Output file or directory (default: ` docs/ ` ) |
13- | ` --title ` , ` -t ` | Custom title |
14- | ` --no-cache ` | Force fresh extraction |
15- | ` --verbose ` , ` -v ` | Debug output |
16- | ` --language-server ` | Path to Language Server JAR |
9+ | Option | Description |
10+ | ------------------- | -------------------------------------------------------------------- |
11+ | ` --format ` , ` -f ` | Output format: ` html ` (default), ` markdown ` , ` table ` , ` json ` , ` yaml ` |
12+ | ` --output ` , ` -o ` | Output file or directory (default: ` docs/ ` ) |
13+ | ` --title ` , ` -t ` | Custom title |
14+ | ` --no-cache ` | Force fresh extraction |
15+ | ` --verbose ` , ` -v ` | Debug output |
16+ | ` --language-server ` | Path to Language Server JAR |
1717
1818``` bash
1919# HTML — single shareable file
@@ -24,6 +24,10 @@ nf-docs generate . -f markdown -o docs/
2424
2525# JSON — pipe to file or other tools
2626nf-docs generate . -f json > api.json
27+
28+ # Table — compact terraform-docs-style tables
29+ nf-docs generate . -f table -o docs/
30+
2731```
2832
2933### Other commands
8286### JSON / YAML
8387
8488Structured data for programmatic use, CI/CD pipelines, or custom tooling.
89+
90+ ### Table
91+
92+ A single ` README.md ` with compact Markdown tables — inspired by
93+ [ terraform-docs] ( https://github.com/terraform-docs/terraform-docs ) .
94+
95+ Supports ** marker-based injection** into existing README files:
96+
97+ ``` markdown
98+ # My Pipeline
99+
100+ Some intro text.
101+
102+ <!-- BEGIN_NF_DOCS -->
103+ <!-- END_NF_DOCS -->
104+
105+ Other content below.
106+ ```
107+
108+ Running ` nf-docs generate . -f table -o . ` will inject the generated tables between the markers,
109+ leaving the rest of the file untouched.
110+
111+ #### Selective sections with template tags
112+
113+ Control which sections appear by adding ` {{ section }} ` placeholders between the markers:
114+
115+ ``` markdown
116+ <!-- BEGIN_NF_DOCS -->
117+
118+ {{ inputs }}
119+
120+ {{ config }}
121+
122+ <!-- END_NF_DOCS -->
123+ ```
124+
125+ Available tags: ` {{ header }} ` , ` {{ inputs }} ` , ` {{ config }} ` , ` {{ workflows }} ` ,
126+ ` {{ processes }} ` , ` {{ functions }} ` .
127+
128+ If no tags are present, all sections are rendered (the default).
0 commit comments