diff --git a/.metadock/content_schematics/example_project.yml b/.metadock/content_schematics/example_project.yml index fa166fa..ccffa7c 100644 --- a/.metadock/content_schematics/example_project.yml +++ b/.metadock/content_schematics/example_project.yml @@ -90,19 +90,19 @@ example_project: import: jira/projects.yml key: IGDP - # "flow" syntax for importing a sub-key, "David_Sillman" inside "eng_identity" - code_owners: - - { import: jira/identities.yml, key: eng_identity.David_Sillman } - - # "flow" syntax for importing a sub-key using a merge key ("<<"), - <<: { import: team_contexts/data.yml, key: resources.alerting_channels } - - # "block" syntax for importing multiple subkeys from multiple files using a merge key, - <<: - - import: team_contexts/data_contacts.yml - key: contacts.email - - import: team_contexts/data_push_api.yml - key: push_api.contracts + # "flow" syntax for importing a sub-key, "David_Sillman" inside "eng_identity" + code_owners: + - { import: jira/identities.yml, key: eng_identity.David_Sillman } + + # "flow" syntax for importing a sub-key using a merge key ("<<"), + <<: { import: team_contexts/data.yml, key: resources.alerting_channels } + + # "block" syntax for importing multiple subkeys from multiple files using a merge key, + <<: + - import: team_contexts/data_contacts.yml + key: contacts.email + - import: team_contexts/data_push_api.yml + key: push_api.contracts import_key_examples_2.yml: | content_schematics: diff --git a/.metadock/content_schematics/jinja_helpers/html.yml b/.metadock/content_schematics/jinja_helpers/html.yml index b35e2aa..9bb6ecd 100644 --- a/.metadock/content_schematics/jinja_helpers/html.yml +++ b/.metadock/content_schematics/jinja_helpers/html.yml @@ -10,7 +10,7 @@ html: >>> from metadock.env import MetadockEnv >>> env = MetadockEnv().jinja_environment() >>> env.from_string("{{ html.bold('This is bold text.') }}").render() - 'This is bold text.' + '<b>This is bold text.</b>' source_file: metadock/env.py method_name: metadock.env.MetadockHtmlNamespace.bold signature: "(self, content: str) -> str" @@ -26,7 +26,7 @@ html: >>> from metadock.env import MetadockEnv >>> env = MetadockEnv().jinja_environment() >>> env.from_string("{{ html.code('This is code text.') }}").render() - 'This is code text.' + '<code>This is code text.</code>' source_file: metadock/env.py method_name: metadock.env.MetadockHtmlNamespace.code signature: "(self, content: str) -> str" @@ -43,7 +43,7 @@ html: >>> from metadock.env import MetadockEnv >>> env = MetadockEnv().jinja_environment() >>> env.from_string("{{ html.details('This is details text.') }}").render() - '
\nThis is details text.\n
' + '<details>\nThis is details text.\n</details>' source_file: metadock/env.py method_name: metadock.env.MetadockHtmlNamespace.details signature: "(self, *contents: str) -> str" @@ -59,7 +59,7 @@ html: >>> from metadock.env import MetadockEnv >>> env = MetadockEnv().jinja_environment() >>> env.from_string("{{ html.italic('This is italic text.') }}").render() - 'This is italic text.' + '<i>This is italic text.</i>' source_file: metadock/env.py method_name: metadock.env.MetadockHtmlNamespace.italic signature: "(self, content: str) -> str" @@ -76,7 +76,7 @@ html: >>> from metadock.env import MetadockEnv >>> env = MetadockEnv().jinja_environment() >>> env.from_string("{{ html.pre('This is code text.', indent = 4) }}").render() - '
    This is code text.
