backstage / mkdocs-monorepo-plugin

✚ Build multiple documentation folders in a single Mkdocs. Designed for large codebases.
https://backstage.github.io/mkdocs-monorepo-plugin/
Apache License 2.0
313 stars 75 forks source link

Allow no specification for both ´nav´ and ´docs_dir´ #82

Closed dariocurr closed 1 year ago

dariocurr commented 1 year ago

In order to solve #81, I edited the code to support the missing key docs_dir in the included mkdocs.yml file.

More in detail, if neither nav nor docs_dir keys are found on the included mkdocs.yml, docs_dir is set at its default, i.e. docs

There is no need to add another log message in parser.py, since if the folder is not found, mkdocs itself would raise the following error: .../docs isn't an existing directory

dariocurr commented 1 year ago

Thank you for your useful plugin! :nerd_face:

Happy and glad to contribute!