docs-v2/content/shared
Jason Stirnaman b689ccb231
Merge branch 'master' into docs/5823-write-lp-guide
2025-02-14 15:37:14 -06:00
..
influxdb3-admin
influxdb3-cli
influxdb3-query-guides
influxdb3-sample-data Initial changes to add write_lp endpoint to Core and Enterprise data sample guides 2025-02-14 13:24:14 -08:00
influxdb3-visualize
influxdb3-write-guides
influxql-v3-reference
sql-reference
v3-core-get-started
v3-core-plugins
v3-distributed-admin-custom-partitions
v3-enterprise-get-started
README.md
_index.md
v3-line-protocol.md

README.md

Shared content

This section is for content shared across multiple products and versions. The /shared/_index.md frontmatter, marks the /shared directory and its children as draft so they don't get rendered when the site is built, but the contents of each shared documented is included in pages that use the file as a source in their frontmatter.

Use shared content

  1. Create a new folder for the content in the content/shared/ directory.

  2. Copy the markdown files into the new folder.

  3. Remove the frontmatter from the markdown files in the shared directory. If the first line starts with a shortcode, add an HTML comment before the first line, otherwise hugo will err.

  4. In each of the files that use the shared content, add a source to the frontmatter that points to the shared markdown file—for example:

    source: /shared/influxql-v3-reference/regular-expressions.md
    
  5. In the doc body, remove the shared Markdown text and add a comment that points to the shared file, in case someone happens upon the page in the repo--for example, in /content/3/core/reference/influxql/regular-expressions.md, add the following: