Move template package from internal to public

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
This commit is contained in:
Khosrow Moossavi
2021-05-31 18:13:38 -04:00
parent 4f698fb177
commit b3ff51475c
44 changed files with 402 additions and 159 deletions

View 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"
]
```

View 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"
]```

View 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 |

View 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 |

View File

@@ -0,0 +1 @@
n/a

View File

View File

@@ -0,0 +1,9 @@
This is is a multline test which works
Key
Foo1: blah
Foo2: blah
Key2
Foo1: bar1
Foo2: bar2

View 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.

View File

@@ -0,0 +1,10 @@
Lorem ipsum dolor sit amet,
consectetur adipiscing elit,
sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua.

View File

@@ -0,0 +1,7 @@
Lorem ipsum dolor sit amet,
consectetur adipiscing elit,
sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua.

View File

@@ -0,0 +1,4 @@
Lorem ipsum dolor sit amet,
consectetur adipiscing elit,
sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua.

View 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"
]
```

View 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"
]```

View 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 |

View 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 |

View File

@@ -0,0 +1 @@
n/a

View File

View 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>

View 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" ]```

View 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"
]
----

View 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"
]```

View 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 \|

View 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 \|

View 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
View 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 |

View File

@@ -0,0 +1 @@
n/a

0
template/testdata/table/empty.golden vendored Normal file
View File

View File

@@ -0,0 +1 @@
n/a