Skip to main content

zzipmakedocs

generate troff manpages and htm manual pages from C source comments via docbook reference and markdown parts

background

The ZZipLib had been embedding documentation into the C source code from the beginning. For some time a tool cpp2markdown was extracting the parts, based on the pygments lexer. From there the markdown parts were compiled into a docbook <references> xml master. And with the xmlto docbook processor the dozens of troff man.3 pages and html parts were written.

However the xmlto docbook processor turned out to be quite unstable, with the results being not very readable. So a tool dbk2man was created to generate the troff pages. The cpp2markdown turned out to be not very configurable, so it was replaced by a zzipdoc transformer that got the function references better and it does not anymore depend on the pygments lexer.

The zziplib/docs are now compiling the source *.c input with a tool zzipmakedocs that generates the intermediate docook.xml format. And dbk2man turns that into dozens of files in subdirectories man3 or html which get packaged as tarball for installation.

As it can be helpful for others, the documentation generator is packaged as pypi tool as well. The sources for that are still in the zziplib project.

running

  • zzipmakedocs *.py ../zzip/*.c --package MyLibrary --release 0.1 --output mydocbook
    • there is also a --onlymainheader mylib.h option that only scans c-files having that include
  • dbk2man.py man mydocbook.xml -o man3
    • generates troff format files into subdirectory man3 (arguments similar to xmlto)
  • dbk2man.py html mydocbook.xml -o html
    • generates html format files into subdirectory html (arguments similar to xmlto)

Using the --onlymainheader the zziplib build rules generate the documentation for three libraries instead of just one. That's because there is a main library and two derivates that are smaller but sharing the same internal helper functions.

Metadata

Release files for zzipmakedocs 0.13.80

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for zzipmakedocs 0.13.80
File Interpreter ABI Platform Actions
zzipmakedocs-0.13.80-py3-none-any.whl Python 3 none any Details for zzipmakedocs-0.13.80-py3-none-any.whl

Release files / zzipmakedocs-0.13.80-py3-none-any.whl

Download URL zzipmakedocs-0.13.80-py3-none-any.whl
Size 82.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
df1c27c0481f1235fce053ced54d7c729faf6dc4eeea55219847bda3b4915abf
BLAKE2b-256 checksum
How to use checksums
c64235ad29761d26a151e3ac0b996c3f5f2dbe8650a0542c8d8856b20d6a85a0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Security for zzipmakedocs 0.13.80

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.13.80 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page