Assembled documentation
Assembled documentation is the product of building many documentation sets and weaving them into a global navigation to produce the fully assembled documentation site.
The assembler:
- Clones multiple documentation repositories.
- Reads the configuration files and builds a global navigation.
- Builds each documentation set independently using the global configuration and navigation to inform path prefixes.
- Produces a unified documentation website.
Assembled documentation is configured through the site configuration, which defines:
- assembler.yml: Which repositories to include and their branching strategy.
- navigation.yml: Navigation and url prefixes for TOC's.
- versions.yml: Defines the various versioning schemes of products/solutions being documented.
- products.yml: Defines the product catalog (id, name) and ties it to a specific versioning scheme.
Refer to Site Configuration for details on configuring assembled documentation.
Important
The docs-builder
command makes no assumptions about how repositories, products, solutions and versions tie into each other.
The typical build process for assembled documentation consists of three steps:
- Clone all configured repositories using
docs-builder assembler clone
. - Build all documentation sets using
docs-builder assembler build
. - Serve the documentation on http://localhost:4000 using
docs-builder assembler serve
.
This uses the embedded configuration files inside the docs-builder
binary. To build a specific configuration:
- Fetch the latest config to
$(pwd)/config
docs-builder assembler config init --local
. - Clone all configured repositories using
docs-builder assembler clone --local
. - Build all documentation sets using
docs-builder assembler build --local
. - Serve the documentation on http://localhost:4000 using
docs-builder assembler serve
.
- Documentation Set: The individual units being assembled.
- Distributed Documentation: How documentation sets work independently.
- Link Catalog: How the assembler knows what to include.