Skip to main content

Documentation generator from markdown files

Project description

Madoc

What is Madoc for ?

It is a terminal tool to automatically generate a single html documentation file from all the .md files found in the directory.

Cool stuff to join a clean and easy to read documentation to some project.

Installation

pip install madoc

Usage

Use the source directory as a positional argument:

madoc .

You can combine options and source path:

madoc -t "My title" .

You can also choose where the generated html is written with -o/--output (path is relative to where you launch the command):

madoc test_files -o out

madoc -t "My title" test_files -o ./dist

If no source directory is provided, Madoc uses the current directory:

madoc

done, you have your documentation in a single html file in the source directory.

If -o is provided, the html file is written in the output directory instead.

Know more options with madoc -h.

Bookbinding usage

You can aggregate multiple existing html pages into a single portal page with:

madoc-bookbinding

Short alias:

madoc-bb

Examples:

madoc-bb -p some.html -i icon.png -p another.html --output .

madoc-bookbinding -p first.html -p second.html -o ./dist

Notes:

  • -p adds a page.
  • -i sets the icon of the previous -p.
  • default mode embeds pages/icons as base64.
  • --no-b64 keeps file links/URLs.
  • --get-template copies the default bookbinding template locally.

Changelog

  • 1.3.0: customizing a template is possible
  • 1.2.6: converts download links to base64 (optionnal)
  • 1.2.5: responsive design improved, possibility to prefix the files with '(XXX..)' to sort the files without appearing in the displayed names
  • 1.2.0: reworked without any JS dependencies (=readable offline), prettier template, base64 images conversion !
    • to be deprecated: the recursive option, will be replaced by something else (WIP...)
  • 1.1.1: responsive design
  • 1.1.0: Recursive build mode

Libraries used by Madoc

JS (used in recursive mode only)

  • Bulma (CSS framework)
  • Vue.js (JS framework)
  • Marked (JS library)

Python (already included in the pip setup)

  • Jinja2 (python library)
  • markdown
  • Pygments
  • requests

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

madoc-1.4.0.tar.gz (38.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

madoc-1.4.0-py3-none-any.whl (38.1 kB view details)

Uploaded Python 3

File details

Details for the file madoc-1.4.0.tar.gz.

File metadata

  • Download URL: madoc-1.4.0.tar.gz
  • Upload date:
  • Size: 38.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for madoc-1.4.0.tar.gz
Algorithm Hash digest
SHA256 0631e95401ee51710e9a4e30fdad661b2f91e1c97e2630d634cf1726c25b63f0
MD5 1496af881fa067c92c5663e8308b5726
BLAKE2b-256 499454cf4f6bcdb26b472dbadd1883072ced15c31e266d79bcc98181dc2c9f38

See more details on using hashes here.

File details

Details for the file madoc-1.4.0-py3-none-any.whl.

File metadata

  • Download URL: madoc-1.4.0-py3-none-any.whl
  • Upload date:
  • Size: 38.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.20

File hashes

Hashes for madoc-1.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 92dfd1675a4ee02055103cf966fa3392162e74483b580fa8a34ad417175d9be9
MD5 07698ca1470f25ab36b0aee9fd91c2c2
BLAKE2b-256 96556e2da2fecca75f8e6f077176a7fd1cc47addb20c08160e63bd130798cc8c

See more details on using hashes here.

Supported by

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