cheatsheets MkDocs Commands Command Description mkdocs new [dir-name] Create a new MkDocs project in the specified directory mkdocs serve Start the built-in development server to preview the site locally mkdocs build Build the static HTML files for the site mkdocs gh-deploy Deploy the built site to GitHub Pages mkdocs serve --dev-addr [address:port] Specify a custom development server address and port mkdocs build --clean Clean the build directory before building the site mkdocs build --strict Enable strict mode, which treats all warnings as errors mkdocs build --site-dir [dir-name] Specify a custom output directory for the built site mkdocs build --theme [theme-name] Use a specific theme for the site mkdocs --help Show the list of available commands and options