Skip to content

Commit

Permalink
Update website content
Browse files Browse the repository at this point in the history
  • Loading branch information
tf-docs-bot committed May 30, 2024
1 parent 9cb5097 commit fb86c09
Show file tree
Hide file tree
Showing 18 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions content/how-to/recursive-submodules.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ set.
Path to find submodules can be configured with `--recursive-path` (defaults to
`modules`).

The main module document is generated by default, which can be configured with
`--recursive-include-main`. Should the main module document be excluded from
document generation, use `--recursive-include-main=false`.

Each submodule can also have their own `.terraform-docs.yml` config file, to
override configuration from root module.

Expand Down
1 change: 1 addition & 0 deletions content/reference/asciidoc-document.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ terraform-docs asciidoc document [PATH] [flags]
--output-values-from string inject output values from file into outputs (default "")
--read-comments use comments as description when description is empty (default true)
--recursive update submodules recursively (default false)
--recursive-include-main include the main module (default true)
--recursive-path string submodules path to recursively update (default "modules")
--required show Required column or section (default true)
--sensitive show Sensitive column or section (default true)
Expand Down
1 change: 1 addition & 0 deletions content/reference/asciidoc-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ terraform-docs asciidoc table [PATH] [flags]
--output-values-from string inject output values from file into outputs (default "")
--read-comments use comments as description when description is empty (default true)
--recursive update submodules recursively (default false)
--recursive-include-main include the main module (default true)
--recursive-path string submodules path to recursively update (default "modules")
--required show Required column or section (default true)
--sensitive show Sensitive column or section (default true)
Expand Down
1 change: 1 addition & 0 deletions content/reference/asciidoc.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ terraform-docs asciidoc [PATH] [flags]
--output-values-from string inject output values from file into outputs (default "")
--read-comments use comments as description when description is empty (default true)
--recursive update submodules recursively (default false)
--recursive-include-main include the main module (default true)
--recursive-path string submodules path to recursively update (default "modules")
--show strings show section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
--sort sort items (default true)
Expand Down
1 change: 1 addition & 0 deletions content/reference/json.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ terraform-docs json [PATH] [flags]
--output-values-from string inject output values from file into outputs (default "")
--read-comments use comments as description when description is empty (default true)
--recursive update submodules recursively (default false)
--recursive-include-main include the main module (default true)
--recursive-path string submodules path to recursively update (default "modules")
--show strings show section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
--sort sort items (default true)
Expand Down
1 change: 1 addition & 0 deletions content/reference/markdown-document.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ terraform-docs markdown document [PATH] [flags]
--output-values-from string inject output values from file into outputs (default "")
--read-comments use comments as description when description is empty (default true)
--recursive update submodules recursively (default false)
--recursive-include-main include the main module (default true)
--recursive-path string submodules path to recursively update (default "modules")
--required show Required column or section (default true)
--sensitive show Sensitive column or section (default true)
Expand Down
1 change: 1 addition & 0 deletions content/reference/markdown-table.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ terraform-docs markdown table [PATH] [flags]
--output-values-from string inject output values from file into outputs (default "")
--read-comments use comments as description when description is empty (default true)
--recursive update submodules recursively (default false)
--recursive-include-main include the main module (default true)
--recursive-path string submodules path to recursively update (default "modules")
--required show Required column or section (default true)
--sensitive show Sensitive column or section (default true)
Expand Down
1 change: 1 addition & 0 deletions content/reference/markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ terraform-docs markdown [PATH] [flags]
--output-values-from string inject output values from file into outputs (default "")
--read-comments use comments as description when description is empty (default true)
--recursive update submodules recursively (default false)
--recursive-include-main include the main module (default true)
--recursive-path string submodules path to recursively update (default "modules")
--show strings show section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
--sort sort items (default true)
Expand Down
1 change: 1 addition & 0 deletions content/reference/pretty.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ terraform-docs pretty [PATH] [flags]
--output-values-from string inject output values from file into outputs (default "")
--read-comments use comments as description when description is empty (default true)
--recursive update submodules recursively (default false)
--recursive-include-main include the main module (default true)
--recursive-path string submodules path to recursively update (default "modules")
--show strings show section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
--sort sort items (default true)
Expand Down
1 change: 1 addition & 0 deletions content/reference/terraform-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ terraform-docs [PATH] [flags]
--output-values-from string inject output values from file into outputs (default "")
--read-comments use comments as description when description is empty (default true)
--recursive update submodules recursively (default false)
--recursive-include-main include the main module (default true)
--recursive-path string submodules path to recursively update (default "modules")
--show strings show section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
--sort sort items (default true)
Expand Down
1 change: 1 addition & 0 deletions content/reference/tfvars-hcl.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ terraform-docs tfvars hcl [PATH] [flags]
--output-values-from string inject output values from file into outputs (default "")
--read-comments use comments as description when description is empty (default true)
--recursive update submodules recursively (default false)
--recursive-include-main include the main module (default true)
--recursive-path string submodules path to recursively update (default "modules")
--show strings show section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
--sort sort items (default true)
Expand Down
1 change: 1 addition & 0 deletions content/reference/tfvars-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ terraform-docs tfvars json [PATH] [flags]
--output-values-from string inject output values from file into outputs (default "")
--read-comments use comments as description when description is empty (default true)
--recursive update submodules recursively (default false)
--recursive-include-main include the main module (default true)
--recursive-path string submodules path to recursively update (default "modules")
--show strings show section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
--sort sort items (default true)
Expand Down
1 change: 1 addition & 0 deletions content/reference/tfvars.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ Generate terraform.tfvars of inputs.
--output-values-from string inject output values from file into outputs (default "")
--read-comments use comments as description when description is empty (default true)
--recursive update submodules recursively (default false)
--recursive-include-main include the main module (default true)
--recursive-path string submodules path to recursively update (default "modules")
--show strings show section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
--sort sort items (default true)
Expand Down
1 change: 1 addition & 0 deletions content/reference/toml.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ terraform-docs toml [PATH] [flags]
--output-values-from string inject output values from file into outputs (default "")
--read-comments use comments as description when description is empty (default true)
--recursive update submodules recursively (default false)
--recursive-include-main include the main module (default true)
--recursive-path string submodules path to recursively update (default "modules")
--show strings show section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
--sort sort items (default true)
Expand Down
1 change: 1 addition & 0 deletions content/reference/xml.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ terraform-docs xml [PATH] [flags]
--output-values-from string inject output values from file into outputs (default "")
--read-comments use comments as description when description is empty (default true)
--recursive update submodules recursively (default false)
--recursive-include-main include the main module (default true)
--recursive-path string submodules path to recursively update (default "modules")
--show strings show section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
--sort sort items (default true)
Expand Down
1 change: 1 addition & 0 deletions content/reference/yaml.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ terraform-docs yaml [PATH] [flags]
--output-values-from string inject output values from file into outputs (default "")
--read-comments use comments as description when description is empty (default true)
--recursive update submodules recursively (default false)
--recursive-include-main include the main module (default true)
--recursive-path string submodules path to recursively update (default "modules")
--show strings show section [all, data-sources, footer, header, inputs, modules, outputs, providers, requirements, resources]
--sort sort items (default true)
Expand Down
1 change: 1 addition & 0 deletions content/user-guide/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ footer-from: ""
recursive:
enabled: false
path: modules
include-main: true

sections:
hide: []
Expand Down
10 changes: 10 additions & 0 deletions content/user-guide/configuration/recursive.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Available options with their default values.
recursive:
enabled: false
path: modules
include-main: true
```
## Examples
Expand All @@ -50,3 +51,12 @@ recursive:
enabled: true
path: submodules-folder
```
Skip the main module document, and only generate documents for submodules.
```yaml
recursive:
enabled: true
path: submodules-folder
include-main: false
```

0 comments on commit fb86c09

Please sign in to comment.