Skip to main content

MkDoxy → MkDocs + Doxygen. Easy documentation generator with code snippets.

Project description

MkDoxy

MkDoxy → MkDocs + Doxygen. Easy documentation generator with code snippets.

MkDoxy is based on matusnovak/doxybook

This python tool is extension for MkDocs. Extension will take your programme source code and runs Doxygen. Then converts exported XML into markdown and create new folder with full generated documentation. Next usage is by snippets inside documentation markdown.

Online Demo and Demo Source

Basic-implementation

Requirements

Tools

  • python 3.6 or newer → sudo apt install python3
  • Pip → sudo apt install python3-pip
  • Git → sudo apt install git
  • Doxygen → sudo apt install doxygen

Pip

  • Jinja2 → pip install jinja2
  • Mkdocs → pip install mkdocs
  • ruamel.yaml → pip install ruamel.yaml

Optional:

  • mkdocs-material → pip install mkdocs-material

Installation

Install using Python Pip: https://pypi.org/project/mkdoxy/

pip install mkdoxy

Or Install manually:

git clone https://github.com/JakubAndrysek/mkdoxy.git
cd mkdoxy
python setup.py install

Example usage

  1. Generate class with name rb::MotorChangeBuilder
::: doxy.Class
  name: rb::MotorChangeBuilder
  1. Generate method brake (MotorId id, uint16_t brakingPower) from class with name rb::MotorChangeBuilderA
::: doxy.Class.Method
  name: rb::MotorChangeBuilder
  method: brake (MotorId id, uint16_t brakingPower)
  1. Generate function with name readUltra (bool async)
::: doxy.Function
  name: readUltra (bool async)
  1. Generate code snippet from file RBCXLeds.cpp
::: doxy.Code
  file: RBCXLeds.cpp
  start: 21
  end: 35

Mkdocs.yml

plugins:
  - mkdoxy:
      projects:
        apiProject1:
          src-dirs: path/to/src/project1
          full-doc: True
          doxy-cfg:
            FILE_PATTERNS: "*.cpp *.h*"
            EXAMPLE_PATH: examples
            RECURSIVE: True
        apiProject2:
          src-dirs: sw/python-wrapper/
          full-doc: True
          doxy-cfg:
            FILE_PATTERNS: "*.py"
            EXAMPLE_PATH: ""
            RECURSIVE: True
            OPTIMIZE_OUTPUT_JAVA: True
            JAVADOC_AUTOBRIEF: True
            EXTRACT_ALL: True
...
nav:
  - 'Home': 'index.md'
  - API:
      - Project 1:
          - 'Links': 'apiProject1/links.md'
          - 'Classes':
              - 'Class List': 'apiProject1/annotated.md'
              - 'Class Index': 'apiProject1/classes.md'
              - 'Class Hierarchy': 'apiProject1/hierarchy.md'
              - 'Class Members': 'apiProject1/class_members.md'
              - 'Class Member Functions': 'apiProject1/class_member_functions.md'
              - 'Class Member Variables': 'apiProject1/class_member_variables.md'
              - 'Class Member Typedefs': 'apiProject1/class_member_typedefs.md'
              - 'Class Member Enumerations': 'apiProject1/class_member_enums.md'
          - 'Namespaces':
              - 'Namespace List': 'apiProject1/namespaces.md'
              - 'Namespace Members': 'apiProject1/namespace_members.md'
              - 'Namespace Member Functions': 'apiProject1/namespace_member_functions.md'
              - 'Namespace Member Variables': 'apiProject1/namespace_member_variables.md'
              - 'Namespace Member Typedefs': 'apiProject1/namespace_member_typedefs.md'
              - 'Namespace Member Enumerations': 'apiProject1/namespace_member_enums.md'
          - 'Functions': 'apiProject1/functions.md'
          - 'Variables': 'apiProject1/variables.md'
          - 'Macros': 'apiProject1/macros.md'
          - 'Files': 'apiProject1/files.md'
      - Project 2:
...

License


MIT License

Copyright (c) 2021 Kuba Andrýsek

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Project details


Download files

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

Source Distribution

mkdoxy-1.0.2.tar.gz (28.1 kB view details)

Uploaded Source

Built Distribution

mkdoxy-1.0.2-py3-none-any.whl (34.9 kB view details)

Uploaded Python 3

File details

Details for the file mkdoxy-1.0.2.tar.gz.

File metadata

  • Download URL: mkdoxy-1.0.2.tar.gz
  • Upload date:
  • Size: 28.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for mkdoxy-1.0.2.tar.gz
Algorithm Hash digest
SHA256 68bbd81d4a1aa8569eb559ed847c2f843fb843dfab84324224cd14ea89ec844a
MD5 38c21beb39940b003857bd01624754a0
BLAKE2b-256 d211d6dbbcab3f3ad11ae1512e7fdd25dab5e6c095d9353ce354586b782c6e5f

See more details on using hashes here.

File details

Details for the file mkdoxy-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: mkdoxy-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 34.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for mkdoxy-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 316a168b48f2ab8ab5517b54be994ac80466cd3ac8e9ebbf324222dfdc85a625
MD5 9fa44019036797eac11c81d74577d501
BLAKE2b-256 8231842410d14be107b01ff756b476cbb3db1cd32811f8e9f03b3ae8b4b54f07

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