Skip to content

ppo/docsmk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DocsMk

Template and CLI tool to manage a standalone MkDocs documentation.

Including by default:

Usage

Usage: docsmk [COMMAND=serve]

  serve      Run the local server to preview the documentation.
  build      Build the documentation.
  clean      Remove the build directory.
  install    Create a virtualenv and install pip packages.
  upgrade    Upgrade the pip packages.
  uninstall  Remove the virtualenv.
  help       Show this usage.

Installation

Requirements: Python 3, Git, Bash.

In your project folder, execute the following to:

  • Copy the DocsMk template (cloning this repository).
git clone [email protected]:ppo/docsmk.git

Then update mkdocs.yml according to your project, and execute the following to:

  • Remove the ./docsmk/.git folder.
  • Create a Python3 virtualenv (python3 -m venv ./docsmk/.venv).
  • Install the required pip packages (see requirements.txt).
  • Create the documentation directory (./docs); unless it already exists.
./docsmk/docsmk install

Deployment

Read the Docs

  1. Move the .readthedocs.yml file to the root of your repository. No modifications required.
  2. Import your project via your dashboard on RTD.
  3. That’s it! The building process starts automatically.
    Click on “your documentation is building” to follow its progress.
  4. RTD will automatically rebuild the documentation when changes are committed to the repository.

Known Problems

Documentation

License

This project is licensed under the MIT License. See the LICENSE file for details.