Skip to content

Commit

Permalink
Include the content type in metadata config; #45
Browse files Browse the repository at this point in the history
  • Loading branch information
msuchane committed Jun 5, 2024
1 parent fd98329 commit c0bb9ba
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/assembly.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ ways:
Add the prefix assembly- or assembly_ to the file name.
Add the following attribute before the module ID:
////
{% if metadata -%}
:_mod-docs-content-type: ASSEMBLY
{%- endif %}

{% if simplified -%}
[id="{{module_anchor}}"]
Expand Down
2 changes: 2 additions & 0 deletions templates/concept.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ ways:
Add the prefix con- or con_ to the file name.
Add the following attribute before the module ID:
////
{% if metadata -%}
:_mod-docs-content-type: CONCEPT
{%- endif %}

////
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.
Expand Down
2 changes: 2 additions & 0 deletions templates/procedure.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ ways:
Add the prefix proc- or proc_ to the file name.
Add the following attribute before the module ID:
////
{% if metadata -%}
:_mod-docs-content-type: PROCEDURE
{%- endif %}

{% if simplified -%}
[id="{{module_anchor}}"]
Expand Down
2 changes: 2 additions & 0 deletions templates/reference.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ ways:
Add the prefix ref- or ref_ to the file name.
Add the following attribute before the module ID:
////
{% if metadata -%}
:_mod-docs-content-type: REFERENCE
{%- endif %}

{% if simplified -%}
[id="{{module_anchor}}"]
Expand Down
2 changes: 2 additions & 0 deletions templates/snippet.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ Add the prefix snip- or snip_ to the file name.
Add the following attribute before the title:
:_mod-docs-content-type: SNIPPET
////
{% if metadata -%}
:_mod-docs-content-type: SNIPPET
{%- endif %}

.{{module_title}}
////
Expand Down

0 comments on commit c0bb9ba

Please sign in to comment.