-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactoring string formatting to jinja2
- Loading branch information
Showing
7 changed files
with
120 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
scripts/generators/templates/field_details/acceptable_value_names.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
|
||
*Important*: The field value must be one of the following: | ||
|
||
{{ allowed_values }} | ||
|
||
To learn more about when to use which value, visit the page | ||
<<ecs-allowed-values-{{ dashed_name }},allowed values for {{ flat_name }}>> | ||
|
6 changes: 6 additions & 0 deletions
6
scripts/generators/templates/field_details/field_reuse_section.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
==== Field Reuse | ||
|
||
{{ reuse_of_fieldset }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
|
||
| <<ecs-{{ nesting_name }},{{ flat_nesting }}>> | ||
| {{ nesting_short }} | ||
|
||
// =============================================================== | ||
|
||
|
11 changes: 11 additions & 0 deletions
11
scripts/generators/templates/field_details/nestings_table_header.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
[[ecs-{{ name }}-nestings]] | ||
===== Field sets that can be nested under {{ title }} | ||
|
||
[options="header"] | ||
|===== | ||
| Nested fields | Description | ||
|
||
// =============================================================== | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
| {{ flat_name }} | ||
| {{ description|replace("\n", "\n\n") }} | ||
|
||
type: {{ field_type }} | ||
|
||
{{ normalization }} | ||
|
||
{{ example }} | ||
|
||
| {{ level }} | ||
|
||
// =============================================================== | ||
|
14 changes: 14 additions & 0 deletions
14
scripts/generators/templates/field_details/table_header.j2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
[[ecs-{{ name }}]] | ||
=== {{ title }} Fields | ||
|
||
{{ description|replace("\n", "\n\n") }} | ||
|
||
==== {{ title }} Field Details | ||
|
||
[options="header"] | ||
|===== | ||
| Field | Description | Level | ||
|
||
// =============================================================== | ||
|