Documentation generation system for Terraform/OpenTofu providers
Plating is a powerful documentation system that brings culinary elegance to technical documentation. Just as a chef carefully plates a dish, Plating helps you present your Terraform provider documentation beautifully.
- π― Automatic Documentation Generation - Generate comprehensive docs from your provider code
- β¨ Smart Component Adorning - Automatically create documentation templates for undocumented components
- π½οΈ Beautiful Plating - Render documentation with examples, schemas, and rich formatting
- π Component Discovery - Automatically find and document resources, data sources, and functions
- π Jinja2 Templates - Flexible templating with custom functions and filters
- π Schema Integration - Extract and format provider schemas automatically
- π― Capability-First Organization - Group documentation by feature (Math, Utilities, Lens) instead of just type
- π Smart Navigation - Auto-generated mkdocs.yml with capability-first structure
- π Guide Support - Built-in support for provider guides and tutorials
- Install:
uv tool install plating - Read the Documentation
- Try
plating adornto create documentation templates
Note: Plating is in pre-release. Some APIs may change during the pre-release series.
Version Info: The version
0.3.0is a pre-release identifier indicating active development. Expect the API and features to evolve. Some APIs may change during the pre-release series.
# Install from PyPI
uv tool install plating# Install directly from GitHub
uv tool install git+https://github.com/provide-io/plating.git# Set up environment
uv sync
# Run common tasks
we run test # Run tests
we run lint # Check code
we run format # Format code
we tasks # See all available commandsSee CLAUDE.md for detailed development instructions and architecture information.
Contributions are welcome! Please feel free to submit a Pull Request.
Apache 2.0
Important: This project uses
uvfor Python environment and package management.
Visit UV Documentation for more information.
# On macOS and Linux.
curl -LsSf https://astral.sh/uv/install.sh | sh
# On Windows.
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
# Update UV to latest version
uv self updateFirst, create .plating bundles for your undocumented components:
# Adorn all missing components
plating adorn
# Adorn only resources
plating adorn --component-type resourceEdit the generated templates in .plating/docs/:
---
page_title: "Resource: my_resource"
---
# my_resource
{{ "{{ example('basic') }}" }}
## Schema
{{ "{{ schema() }}" }}Render your documentation:
# Generate docs in ./docs directory
plating plate
# Custom output directory
plating plate --output-dir ./documentationEach component has a .plating bundle containing documentation templates, examples, and optional test fixtures. See Authoring Bundles Guide for complete bundle structure and template function reference.
Organize documentation by capability (subcategory) instead of just by component type. Add a subcategory field to your template frontmatter, and Plating automatically groups components by capability in the navigation.
See Capabilities Guide for standard subcategories, custom categories, and guide support.
Validate your generated documentation:
# Validate all documentation
plating validate
# Validate in custom directory
plating validate --output-dir ./documentationPlating is built on provide.foundation patterns for enterprise-grade reliability:
- π Automatic Retries: Built-in retry policies with exponential backoff for I/O operations
- π Metrics & Observability: Integrated performance tracking and operation metrics
- β‘ Circuit Breakers: Prevents cascading failures in distributed systems
- π Structured Logging: Foundation logger integration with contextual information
- π Async-First Design: High-performance async operations throughout
By default, Plating searches all installed packages for components. You can filter to a specific package:
plating adorn --package-name pyvider.components
plating plate --package-name pyvider.componentsGenerate standalone executable Terraform examples alongside documentation:
plating plate --generate-examplesCustomize example output directories:
plating plate --generate-examples \
--examples-dir examples/ \
--grouped-examples-dir examples/integration/Configure Plating in your pyproject.toml:
[tool.plating]
# Provider name (auto-detected if not specified)
provider_name = "my_provider"Note: Currently only provider_name can be configured in pyproject.toml. Other options like output_dir and component_types must be passed as CLI flags:
plating plate --output-dir docs --component-type resourcePlating follows a modular architecture:
- PlatingBundle - Represents documentation bundles
- PlatingPlater - Renders documentation
- PlatingAdorner - Creates documentation templates
- PlatingDiscovery - Finds components and bundles
- SchemaProcessor - Extracts provider schemas
Built with β€οΈ using:
- attrs - Python classes without boilerplate
- Jinja2 - Powerful templating
- pyvider - Terraform provider framework
- click - Command line interface
- rich - Beautiful terminal output
Plating - Making documentation as delightful as a well-plated dish π½οΈ
Copyright (c) provide.io LLC.