Recent searches

in

_snippets_imports_from_glob

On this page

This key defines globs that filter which files CloudCannon should use for Snippet imports configuration.

Values in this array are relative to the root of your repository (i.e., /, not the value of source⁠) and must end in the file extension .cloudcannon.snippets-imports.yml.

You can use this key anywhere you would use the _snippets_imports key in the configuration cascade.

This key has no default.

Type

Array<_snippets_imports_from_glob[*]>

Items

[*]string#

This key represents an individual glob pattern string in the _snippets_imports_from_glob array.

The value is a string that specifies a file path pattern relative to the root of your repository. The path must end in the file extension .cloudcannon.snippets-imports.yml.

Appears in: _snippets_imports_from_glob.

Show examplesHide examples

In this example, we have several Snippet Configuration Files in the .cloudcannon/snippets/ folder. The value of the _snippets_import_from_glob key tells CloudCannon all files in that folder that match the glob *.cloudcannon.snippets-import.yml.

Copied to clipboard
_snippets_imports_from_glob:
  - /.cloudcannon/snippets/*.cloudcannon.snippets-imports.yml
{
  "_snippets_imports_from_glob": [
    "/.cloudcannon/snippets/*.cloudcannon.snippets-imports.yml"
  ]
}

Examples

In this example, we have several Snippet Configuration Files in the .cloudcannon/snippets/ folder. The value of the _snippets_import_from_glob key tells CloudCannon all files in that folder that match the glob *.cloudcannon.snippets-import.yml.

Copied to clipboard
_snippets_imports_from_glob:
  - /.cloudcannon/snippets/*.cloudcannon.snippets-imports.yml
{
  "_snippets_imports_from_glob": [
    "/.cloudcannon/snippets/*.cloudcannon.snippets-imports.yml"
  ]
}
Copied to clipboard
mdx: true
docusaurus_mdx:
  exclude:
    - docusaurus_mdx_truncate
{
  "mdx": true,
  "docusaurus_mdx": {
    "exclude": [
      "docusaurus_mdx_truncate"
    ]
  }
}
Open in a new tab