Technology Documentation Guide
This guide provides instructions for maintaining consistency in the Control Plane's technology documentation.
Documentation Template
All technology documentation should follow the standardized structure defined in _template.mdx
. This ensures a consistent user experience across all documentation pages.
Required Sections
Every technology documentation file must include these sections in the following order:
-
Front Matter
sidebar_position
: Determines ordering in the sidebartitle
: The document title
-
Component Imports
import PageHeader from '@site/src/components/PageHeader';
import FeatureCard from '@site/src/components/FeatureCard';
import CardGrid from '@site/src/components/CardGrid';
import InfoSection from '@site/src/components/InfoSection';
import FeatureGrid from '@site/src/components/FeatureGrid';
import NoAutoTitle from '@site/src/components/NoAutoTitle'; -
Page Header
<NoAutoTitle />
<PageHeader
title="Technology Name"
description="Concise one-line description of the technology"
/> -
Introduction
- One paragraph explaining the technology and its role in the Control Plane
- Followed by an
<InfoSection type="info">
providing context
-
Overview
- Comprehensive explanation of the technology's core concepts
-
Why [Technology]?
- Benefits and reasons for using this technology
- Implemented using
<FeatureGrid>
component
-
Integration in the Control Plane
- Specific implementation details in the Control Plane
- Include use cases with
<CardGrid>
and<FeatureCard>
components - Use an
<InfoSection type="tip">
for integration insights
-
Best Practices
- Implementation recommendations
- Use
<FeatureGrid>
to list practices
-
Related Resources
- Links to related technologies using
<CardGrid>
with<FeatureCard>
components
- Links to related technologies using
Optional Sections
Depending on the technology, include these sections as appropriate:
-
Configuration
- For technologies requiring configuration
- Include code examples in appropriate language syntax
-
Advanced Features
- For complex technologies with advanced capabilities
- Use
<FeatureGrid>
or<CardGrid>
components
-
Security Considerations
- For security-related technologies
- May include an
<InfoSection type="warning">
Component Usage Guidelines
InfoSection Types
- info (blue): For general information and explanations
- tip (green): For best practices and helpful advice
- note (purple): For important supplementary information
- warning (orange): For critical security/data integrity concerns
FeatureGrid
- Use for concise lists of features, benefits, or practices
- Include emojis in titles for visual appeal
- Keep descriptions concise (1-2 sentences)
CardGrid and FeatureCard
- Use for more detailed content blocks
- Good for explaining use cases, configurations, or detailed features
- Can include lists, code snippets, and formatted content
Formatting Guidelines
-
Headings
- Use
##
for main sections (h2) - Use
###
for subsections (h3) - Use sentence case for all headings
- Use
-
Code Blocks
- Always specify the language for syntax highlighting
- Example:
go,
yaml, ```bash
-
Links
- Use relative links for internal documentation
- Use full URLs for external resources
-
Images
- Center images using
<div align="center">
- Include alt text for accessibility
- Set appropriate width (usually 300-500px)
- Center images using
Example
For a reference implementation, see any of these well-structured documents:
/docs/pages/docs/1-Technology/1-Core-Technologies/golang.mdx
/docs/pages/docs/1-Technology/4-Testing/ginkgo.mdx
/docs/pages/docs/1-Technology/3-Storage/minio.mdx