Migrate Automated Content to V3
If you have automated documentation in Asciidoc (or any other format) that you need to migrate to Elastic docs V3, this guide walks you through the essentials. Elastic docs V3 (powered by docs-builder
) allows engineering teams to keep code and reference docs closely integrated for easier updates and greater accuracy.
Minimum Viable Setup¶
You can build docs with docs-builder
using just two files:
-
docset.yml
— Configures the docset fordocs-builder
. -
index.md
— A Markdown file that will be converted to HTML.
Once you have these files, follow the Contribute Locally guide to get your docs building.
Syntax¶
Elastic docs V3 fully supports CommonMark Markdown syntax. In addition, we support:
- Custom directives — our main extension point over markdown (learn more here)
- A few GitHub flavored markdown extensions (see the list here)
In most cases, plain Markdown covers basic needs, and directives add extra functionality as needed.
- At a minimum, each page must have an H1 heading:
# I'm a heading
- You can optionally include frontmatter for additional metadata.
For more details on custom directives, see the Syntax Guide.
Your docset.yml
file configures how docs-builder
handles navigation. Below is a minimal example:
project: 'PROJECT_NAME'
toc:
- file: index.md
For more information, see Navigation.
Next steps¶
That’s all you need to get started migrating automated docs to V3. As you add more pages or custom features, refer to the linked resources for details on configuring your docset, refining navigation, and leveraging the full power of V3 directives.