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:
      include_folders: ["subfolder/**"]

Input

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

Output

site/
├── assets/
│   ├── images/
│   │   └── favicon.png
│   ├── javascripts/
│   │   ├── lunr/
│   │   │   └── min/
│   │   └── workers/
│   └── stylesheets/
└── subfolder/
    ├── draft/
    │   └── index.html
    └── index.html