jimporter / mike

Manage multiple versions of your MkDocs-powered documentation via Git
BSD 3-Clause "New" or "Revised" License
528 stars 47 forks source link

Using mkdocs `-s` option to build docs in strict mode #117

Closed moritzmeister closed 1 year ago

moritzmeister commented 1 year ago

Hi! Thanks for this great extension to mkdocs.

I would like to use the "strict" mode of mkdocs when building, so that the build fails if there are any warnings. Is there a way to pass this option down to mkdocs when using mike deploy?

  -s, --strict                    Enable strict mode. This will cause MkDocs
                                  to abort the build on any warnings.
jimporter commented 1 year ago

Yes, you can specify that in your mkdocs.yml: https://www.mkdocs.org/user-guide/configuration/#strict

moritzmeister commented 1 year ago

Ah thanks, I missed that!