' + '<pre> This is code text.</pre>' source_file: metadock/env.py method_name: metadock.env.MetadockHtmlNamespace.pre signature: "(self, content: str, indent: int = 0) -> str" @@ -92,7 +92,7 @@ html: >>> from metadock.env import MetadockEnv >>> env = MetadockEnv().jinja_environment() >>> env.from_string("{{ html.summary('This is summary text.') }}").render() - '\nThis is summary text.\n' + '<summary>\nThis is summary text.\n</summary>' source_file: metadock/env.py method_name: metadock.env.MetadockHtmlNamespace.summary signature: "(self, content: str) -> str" @@ -108,7 +108,7 @@ html: >>> from metadock.env import MetadockEnv >>> env = MetadockEnv().jinja_environment() >>> env.from_string("{{ html.underline('This is underlined text.') }}").render() - 'This is underlined text.' + '<u>This is underlined text.</u>' source_file: metadock/env.py method_name: metadock.env.MetadockHtmlNamespace.underline signature: "(self, content: str) -> str" @@ -124,8 +124,8 @@ html: example: | >>> from metadock.env import MetadockEnv >>> env = MetadockEnv().jinja_environment() - >>> env.from_string("{{ '

This is a paragraph.

' | html.escape }}").render() - '<p>This is a paragraph.</p>' + >>> env.from_string("{{ '<p>This is a paragraph.</p>' | html.escape }}").render() + '\<p\>This is a paragraph.\</p\>' source_file: metadock/env.py method_name: metadock.env.MetadockHtmlNamespace.escape_filter signature: "(self, content: str) -> str" @@ -141,7 +141,7 @@ html: >>> from metadock.env import MetadockEnv >>> env = MetadockEnv().jinja_environment() >>> env.from_string("{{ 'This is a multi-line string.\nThis is the second line.\nAnd the third.' | html.inline }}").render() - 'This is a multi-line string.
This is the second line.
And the third.' + 'This is a multi-line string.<br>This is the second line.<br>And the third.' source_file: metadock/env.py method_name: metadock.env.MetadockHtmlNamespace.inline_filter signature: "(self, content: str) -> str" diff --git a/.metadock/content_schematics/jinja_helpers/md.yml b/.metadock/content_schematics/jinja_helpers/md.yml index 7d07e6f..fd6226c 100644 --- a/.metadock/content_schematics/jinja_helpers/md.yml +++ b/.metadock/content_schematics/jinja_helpers/md.yml @@ -2,20 +2,6 @@ md: docstring: | Jinja Namespace for Markdown-related functions and filters. - **Macros**: - - blockquote - code - codeblock - list - tablehead - tablerow - - **Filters**: - - convert - list - macros: blockquote: docstring: | diff --git a/.metadock/generated_documents/README.html b/.metadock/generated_documents/README.html index 3fb7f75..c69ef1e 100644 --- a/.metadock/generated_documents/README.html +++ b/.metadock/generated_documents/README.html @@ -267,19 +267,19 @@

Code splitting with YAML imports

import: jira/projects.yml key: IGDP - # "flow" syntax for importing a sub-key, "David_Sillman" inside "eng_identity" - code_owners: - - { import: jira/identities.yml, key: eng_identity.David_Sillman } + # "flow" syntax for importing a sub-key, "David_Sillman" inside "eng_identity" + code_owners: + - { import: jira/identities.yml, key: eng_identity.David_Sillman } - # "flow" syntax for importing a sub-key using a merge key ("<<"), - <<: { import: team_contexts/data.yml, key: resources.alerting_channels } + # "flow" syntax for importing a sub-key using a merge key ("<<"), + <<: { import: team_contexts/data.yml, key: resources.alerting_channels } - # "block" syntax for importing multiple subkeys from multiple files using a merge key, - <<: - - import: team_contexts/data_contacts.yml - key: contacts.email - - import: team_contexts/data_push_api.yml - key: push_api.contracts + # "block" syntax for importing multiple subkeys from multiple files using a merge key, + <<: + - import: team_contexts/data_contacts.yml + key: contacts.email + - import: team_contexts/data_push_api.yml + key: push_api.contracts

Note that all paths for the import field are relative to the content_schematics folder for the project. If you'd like to import the entire content of a file as context, you may omit the key field, e.g.:

@@ -307,6 +307,7 @@

Jinja Templating Helpers

3 namespaces, documented below:

Global namespace

Jinja namespace for the global Metadock environment, including all global macros, filters, and namespaces.

+



Jinja macros

The following macros are available in the global namespace: