mirror of
https://github.com/terraform-docs/terraform-docs.git
synced 2026-03-27 12:58:35 +07:00
Move template package from internal to public
Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
This commit is contained in:
9
template/testdata/document/codeblock.expected
vendored
Normal file
9
template/testdata/document/codeblock.expected
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
This is a complicated one. We need a newline.
|
||||
And an example in a code block. Availeble options
|
||||
are: foo | bar | baz
|
||||
|
||||
```
|
||||
default = [
|
||||
"foo"
|
||||
]
|
||||
```
|
||||
8
template/testdata/document/codeblock.golden
vendored
Normal file
8
template/testdata/document/codeblock.golden
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
This is a complicated one. We need a newline.
|
||||
And an example in a code block. Availeble options
|
||||
are: foo | bar | baz
|
||||
|
||||
```
|
||||
default = [
|
||||
"foo"
|
||||
]```
|
||||
37
template/testdata/document/complex.expected
vendored
Normal file
37
template/testdata/document/complex.expected
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
Usage:
|
||||
|
||||
Example of 'foo\_bar' module in `foo_bar.tf`.
|
||||
|
||||
- list item 1
|
||||
- list item 2
|
||||
|
||||
Even inline **formatting** in _here_ is possible.
|
||||
and some [link](https://domain.com/)
|
||||
|
||||
* list item 3
|
||||
* list item 4
|
||||
|
||||
```hcl
|
||||
module "foo_bar" {
|
||||
source = "github.com/foo/bar"
|
||||
|
||||
id = "1234567890"
|
||||
name = "baz"
|
||||
|
||||
zones = ["us-east-1", "us-west-1"]
|
||||
|
||||
tags = {
|
||||
Name = "baz"
|
||||
Created-By = "first.last@email.com"
|
||||
Date-Created = "20180101"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Here is some trailing text after code block,
|
||||
followed by another line of text.
|
||||
|
||||
| Name | Description |
|
||||
|------|-----------------|
|
||||
| Foo | Foo description |
|
||||
| Bar | Bar description |
|
||||
37
template/testdata/document/complex.golden
vendored
Normal file
37
template/testdata/document/complex.golden
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
Usage:
|
||||
|
||||
Example of 'foo_bar' module in `foo_bar.tf`.
|
||||
|
||||
- list item 1
|
||||
- list item 2
|
||||
|
||||
Even inline **formatting** in _here_ is possible.
|
||||
and some [link](https://domain.com/)
|
||||
|
||||
* list item 3
|
||||
* list item 4
|
||||
|
||||
```hcl
|
||||
module "foo_bar" {
|
||||
source = "github.com/foo/bar"
|
||||
|
||||
id = "1234567890"
|
||||
name = "baz"
|
||||
|
||||
zones = ["us-east-1", "us-west-1"]
|
||||
|
||||
tags = {
|
||||
Name = "baz"
|
||||
Created-By = "first.last@email.com"
|
||||
Date-Created = "20180101"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Here is some trailing text after code block,
|
||||
followed by another line of text.
|
||||
|
||||
| Name | Description |
|
||||
|------|-----------------|
|
||||
| Foo | Foo description |
|
||||
| Bar | Bar description |
|
||||
1
template/testdata/document/empty.expected
vendored
Normal file
1
template/testdata/document/empty.expected
vendored
Normal file
@@ -0,0 +1 @@
|
||||
n/a
|
||||
0
template/testdata/document/empty.golden
vendored
Normal file
0
template/testdata/document/empty.golden
vendored
Normal file
9
template/testdata/multiline/indentations.golden
vendored
Normal file
9
template/testdata/multiline/indentations.golden
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
This is is a multline test which works
|
||||
|
||||
Key
|
||||
Foo1: blah
|
||||
Foo2: blah
|
||||
|
||||
Key2
|
||||
Foo1: bar1
|
||||
Foo2: bar2
|
||||
6
template/testdata/multiline/list.golden
vendored
Normal file
6
template/testdata/multiline/list.golden
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
- Lorem ipsum dolor sit amet,
|
||||
* Lorem ipsum dolor sit amet,
|
||||
* consectetur adipiscing elit,
|
||||
- consectetur adipiscing elit,
|
||||
- sed do eiusmod tempor incididunt
|
||||
- ut labore et dolore magna aliqua.
|
||||
10
template/testdata/multiline/newline-double.golden
vendored
Normal file
10
template/testdata/multiline/newline-double.golden
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
Lorem ipsum dolor sit amet,
|
||||
|
||||
|
||||
consectetur adipiscing elit,
|
||||
|
||||
|
||||
sed do eiusmod tempor incididunt
|
||||
|
||||
|
||||
ut labore et dolore magna aliqua.
|
||||
7
template/testdata/multiline/newline-single.golden
vendored
Normal file
7
template/testdata/multiline/newline-single.golden
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
Lorem ipsum dolor sit amet,
|
||||
|
||||
consectetur adipiscing elit,
|
||||
|
||||
sed do eiusmod tempor incididunt
|
||||
|
||||
ut labore et dolore magna aliqua.
|
||||
4
template/testdata/multiline/paragraph.golden
vendored
Normal file
4
template/testdata/multiline/paragraph.golden
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
Lorem ipsum dolor sit amet,
|
||||
consectetur adipiscing elit,
|
||||
sed do eiusmod tempor incididunt
|
||||
ut labore et dolore magna aliqua.
|
||||
9
template/testdata/section/codeblock.expected
vendored
Normal file
9
template/testdata/section/codeblock.expected
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
This is a complicated one. We need a newline.
|
||||
And an example in a code block. Availeble options
|
||||
are: foo | bar | baz
|
||||
|
||||
```
|
||||
default = [
|
||||
"foo"
|
||||
]
|
||||
```
|
||||
8
template/testdata/section/codeblock.golden
vendored
Normal file
8
template/testdata/section/codeblock.golden
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
This is a complicated one. We need a newline.
|
||||
And an example in a code block. Availeble options
|
||||
are: foo | bar | baz
|
||||
|
||||
```
|
||||
default = [
|
||||
"foo"
|
||||
]```
|
||||
47
template/testdata/section/complex.expected
vendored
Normal file
47
template/testdata/section/complex.expected
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
Usage:
|
||||
|
||||
Example of 'foo\_bar' module in `foo_bar.tf`.
|
||||
|
||||
- list item 1
|
||||
- list item 2
|
||||
|
||||
Even inline **formatting** in _here_ is possible.
|
||||
and some [link](https://domain.com/)
|
||||
|
||||
* list item 3
|
||||
* list item 4
|
||||
|
||||
```hcl
|
||||
module "foo_bar" {
|
||||
source = "github.com/foo/bar"
|
||||
|
||||
id = "1234567890"
|
||||
name = "baz"
|
||||
|
||||
zones = ["us-east-1", "us-west-1"]
|
||||
|
||||
tags = {
|
||||
Name = "baz"
|
||||
Created-By = "first.last@email.com"
|
||||
Date-Created = "20180101"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
1. Entry one with code
|
||||
|
||||
```json
|
||||
{
|
||||
"key": "value"
|
||||
}
|
||||
```
|
||||
|
||||
1. This line should not be broken
|
||||
|
||||
Here is some trailing text after code block,
|
||||
followed by another line of text.
|
||||
|
||||
| Name | Description |
|
||||
|------|-----------------|
|
||||
| Foo | Foo description |
|
||||
| Bar | Bar description |
|
||||
47
template/testdata/section/complex.golden
vendored
Normal file
47
template/testdata/section/complex.golden
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
Usage:
|
||||
|
||||
Example of 'foo_bar' module in `foo_bar.tf`.
|
||||
|
||||
- list item 1
|
||||
- list item 2
|
||||
|
||||
Even inline **formatting** in _here_ is possible.
|
||||
and some [link](https://domain.com/)
|
||||
|
||||
* list item 3
|
||||
* list item 4
|
||||
|
||||
```hcl
|
||||
module "foo_bar" {
|
||||
source = "github.com/foo/bar"
|
||||
|
||||
id = "1234567890"
|
||||
name = "baz"
|
||||
|
||||
zones = ["us-east-1", "us-west-1"]
|
||||
|
||||
tags = {
|
||||
Name = "baz"
|
||||
Created-By = "first.last@email.com"
|
||||
Date-Created = "20180101"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
1. Entry one with code
|
||||
|
||||
```json
|
||||
{
|
||||
"key": "value"
|
||||
}
|
||||
```
|
||||
|
||||
1. This line should not be broken
|
||||
|
||||
Here is some trailing text after code block,
|
||||
followed by another line of text.
|
||||
|
||||
| Name | Description |
|
||||
|------|-----------------|
|
||||
| Foo | Foo description |
|
||||
| Bar | Bar description |
|
||||
1
template/testdata/section/empty.expected
vendored
Normal file
1
template/testdata/section/empty.expected
vendored
Normal file
@@ -0,0 +1 @@
|
||||
n/a
|
||||
0
template/testdata/section/empty.golden
vendored
Normal file
0
template/testdata/section/empty.golden
vendored
Normal file
1
template/testdata/table/codeblock-html.markdown.expected
vendored
Normal file
1
template/testdata/table/codeblock-html.markdown.expected
vendored
Normal file
@@ -0,0 +1 @@
|
||||
This is a complicated one. We need a newline.<br>And an example in a code block. Availeble options<br>are: foo \| bar \| baz<pre>default = [<br> "foo"<br>]</pre>
|
||||
1
template/testdata/table/codeblock-nohtml.markdown.expected
vendored
Normal file
1
template/testdata/table/codeblock-nohtml.markdown.expected
vendored
Normal file
@@ -0,0 +1 @@
|
||||
This is a complicated one. We need a newline. And an example in a code block. Availeble options are: foo \| bar \| baz ```default = [ "foo" ]```
|
||||
10
template/testdata/table/codeblock.asciidoc.expected
vendored
Normal file
10
template/testdata/table/codeblock.asciidoc.expected
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
This is a complicated one. We need a newline.
|
||||
And an example in a code block. Availeble options
|
||||
are: foo \| bar \| baz
|
||||
|
||||
[source]
|
||||
----
|
||||
default = [
|
||||
"foo"
|
||||
]
|
||||
----
|
||||
8
template/testdata/table/codeblock.golden
vendored
Normal file
8
template/testdata/table/codeblock.golden
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
This is a complicated one. We need a newline.
|
||||
And an example in a code block. Availeble options
|
||||
are: foo | bar | baz
|
||||
|
||||
```
|
||||
default = [
|
||||
"foo"
|
||||
]```
|
||||
1
template/testdata/table/complex-html.markdown.expected
vendored
Normal file
1
template/testdata/table/complex-html.markdown.expected
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Usage:<br><br>Example of 'foo\_bar' module in `foo_bar.tf`.<br><br>- list item 1<br>- list item 2<br><br>Even inline **formatting** in _here_ is possible.<br>and some [link](https://domain.com/)<br><br>* list item 3<br>* list item 4<pre>module "foo_bar" {<br> source = "github.com/foo/bar"<br><br> id = "1234567890"<br> name = "baz"<br><br> zones = ["us-east-1", "us-west-1"]<br><br> tags = {<br> Name = "baz"<br> Created-By = "first.last@email.com"<br> Date-Created = "20180101"<br> }<br>}</pre>Here is some trailing text after code block,<br>followed by another line of text.<br><br>\| Name \| Description \|<br>\|------\|-----------------\|<br>\| Foo \| Foo description \|<br>\| Bar \| Bar description \|
|
||||
1
template/testdata/table/complex-nohtml.markdown.expected
vendored
Normal file
1
template/testdata/table/complex-nohtml.markdown.expected
vendored
Normal file
@@ -0,0 +1 @@
|
||||
Usage: Example of 'foo\_bar' module in `foo_bar.tf`. - list item 1 - list item 2 Even inline **formatting** in _here_ is possible. and some [link](https://domain.com/) * list item 3 * list item 4 ```module "foo_bar" { source = "github.com/foo/bar" id = "1234567890" name = "baz" zones = ["us-east-1", "us-west-1"] tags = { Name = "baz" Created-By = "first.last@email.com" Date-Created = "20180101" } }``` Here is some trailing text after code block, followed by another line of text. \| Name \| Description \| \|------\|-----------------\| \| Foo \| Foo description \| \| Bar \| Bar description \|
|
||||
38
template/testdata/table/complex.asciidoc.expected
vendored
Normal file
38
template/testdata/table/complex.asciidoc.expected
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
Usage:
|
||||
|
||||
Example of 'foo_bar' module in `foo_bar.tf`.
|
||||
|
||||
- list item 1
|
||||
- list item 2
|
||||
|
||||
Even inline **formatting** in _here_ is possible.
|
||||
and some [link](https://domain.com/)
|
||||
|
||||
* list item 3
|
||||
* list item 4
|
||||
|
||||
[source]
|
||||
----
|
||||
module "foo_bar" {
|
||||
source = "github.com/foo/bar"
|
||||
|
||||
id = "1234567890"
|
||||
name = "baz"
|
||||
|
||||
zones = ["us-east-1", "us-west-1"]
|
||||
|
||||
tags = {
|
||||
Name = "baz"
|
||||
Created-By = "first.last@email.com"
|
||||
Date-Created = "20180101"
|
||||
}
|
||||
}
|
||||
----
|
||||
|
||||
Here is some trailing text after code block,
|
||||
followed by another line of text.
|
||||
|
||||
\| Name \| Description \|
|
||||
\|------\|-----------------\|
|
||||
\| Foo \| Foo description \|
|
||||
\| Bar \| Bar description \|
|
||||
37
template/testdata/table/complex.golden
vendored
Normal file
37
template/testdata/table/complex.golden
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
Usage:
|
||||
|
||||
Example of 'foo_bar' module in `foo_bar.tf`.
|
||||
|
||||
- list item 1
|
||||
- list item 2
|
||||
|
||||
Even inline **formatting** in _here_ is possible.
|
||||
and some [link](https://domain.com/)
|
||||
|
||||
* list item 3
|
||||
* list item 4
|
||||
|
||||
```
|
||||
module "foo_bar" {
|
||||
source = "github.com/foo/bar"
|
||||
|
||||
id = "1234567890"
|
||||
name = "baz"
|
||||
|
||||
zones = ["us-east-1", "us-west-1"]
|
||||
|
||||
tags = {
|
||||
Name = "baz"
|
||||
Created-By = "first.last@email.com"
|
||||
Date-Created = "20180101"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Here is some trailing text after code block,
|
||||
followed by another line of text.
|
||||
|
||||
| Name | Description |
|
||||
|------|-----------------|
|
||||
| Foo | Foo description |
|
||||
| Bar | Bar description |
|
||||
1
template/testdata/table/empty.asciidoc.expected
vendored
Normal file
1
template/testdata/table/empty.asciidoc.expected
vendored
Normal file
@@ -0,0 +1 @@
|
||||
n/a
|
||||
0
template/testdata/table/empty.golden
vendored
Normal file
0
template/testdata/table/empty.golden
vendored
Normal file
1
template/testdata/table/empty.markdown.expected
vendored
Normal file
1
template/testdata/table/empty.markdown.expected
vendored
Normal file
@@ -0,0 +1 @@
|
||||
n/a
|
||||
Reference in New Issue
Block a user