Skip to main content

A program to generate markdown documentation files from Task files

Project description

task2md

Software License semantic-release: angular Pipeline Status

Built with Material for MkDocs Source code documentation

A CLI tool to generate from Task files, some markdown documentation files for mkdocs static site.

Usage: task2md [OPTIONS] COMMAND [ARGS]...

  A CLI tool to generate markdown documentation files from Task files.

Options:
  --version  Show the version and exit.
  --help     Show this message and exit.

Commands:
  dir   Command to generate a markdown documentation file from a directory.
  file  Command to generate a markdown documentation file from a Task file.

dir

Get all files with yaml/yml extension from the input directory and generate the markdown files in the output directory.

Usage: task2md dir [OPTIONS]

  Command to generate a markdown documentation file from a directory.

  Raises:     click.ClickException: Error when reading input file or writing
  output file

Options:
  -i, --input DIRECTORY  Input directory  [required]
  -d, --dir DIRECTORY    Output markdown documentation files directory.
                         Default current directory.
  --help                 Show this message and exit.

Example:

task2md dir --input Taskfile.d/ -d doc_dir/

file

Generate from the input file a markdown file in the output directory.

Usage: task2md file [OPTIONS]

  Command to generate a markdown documentation file from a Task file.

  Raises:     click.ClickException: Error when reading input file or writing
  output file

Options:
  -i, --input FILE     Input Task yaml file.  [required]
  -d, --dir DIRECTORY  Output markdown documentation files directory. Default
                       current directory.
  --help               Show this message and exit.

Example:

task2md file --input Taskfile.d/lint.yml -d doc_dir/

Installation

With Python environment

To use:

  • Minimal Python version: 3.10

Installation with Python pip:

python3 -m pip install task2md
task2md --help

Authors

License

This program is free software: you can redistribute it and/or modify it under the terms of the MIT License (MIT). See the LICENSE for details.

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

task2md-1.1.2.tar.gz (20.6 kB view details)

Uploaded Source

Built Distribution

task2md-1.1.2-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file task2md-1.1.2.tar.gz.

File metadata

  • Download URL: task2md-1.1.2.tar.gz
  • Upload date:
  • Size: 20.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.2

File hashes

Hashes for task2md-1.1.2.tar.gz
Algorithm Hash digest
SHA256 9a219ce2cb82035b5aea8d0c4564e9d7513cdacc9cfbc4d334930d457bf5a42b
MD5 5a0c27b76452cbd4f0e5cc10733b5e0a
BLAKE2b-256 8a232456e322dcf1e50e0e74d1bb7a2a6c229090618c694f168fa58e85df881a

See more details on using hashes here.

File details

Details for the file task2md-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: task2md-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.2

File hashes

Hashes for task2md-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 103288c91ee75b4df0582070366c920c78215e592948cb77f461a898e1441d6f
MD5 63340f377377f0be75b0723be36dd806
BLAKE2b-256 cf2c118c7e7fa28d2967e329782e2cdce3e418061eb7889eee012e850dd1bad9

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