πΌ Use CasesΒΆ
Documentation for πΌ Use Cases.
Real-world examples of how to use markdown includes effectively.
1οΈβ£ Including Project READMEΒΆ
π― Use CaseΒΆ
Share your projectβs main README.md in the documentation overview.
π ConfigurationΒΆ
modules:
overview:
title: "π Project Overview"
description: "Project overview from README"
markdown_includes: "../../README.md"
β BenefitsΒΆ
Single source of truth for project information
Automatically stays up-to-date
No need to maintain duplicate content
β
2οΈβ£ User Guide SeriesΒΆ
π― Use CaseΒΆ
Create comprehensive user documentation from multiple markdown files.
π ConfigurationΒΆ
modules:
user_guide:
title: "π User Guide"
description: "Complete user documentation"
markdown_includes:
- "markdown/getting_started.md"
- "markdown/advanced_usage.md"
- "markdown/troubleshooting.md"
β BenefitsΒΆ
Organized, modular documentation
Easy to maintain individual sections
Clear separation of topics
β
3οΈβ£ API Documentation EnhancementΒΆ
π― Use CaseΒΆ
Enhance auto-generated API docs with detailed examples from markdown.
π ConfigurationΒΆ
modules:
api:
title: "π§ API Reference"
module: "myproject.api"
description: "Complete API documentation"
# Autodoc generates API reference
# Markdown adds detailed examples
markdown_includes: "markdown/api_examples.md"
β BenefitsΒΆ
Combine automated and manual documentation
Add context and examples to API reference
Keep examples separate and maintainable
β
4οΈβ£ Contributing GuidelinesΒΆ
π― Use CaseΒΆ
Include your CONTRIBUTING.md in the developer documentation.
π ConfigurationΒΆ
modules:
contributing:
title: "π€ Contributing"
description: "How to contribute to this project"
markdown_includes: "../../CONTRIBUTING.md"
β BenefitsΒΆ
Single CONTRIBUTING.md for both GitHub/GitLab/Bitbucket and docs
Always in sync
Developers see it in documentation too
β
5οΈβ£ Multi-language DocumentationΒΆ
π― Use CaseΒΆ
Document both Python and C/C++ components in one project.
π ConfigurationΒΆ
modules:
python_api:
title: "π Python API"
module: "myproject"
markdown_includes: "markdown/python_guide.md"
cpp_api:
title: "β‘ C++ API"
language: cpp
doxygen_files:
- "mylib.h"
- "mylib.cpp"
markdown_includes: "markdown/cpp_guide.md"
β BenefitsΒΆ
Consistent documentation across languages
Additional context for each language
Unified documentation structure
β
6οΈβ£ Tutorial SeriesΒΆ
π― Use CaseΒΆ
Create step-by-step tutorials with markdown files.
π ConfigurationΒΆ
modules:
tutorials:
title: "π Tutorials"
description: "Step-by-step learning path"
tutorial_basics:
parent: "tutorials"
title: "1οΈβ£ Basics"
markdown_includes: "tutorials/01_basics.md"
tutorial_advanced:
parent: "tutorials"
title: "2οΈβ£ Advanced"
markdown_includes: "tutorials/02_advanced.md"
β BenefitsΒΆ
Numbered, sequential tutorials
Each tutorial in its own file
Easy to add new tutorials
β
7οΈβ£ Changelog IntegrationΒΆ
π― Use CaseΒΆ
Include your CHANGELOG.md in the documentation.
π ConfigurationΒΆ
modules:
changelog:
title: "π Changelog"
description: "Version history and changes"
markdown_includes: "../../CHANGELOG.md"
β BenefitsΒΆ
Single changelog file
Visible in documentation
Track changes in version control
β
8οΈβ£ FAQ SectionΒΆ
π― Use CaseΒΆ
Maintain FAQ in markdown, include in documentation.
π ConfigurationΒΆ
modules:
faq:
title: "β FAQ"
description: "Frequently Asked Questions"
markdown_includes: "markdown/faq.md"
β BenefitsΒΆ
Easy to update FAQ
Searchable in documentation
Can be maintained by non-developers
β
π― Choosing the Right ApproachΒΆ
Use Markdown Includes When:ΒΆ
β You already have markdown documentation
β Content needs to be maintained separately
β Multiple people edit the documentation
β Want to reuse content across projects
Use YAML Configuration When:ΒΆ
β Simple, structured information
β Close integration with module definitions
β Automated API documentation
β Consistent formatting across all modules
Best of Both Worlds:ΒΆ
π Use YAML for structure and metadata
π Use markdown includes for detailed content
π Combine both for comprehensive documentation!