This guide provides comprehensive information for authors contributing content to the CircleCI docs site.
- Content Organization
- AsciiDoc Essentials
- Document Structure
- Advanced Formatting
- Navigation and Cross-References
- Working with Media
- Semantic Guidelines
- Review Process
The CircleCI documentation is organized into logical components, each focusing on a specific area:
| Component | Description | Path |
|---|---|---|
root |
Home and landing pages | docs/root/ |
guides |
Feature and usage docs, how-to guides and tutorials | docs/guides/ |
reference |
API and configuration references | docs/reference/ |
orbs |
CircleCI orbs documentation | docs/orbs/ |
server-admin |
Server administration guides | docs/server-admin-4.*/ |
services |
Field engineering service information | docs/services |
contributors |
Contributor guidelines | docs/contributors/ |
Within each component, content follows this structure:
component/
├── antora.yml # Component metadata and configuration
└── modules/
├── ROOT/ # Default module
│ ├── nav.adoc # Navigation file for the module
│ ├── pages/ # Content pages as AsciiDoc files
│ │ └── index.adoc # Landing page for this module
│ ├── partials/ # Reusable content fragments
│ ├── examples/ # Code examples
│ └── assets/ # Images and other assets
│ └── images/ # Image files
└── [module-name]/ # Additional modules if needed
└── ...
The CircleCI docs site uses AsciiDoc for content authoring. For a guide to using AsciiDoc and writing to follow the CircleCI docs style, see the following pages:
The nav.adoc file defines the sidebar navigation structure:
* xref:index.adoc[Getting Started]
** xref:installation.adoc[Installation]
*** xref:requirements.adoc[System Requirements]
** xref:configuration.adoc[Configuration]
* xref:advanced.adoc[Advanced Topics]Structure your content based on its purpose:
- Tutorials: Learning-oriented, helping new users get started
- How-to Guides: Task-oriented, solving specific problems
- Technical Reference: Information-oriented, providing detailed specifications
- Explanations: Understanding-oriented, explaining concepts
For version-specific content, use negative conditional statements (ifndef directive) :
ifndef::aws
This content is only visible for non-AWS pages and sections
endif::[]Before submitting content for review, check that:
- The document follows the structure guidelines
- All cross-references work correctly
- Code examples are correct and tested
- Images are optimized and have alt text
- No spelling or grammatical errors
- Content is technically accurate
- Navigation entries are correctly formatted
All content should go through peer review:
- Create a pull request with your changes. Code ownders will be pinged for review automatically (docs team and PM team).
- Request review from subject matter experts, for most changes we will want a review from an engineer in the relevant team or the PM for the feature. The docs team can manage this process for you.
- Address any feedback or suggestions.
- Update based on technical accuracy review.
- Final editorial review for consistency and style.