Skip to content

Only include a specific folder

mkdocs.yml

# This example shows how to only include from a specific folder
site_name: ok-mkdocs-docs-include
plugins:
  - simple:
      folders: ["subfolder/**"]

Input

ok-mkdocs-docs-include/
├── mkdocs.yml
├── README.md
├── subfolder/
│   ├── draft.md
│   └── index.md
└── test.md

Output

site/
└── subfolder/
    ├── draft/
    │   └── index.html
    └── index.html

Last update: August 25, 2023