Skip to main content

Write man pages using Markdown, and convert them to Roff or HTML

Project description

mrkd

Write man pages using Markdown, and convert them to Roff or HTML.

Installation

$ pip install mrkd

Usage

$ mrkd my-file.1.md my-file.1

Syntax is mrkd [options...] input-file output-file. The name and section number will automatically be derived from the input file, though you can override them using -name my-name and -section my-section, respectively.

Change the format to HTML using -format html:

$ mrkd my-file.1.md -format html my-file.1.html

You can override the HTML template (see template.html for an example) using -template.

In order to setup HTML links, you can set up an index file like so:

[Index]
my-page(1)=my-page.1.html

Then, when you do the following in your Markdown files:

something something (see my-page(1))

mrkd will automatically pick up the link and connect it via the index file. Pass it via the -index argument:

$ mrkd -f html -index index.ini my-file.1.md my-file.1.html

See the test directory for an example.

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

mrkd-0.2.0.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

mrkd-0.2.0-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file mrkd-0.2.0.tar.gz.

File metadata

  • Download URL: mrkd-0.2.0.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.4

File hashes

Hashes for mrkd-0.2.0.tar.gz
Algorithm Hash digest
SHA256 456f8c1be99da268554b29c6b5383532e58119def5a65d85270bc6a0ecc26aaf
MD5 1c4bc458ae3f1195cbb83a9588a39823
BLAKE2b-256 3a5b8cacb9e6f5589c5465fb65f79af76122bc6d8970cd3a15c498ca6bc45a93

See more details on using hashes here.

File details

Details for the file mrkd-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: mrkd-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/57.0.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.4

File hashes

Hashes for mrkd-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4cb47bb9eb8933a34ea2f2110529f33a07abcf1da43b7e77328538b7ee6164a0
MD5 c0cfa59fee944977f26c7e7ef6fd917c
BLAKE2b-256 bc9c981764250c3b693f0cf936e96d405b107b15ac57fcdc3476b39b5c298e4f

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