MkDocs Python documentation generator using Markdown source and YAML configuration.
Overview MkDocs is an open-source static site generator focused on project documentation. It uses Markdown source and a YAML configuration file to build a documentation website, with themes controlling presentation. The resulting HTML can be hosted independently of the Python build environment, supporting a documentation-as-source workflow rather than requiring a permanently running editorial application.[2]
Contents Source, navigation and themes Documentation files live in the project's source directory, with navigation either inferred or explicitly arranged in configuration. Links and images should follow the documented source conventions so they resolve in the generated site. Themes and Markdown extensions affect rendering, which means sharing the Markdown format alone does not guarantee identical output in another generator.[3] [4]
MkDocs includes a search plugin using Lunr. Defining a custom plugins list replaces the default list, so search must be explicitly retained if it is still wanted. Search-language configuration also affects browser bandwidth and resource use; enabling several languages is a deployment choice rather than a cost-free way to improve every query.[4]
Deployment and source preservation The documented GitHub Pages deployment command builds and pushes generated files. The guide warns that manual edits to those generated files will be overwritten by later deployments. It also warns that uncommitted or untracked local material can be included in the deployed pages, making review of the actual build content important before publication.[5]
MkDocs uses the BSD two-clause license. Its permission to use and modify the generator does not determine the licenses of a selected theme, plugin or documentation content. Keeping the Markdown, configuration and build dependencies allows continued authoring; retaining only the static website preserves the delivered result rather than the complete project.[1] [2] [5]
Substitution scope MkDocs can substitute for Docusaurus for a documentation site when Markdown, themes and plugins meet the requirements without React-specific components. This is an assessment of the publishing workflow, not MDX compatibility. Docusaurus version snapshots, interactive components and navigation need separate treatment during migration, and a chosen MkDocs extension must be evaluated on its own capabilities.[2] [3] [6] [7]
Also included: 2 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.