DOXYGEN2MAN(1)

πŸ“¦
version 2.0.9 Β· 2 versions
, in debian bookworm, debian trixie, epel 9, fedora 43, fedora 44, nixos 26.05, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– DOXYGEN2MAN(1) πŸ’–

okay bestie, gather round, because this is the manual page for doxygen2man β€” section 1 of the manual, in case you were wondering where to find her πŸ’…


✨ NAME ✨

doxygen2man β€” a tool that generates man pages out of Doxygen XML files πŸŽ€


🌸 SYNOPSIS 🌸

doxygen2man [OPTIONS] <XML file>

πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the tea, bestie: this is a tool that generates API manpages from a doxygen-annotated header file. First you run doxygen on the file, and then you run this program against the main XML file it created and the directory containing the ancilliary files. After that it will output a lot of *.3 man page files which you can then ship with your library. iconic behaviour, honestly πŸ‘‘

You will need to invoke this program once for each .h file in your library, using the name of the generated .xml file. That file will usually be called something like <include-file>_8h.xml, eg qbipcs_8h.xml. iykyk 🫢

If you want HTML output then simpy use nroff on the generated files as you would do with any other man page. (yes, "simpy", that's what she wrote, and we love her for it πŸ’€)


πŸ’… OPTIONS πŸ’…

  • -a β€” print an ASCII dump of the man pages to stdout
  • -m β€” write the man page files to <output dir>
  • -P β€” print the PARAMS section
  • -s <n> β€” write the man pages into section <n> (default 3)
  • -p <package> β€” use the <package> name. default <Package>
  • -H <header> β€” set the header (default β€” and yeah the original page literally just says (default and stops, no cap, so that's all we got πŸ’€)
  • -I <include> β€” set the include filename (defaults to the one in the XML file, or unknown.h)
  • -i <prefix> β€” set the prefix for header files (eg qb/) if they are installed a subdir of /usr/include
  • -C <company> β€” set the company name in the copyright (default Red Hat)
  • -D <date> β€” the date to print at the top of the man pages (format not checked, default: today)
  • -Y <year> β€” the year to print at the end of the copyright line (default: today's year)
  • -S <year> β€” the year to print at the start of the copyright line (default: 2010)
  • -o <dir> β€” write all man pages to <dir> (default .)
  • -d <dir> β€” directory for XML files (./xml/)
  • -c β€” use the Copyright line from the header file as the copyright line in the manpage. This requires that doxygen2man has access to the original .h file (see option -O below) and that the Copyright line has a defined format. It whould be within the first 10 lines of the file and start with the text * Copyright. If this line is not found then the current year, or the one given by the -Y option, will be used. (again, "whould" β€” she's doing her best, we stan πŸ₯°)
  • -O β€” specifies the directory containing the original header files. This is (currently) only used by the -c option above.
  • -h β€” print usage text

πŸ‘€ SEE ALSO πŸ‘€

doxygen(1) β€” go say hi to her too 🫢


πŸ’œ AUTHOR πŸ’œ

Christine Caulfield β€” thank you queen, we are obsessed 🌈


and that's the whole page, bestie!! no notes, she ate and left absolutely no crumbs πŸ‘‘

doxygen2man(1) β€” dated 2020-09-09 β€” slay, periodt πŸ’–βœ¨πŸŽ€