Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

DocBook to mdoc(7) converter

Project description

LaserHammer is a simple DocBook to mdoc(7) ("UNIX man page syntax") converter.

The command line utility resides in the scripts/ subdirectory; use it like this:

./laserhammer book.parsed.xml book.7

The 7 above stands for section 7 of man pages, "miscellaneous documentation". The 'book.parsed.xml' is a processed XML source of the FreeBSD Handbook; you can use it as test sample. The 'book.7' is the example translated into mdoc.

There's also a rudimentary Python module. Use it like this:

import laserhammer

mdoc = laserhammer.laserhammer(file_path)
print(mdoc)

Project details


Release history Release notifications

This version
History Node

2.4

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
laserhammer-2.4-py3-none-any.whl (6.0 kB) Copy SHA256 hash SHA256 Wheel py3 Aug 22, 2018
laserhammer-2.4.tar.gz (4.7 kB) Copy SHA256 hash SHA256 Source None Aug 22, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page