Skip to main content

Snippets

The Snippet component enables you to reuse content across your documentation. A snippet is a chunk of content that can be inserted inside one or more topics. When you make changes to the snippet, they are made wherever the snippet is used. This can be particularly useful for boilerplate text. Snippets have their own collection in the CMS and are contained in their own separate part of the repository.

  1. Select the Snippet component from the Embed list.
  2. Edit the component.
  3. Choose a file from the list. The list is populated with all the files in the /reuse/snippets/ folder) every time you run the dev server or do a build.

Example

Loading snippet...