Skip to main content

Manage sphinx documentations with mkdocs

Project description

PyPI version

About

mkinx allows you to integrate several sphinx documentation projects into one Home Documentation listing them and allowing you to have cross projects documentation with mkdocs.

Any sphinx module can be used as long as make html works and the built code is in your_project/build.

mkinx comes with an example project and a standalone documention so you can already get started!

Install

pip install mkinx

Getting Started

Start you Home Documentation with

mkinx init your_project

Start the server with

mkinx serve

Optionnaly you can specify a port with mkinx serve -s your_port

Build the documentation with

mkinx build [FLAGS]

Flags being:

-v, --verbose                             verbose flag (Sphinx will stay verbose)
-A, --all                                 Build doc for all projects
-F, --force                               force the build, no verification asked
-o, --only_index                          only build projects listed in the Documentation's Home
-p, --projects [PROJECTS [PROJECTS ...]]  list of projects to build

Usage

The package comes with a thorough documentation by default, which you’ll see by running mkinx serve after a proper init. A Read The Docs-hosted version may arrive at some point.

The built in documentation is there to help you but is in no way necessary, you can overwrite or delete everything. There are however 2 mandatory things:

1-> You have to keep this structure:

your_home_documentation/
    mkdocs.yml
    docs/
        index.md # mandatory file -> mkdocs's index
    site/
    your_project_1/
        build/ # sphinx's build directory
        source/ # sphinx's documentation source directory
        your_package_1_1/
        your_package_1_2/
        ...
    your_project_2/
        build/
        source/
        your_package_2_1/
        your_package_2_2/
        ...
    ...

2 -> mkdocs’s index.md file must have a # Projects section listing them as in the example

Also, remember to run commands from your Home Documenation’s root folder (in your_home_documentation/ in the example above) otherwise you may get errors saying mkinx can’t find a file.

Customization

You may use any other theme for instance. To use mkdocs-material just:

pip install mkdocs-material

Then change this in mkdocs.yaml : theme: material and finally:

mkdocs build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

mkinx-0.1.5.0-py3-none-any.whl (41.8 kB view details)

Uploaded Python 3

mkinx-0.1.5-py3-none-any.whl (34.4 kB view details)

Uploaded Python 3

File details

Details for the file mkinx-0.1.5.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mkinx-0.1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0fd15ece0c8b7711bd74639e3186cf36121392f7ccaee9a0ed3dea17ee3f506
MD5 801fba437d432e9ec116b3d853e09fcc
BLAKE2b-256 b5e8c47d7141706a3de6214501f8c51d1e96a956ac8c7bfbc375f1fe021515ff

See more details on using hashes here.

File details

Details for the file mkinx-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for mkinx-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 dad31ec0192b38430b864208ed40cf924dac2d4854cab066fbdc8f9a5a73c629
MD5 db17618a8154251836554aabd3ae8ef8
BLAKE2b-256 4e878018d699d323e05f88476c2a7b32c5eb5fad4c2cffc70507bf775322c8f6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page