Metadata-Version: 2.4
Name: mkdocs-exclude-unused
Version: 1.0.5
Summary: Simple plugin to exclude notused .md files from docs folder
Home-page: https://github.com/michal2612/mkdocs-exclude-unused
Author: Michal Domanski
License: MIT
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: mkdocs
Dynamic: author
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

 [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) ![Build & Test](https://github.com/michal2612/mkdocs-exclude-unused/actions/workflows/build.yml/badge.svg)
 ![PyPI - Version](https://img.shields.io/pypi/v/mkdocs-exclude-unused)


# mkdocs-exclude-unused

A simple MkDocs plugin that automatically removes all .md files not included in the nav section of your mkdocs.yaml file.

## How to use

Simply add plugin to your mkdocs .yml file

```
plugins:
  - mkdocs-exclude-unused
```
## Example
In your mkdocs.yaml your nav section looks like this:

    nav:
      - Main: index.md
      - Page1: Page1.md

But in your docs folder you have:

    docs/
	    index.md
	    Page1.md
	    Page2.md

**Mkdocs will create .html file for each of .md file even if it's not mentioned in 'nav' section!**

Page2.md can be used in other mkdocs.yml files, or it may be required in the docs folder for other reasons.
After running `mkdocs build` or `mkdocs serve`, warnings will be generated if Page2.md is missing from the navigation, preventing you from building in `--strict` mode. This plugin solves the problem by removing unused pages.

