Software:MkDocs

From HandWiki
Short description: Documentation generator
MkDocs
MkDocs Logo
Developer(s)Tom Christie, Dougal Matthews, Waylan Limberg, Oleh Prypin, Ultrabug
Initial releaseJanuary 24, 2014 (2014-01-24)
Stable release
1.5.3[1] / September 18, 2023; 4 months ago (2023-09-18)
Written inPython
Operating systemCross-platform
TypeDocumentation generator
LicenseBSD
Websitewww.mkdocs.org

MkDocs is static site generator designed for building project documentation. It is written in Python, and also used in other environments.

Mode of operation

MkDocs converts Markdown files into HTML pages, effectively creating a static website containing documentation.

Markdown is extensible, and the MkDocs ecosystem exploits its extensible nature through a number of extensions[2][3] that help with for autogenerating documentation from source code, adding admonitions, writing mathematical notation, inserting footnotes, highlighting source code etc.

Themes

MkDodcs provides two built-in themes, default theme (based on Bootstrap) and Read the Docs theme. Many of the available third-party themes are listed in the official catalog,[4] including the popular Material for MkDocs theme.[5]

History

The first tagged version of MkDocs, version 0.2, came out on January 21, 2014.[6]

By early 2015, Read the Docs supported building documentation with MkDocs, in addition to Sphinx. In preparation for the 0.12 release,[7] MkDocs started using Read the Docs for hosting.[8]

In January 2016, MkDocs added support for installable themes.[9] Next month, Martin Donath started developing Material for MkDocs theme. In the following years, the theme became very popular and in July 2020 the development model was changed to sponsorware, where the new features get released to the Insiders version first and become publicly available after funding goals are hit.[10]

Usage

MkDocs offers built-in support for deployment to GitHub Pages. Alternatives, such as GitLab and Cloudflare Pages, offer first-party support for deploying MkDocs sites.[11][12]

Many companies use MkDocs with the Material theme to deploy their documentation, including Atlassian,[13] Google,[14] Microsoft,[15] and Red Hat.[16] It is also a popular choice among open source projects, such as Electron,[17] Kubernetes,[18] and WebKit.[19]

See also

References

  1. "Release Notes". https://www.mkdocs.org/about/release-notes/#version-153-2023-09-18. 
  2. "Extensions — Python-Markdown 3.4.4 documentation". https://python-markdown.github.io/extensions/. 
  3. "Pymdown Extensions - PyMdown Extensions Documentation". https://facelessuser.github.io/pymdown-extensions/. 
  4. Theming catalog, MkDocs, 2023-09-23, https://github.com/mkdocs/catalog, retrieved 2023-09-23 
  5. Donath, Martin. "Material for MkDocs" (in en). https://squidfunk.github.io/mkdocs-material/. 
  6. "Release 0.2 · mkdocs/mkdocs" (in en). https://github.com/mkdocs/mkdocs/releases/tag/0.2. 
  7. "MkDocs 0.12 is in the wild. Lots of bug fixes and a few new features." (in en). 2015-04-14. https://twitter.com/MkDocsProject/status/588049882214232065. 
  8. "mkdocs | Read the Docs". 2015-02-12. https://readthedocs.org/projects/mkdocs/builds/2315117/. 
  9. "The new MkDocs release supports installable themes. Nice addition to the project that will let you install via pip" (in en). 2016-01-21. https://twitter.com/csimpkins/status/690170253586866179. 
  10. Donath, Martin (2021-12-27). "The past, present and future - Material for MkDocs" (in en). https://squidfunk.github.io/mkdocs-material/blog/2021/12/27/the-past-present-and-future/. 
  11. "GitLab Pages examples / mkdocs · GitLab" (in en). https://gitlab.com/pages/mkdocs. 
  12. "Deploy an MkDocs site · Cloudflare Pages docs" (in en). 2023-08-07. https://developers.cloudflare.com/pages/framework-guides/deploy-an-mkdocs-site/. 
  13. "Atlassian DC Helm Charts". https://atlassian.github.io/data-center-helm-charts/. 
  14. "Accompanist". https://google.github.io/accompanist/. 
  15. "Code With Engineering Playbook". https://microsoft.github.io/code-with-engineering-playbook/. 
  16. "home - Ansible Lint Documentation" (in en). https://ansible-lint.readthedocs.io/. 
  17. "electron-builder". https://www.electron.build/. 
  18. "Welcome - kOps - Kubernetes Operations". https://kops.sigs.k8s.io/. 
  19. "WebKit Documentation". https://docs.webkit.org/. 

External links

  • Read the Docs large-scale, collaborative documentation host powered by Sphinx, MkDocs, and Jupyter Book