Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Building Python Project Documentation With MkDocs (Summary)

In this course, you learned how to quickly build documentation for a Python package based on Markdown files and docstrings using MkDocs and mkdocstrings.

You created a partly auto-generated documentation for your Python project by linking information in your docstrings to the documentation pages. Not content to rest at this, you added additional documentation pages that made your project more appealing to users by guiding them through examples and use cases.

You styled your documentation with the Material for MkDocs theme and deployed it to the Internet through GitHub Pages.

In this course, you learned how to:

  • Write docstrings for your code objects
  • Work with MkDocs to produce static pages from Markdown
  • Pull in code documentation from docstrings using mkdocstrings
  • Follow best practices for project documentation
  • Customize your documentation using the Material for MkDocs theme
  • Deploy your documentation on GitHub Pages

Building your project documentation using MkDocs and mkdocstrings allows you to write Markdown and auto-generate parts of the documentation directly from your docstrings. This setup means that you can create excellent documentation with less effort.

If you’re looking for next steps, then consider:

Download

Sample Code (.zip)

481.8 KB
Download

Course Slides (.pdf)

9.5 MB
Avatar image for k-taylor

k-taylor on July 30, 2024

Great course, thanks Darren.

One thing that might be helpful is a list of all the commands (from the installs to the mkdocs gh-deploy) might be a very useful quick ref. when next building a project and wanting to add MKDocs to it.

Become a Member to join the conversation.