Skip to content

Example for containerized MkDocs instance to deliver documentation as a static site

License

Notifications You must be signed in to change notification settings

Antari-yan/MkDocs-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MkDocs Container

This is an example in how to create a documentation website for a project using a containerized MkDocs.
The container contains a couple MkDocs Plugins:

These plugins allow displaying Code via Docstrings and Swagger within the documentation website.
The used example Python Code can be found here
The Swagger example source can be found here.

There are also some examples for options that can be added in the mkdocs.yml file.

Usage

docker run -it --rm -d --name mkdocs -p 8000:8000 -v ${PWD}/project:/project mkdocs

http://localhost:8000/

Troubleshooting

  • MkDocs only recognize 4 Spaces indentation and not 2
  • Braking changes in the Markdown Files may make the Container crash

About

Example for containerized MkDocs instance to deliver documentation as a static site

Topics

Resources

License

Stars

Watchers

Forks

Packages