Skip to content

Commit c0bb9ba

Browse files
author
Marek Suchánek
committed
Include the content type in metadata config; #45
1 parent fd98329 commit c0bb9ba

File tree

5 files changed

+10
-0
lines changed

5 files changed

+10
-0
lines changed

templates/assembly.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ ways:
2727
Add the prefix assembly- or assembly_ to the file name.
2828
Add the following attribute before the module ID:
2929
////
30+
{% if metadata -%}
3031
:_mod-docs-content-type: ASSEMBLY
32+
{%- endif %}
3133

3234
{% if simplified -%}
3335
[id="{{module_anchor}}"]

templates/concept.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ ways:
1515
Add the prefix con- or con_ to the file name.
1616
Add the following attribute before the module ID:
1717
////
18+
{% if metadata -%}
1819
:_mod-docs-content-type: CONCEPT
20+
{%- endif %}
1921

2022
////
2123
The ID is an anchor that links to the module. Avoid changing it after the module has been published to ensure existing links are not broken.

templates/procedure.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ ways:
1515
Add the prefix proc- or proc_ to the file name.
1616
Add the following attribute before the module ID:
1717
////
18+
{% if metadata -%}
1819
:_mod-docs-content-type: PROCEDURE
20+
{%- endif %}
1921

2022
{% if simplified -%}
2123
[id="{{module_anchor}}"]

templates/reference.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ ways:
1919
Add the prefix ref- or ref_ to the file name.
2020
Add the following attribute before the module ID:
2121
////
22+
{% if metadata -%}
2223
:_mod-docs-content-type: REFERENCE
24+
{%- endif %}
2325

2426
{% if simplified -%}
2527
[id="{{module_anchor}}"]

templates/snippet.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ Add the prefix snip- or snip_ to the file name.
1414
Add the following attribute before the title:
1515
:_mod-docs-content-type: SNIPPET
1616
////
17+
{% if metadata -%}
1718
:_mod-docs-content-type: SNIPPET
19+
{%- endif %}
1820

1921
.{{module_title}}
2022
////

0 commit comments

Comments
 (0)