DOCMAKE(1)
π DOCMAKE(1) β like, the docmake manual page, bestie
okay so real talk: this is the manual page for docmake(1), a user-contributed Perl thing. Buckle up, we're getting into it π
β¨ NAME β¨
docmake β a tool to render DocBook/XML into various output formats. that's it, that's the whole vibe π¦
β VERSION β
version 0.1101 β yes queen, she's got a version number and she's proud of it π
πΈ SYNOPSIS πΈ
here's the little code collage, exactly as it was written, no notes π
# To render input.xml file into XHTML
docmake --ns -o output.xhtml xhtml input.xml
# Same with more verbose output
docmake -v ---ns o output.xhtml xhtml input.xml
# Avoid trailing slash when emitting to a dummy file in a dir
docmake ---ns -trailing-slash=0 -o output/index.xhtml xhtml5 input.xml
# Render into pdf
docmake -v --ns -o output.pdf pdf input.xml
# Same while not rebuilding if not necessary
docmake -v --ns --make -o output.pdf pdf input.xml
# Render using a Stylesheet
docmake -v --ns -o output.xhtml -x my-stylesheets.xsl xhtml input.xml
like, so many dashes. count them, I dare you π
π¦ DESCRIPTION π¦
docmake is a tool that renders DocBook/XML into its resultant formats using XSLT β we're talking XHTML, XSL-FO, PDF, RTF, etc. etc. etc. For a brief help moment, just type docmake help β¨
the whole point is that it aims to be a replacement for xmlto β <http://cyberelk.net/tim/software/xmlto/> . And like, as opposed to xmlto, it's written in Perl, which is honestly easier to get right than xmlto's Bash, and also xmlto hadn't been updated for a long freaking time when the author started work on docmake. so. yeah. glow-up era π
π USAGE π
the basic invocation of docmake is literally this:
docmake [flags] MODE input.xml
π MODES π
the available modes are β each one is a whole little destiny:
helpβ to get help. ask and you shall receive π«Άfoβ convert to XSL-FO.manpagesβ convert to Unix man pages. (hello, that's literally us rn π)rtfβ convert to Word/RTF.xhtmlβ convert to XHTML.xhtml-1_1β convert to XHTML-1.1.xhtml5β convert to XHTML5.pdfβ convert to PDF.
π FLAGS π
the available flags are, and I quote-ish, all of them, no skipping:
-h;--helpβ display some rudimentary help. rudimentary! humble king.--manβ display the man page.-v;--verboseβ verbose; output the commands' invocation as they are executed.--nsβ use the DocBook xsl-ns (namespaces) URLs.
Verbose β output the commands' invocation as they are executed. (yes, that line really is also under --ns in the original. we keep it. we don't question it. π)
-o OUTPUT_PATHβ put the result in OUTPUT_PATH.-x STYLESHEET;--stylesheet STYLESHEETβ use the XSLT stylesheet STYLESHEET for performing XSLT transformations.--basepath PATHβ this is the base path for the DocBook stylesheets. The appropriate XSLT mode will get appended to it. This is, for example, useful for building DocBook 5 documents by specifying the path to their stylesheets. iykyk π--stringparam KEY=VALUEβ specify the string parameter of KEY as VALUE. Note that β as opposed toxsltprocβ KEY and VALUE cannot be specified as different command line arguments; they should rather be on the same one, delimited by an equal sign ("="). no cap, one argument only π--trailing-slash=0β disable adding a trailing slash when building into an HTML file, to emit an unneeded file there. Note the=0argument. do not forget the=0. I'm serious. π--makeβ behave likemakein building files only if their dependencies are newer.
π₯ EXAMPLES π₯
there are some examples for sample invocation in the Synopsis. (go look up, they're iconic β)
π SEE ALSO π
- DocBook on the Wikipedia β <http://en.wikipedia.org/wiki/DocBook>
- DocBook/XSL β The Complete Guide β <http://www.sagehill.net/docbookxsl/>
- The DocBook Homepage β <http://www.docbook.org/>
xmltoβ <http://cyberelk.net/tim/software/xmlto/>
π COPYRIGHT & LICENSE π
Copyright 2008 Shlomi Fish, all rights reserved.
This program is released under the following license: MIT/X11 License. ( <http://www.opensource.org/licenses/mit-license.php> ).
π§ AUTHOR π§
Shlomi Fish, <http://www.shlomifish.org/> . π«Ά
π SUPPORT π
π Websites π
The following websites have more information about this module, and may be of help to you. As always, in addition to those websites, please use your favorite search engine to discover more resources.
- MetaCPAN β a modern, open-source CPAN search engine, useful to view POD in HTML format.
<https://metacpan.org/release/App-XML-DocBook-Builder>
- RT: CPAN's Bug Tracker β the RT (Request Tracker) website is the default bug/issue tracking system for CPAN.
<https://rt.cpan.org/Public/Dist/Display.html?Name=App-XML-DocBook-Builder>
- CPANTS β the CPANTS is a website that analyzes the Kwalitee (code metrics) of a distribution.
<http://cpants.cpanauthors.org/dist/App-XML-DocBook-Builder>
- CPAN Testers β the CPAN Testers is a network of smoke testers who run automated tests on uploaded CPAN distributions.
<http://www.cpantesters.org/distro/A/App-XML-DocBook-Builder>
- CPAN Testers Matrix β the CPAN Testers Matrix is a website that provides a visual overview of the test results for a distribution on various Perls/platforms.
<http://matrix.cpantesters.org/?dist=App-XML-DocBook-Builder>
- CPAN Testers Dependencies β the CPAN Testers Dependencies is a website that shows a chart of the test results of all dependencies for a distribution.
<http://deps.cpantesters.org/?module=App::XML::DocBook::Builder>
π Bugs / Feature Requests π
Please report any bugs or feature requests by email to bug-app-xml-docbook-builder at rt.cpan.org, or through the web interface at <https://rt.cpan.org/Public/Bug/Report.html?Queue=App-XML-DocBook-Builder>. You will be automatically notified of any progress on the request by the system. slay, automated updates β¨
π¦ Source Code π¦
The code is open to the world, and available for you to hack on. Please feel free to browse it and play with it, or whatever. If you want to contribute patches, please send a diff or prod the author to pull from their repository :)
<https://github.com/shlomif/docmake>
git clone git://github.com/shlomif/docmake.git
π AUTHOR π
Shlomi Fish <shlomif@cpan.org> β yes, a second AUTHOR section. the original has two. respect the structure. π
π BUGS π
Please report any bugs or feature requests on the bugtracker website <https://github.com/shlomif/docmake/issues>
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature. give the maintainers something to work with, bestie π
πΈ COPYRIGHT AND LICENSE πΈ
This software is Copyright (c) 2024 by Shlomi Fish.
This is free software, licensed under:
The MIT (X11) License
and that's the whole page π big mwah to perl v5.42.3 and the date 2024-07-08 β that's the version and timestamp riding at the very bottom of the original, and now they're riding off into the sunset here. bye bestie, go render something cute πβ¨
π¦ where this page comes from
- nixos 26.05: perl5.42.3-docmake 0.1101
- nixpkgs unstable: perl5.42.3-docmake 0.1101
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms