UPDATE-YORICKDOC(1)
β¨ update-yorickdoc β the girl who builds your Yorick HTML docs π
okay bestie, welcome to update-yorickdoc(1) β it's a Yorick manual page and it's literally the backstage pass to your HTML documentation situation. no cap. π
πΈ SYNOPSIS πΈ
update-yorickdoc [--conf=file] [--auto] [--auto-now] [--from=directory]
[--to=directory] [--xref-dir=directory] [--src-dir=directory]
[--template=file]
π DESCRIPTION π
so. update-yorickdoc is a wrapper. a little cutesy wrapper around htmldoc.i, which is a Yorick script that goes through Yorick source files, scoops out all the DOCUMENT comments, and turns them into a whole set of HTML files. it's giving β¨documentation eraβ¨.
here's the whole routine, step by step:
- it merges files from a "source directory" β default is
/usr/share/yorick-doc, and you can override that with the--src-dircommand-line option. - it deletes the target directory β default
/usr/share/doc/yorick-doc/html_xref. yeah, it just deletes it. dramatic but necessary π - and if Yorick is installed, it calls
yorick -batch htmldoc.ito compile HTML documentation for all the currently installed functions β whether they come from the main Yorick package or from add-on packages.
update-yorickdoc is designed to be called automatically whenever a Yorick package gets installed or removed. if you want to block that auto-update behaviour, set ENABLE_AUTO to 0 in /etc/yorick-doc. and if you're feeling main character energy, you can also run update-yorickdoc manually β like to build docs from your own custom directories (a user's own ~/Yorick/ directory, for example) or dump them somewhere custom. obsessed. π¦
it also has a set of default parameters to work with, and those get overwritten in chronological order by, in this exact order:
- the content of
/etc/yorick-doc $HOME/.yorick-doc- the command line
π«Ά a few files are required for this script to function, bestie. default files ship in the default source directory, and add-on packages are supposed to provide their extra info in that same place. check FILES down below, and also /usr/share/doc/yorick-dev/yorick-policy.gz.
π OPTIONS π
--auto,-aβ this flag is being deprecated by the arrival of triggers in dpkg. on systems where dpkg supports triggers,-aturnsupdate-yorickdocinto a no-op. on older systems, it behaves like-Abelow. (iykyk π)--auto-now,-Aβ this one is meant to be used only in thepostinstscript of theyorick-docpackage, which is in turn supposed to be triggered every single time a yorick add-on package is installed, upgraded, or removed. and yes, you can makeupdate-yorickdoca no-op when this flag is set by settingENABLE_AUTOto0in/etc/yorick-doc.--conf=fileβ read configuration from this file. it gets parsed as the option is found on the command line, so it overwrites the options that came before it. order matters, bestie. π--from=directory1:directory2...β a colon-separated list of directories to scan for Yorick files. default:/usr/share/yorick/i:/usr/share/yorick/i0.--purge,-pβ only delete/usr/share/doc/yorick-doc/html_xref(or whatever directory you set with--toand--xref-dir, or the equivalent variables in/etc/yorick-doc), and do not rebuild the documentation afterwards. clean slate, no rebuild. π--quiet,-qβ be quiet, only telling you shortly whatupdate-yorickdocdoes. this is the built-in default, but it may have been overridden in a configuration file. so don't be surprised if your quiet girl is suddenly loud.--src-dir=directoryβ the directory containing the.packinfo,.keywordsand.aliasesfiles when building the documentation. each of these three types of files gets concatenated in lexicographical order and fed tohtmldoc.iusing the--packinfo,--keywords, and--aliasesoptions (peephtmldoc.i). default:/usr/share/yorick-doc.--template=fileβ the template file forhtmldoc.i. the correct format is detailed inhtmldoc.i. default:/usr/share/yorick-doc/template.html.--to=directoryβ the top-level directory of the Yorick HTML hierarchy to update. this sits one level above the directory that will be deleted and/or (re)built. defaults to/usr/share/doc/yorick-doc.--verbose,-vβ be verbose and output lots of debugging information. the built-in default is to be quiet, just telling you shortly whatupdate-yorickdocdoes. pick your vibe. β--xref-dir=wordβ the sub-directory of the "TO" directory where the documentation gets compiled. certain hyperlinks in the documentation will use this value.
π warning, fr fr: this should not be set to a directory whose content you value, since this directory will be first erased. like, gone. so choose wisely, bestie.
default: html_xref.
π¦ FILES π¦
/etc/yorick-docβ the system-wide configuration forupdate-yorickdoc. this is the right place to setENABLE_AUTO=0in case you don't want Yorick's documentation rebuilt every single time a package of the Yorick suite is installed, upgraded, or removed. another interesting option here isFROM, where you can add things like/usr/local/yorick/iif you maintain a secondary Yorick tree at your site. see the file itself for more details. π$HOME/.yorick-docβ the user-level equivalent of the file above. it is ignored for the root user./usr/share/yorick-doc/*.packinfoβ source for the package index in the documentation./usr/share/yorick-doc/*.keywordsβ lists of keywords for the index page of the documentation./usr/share/yorick-doc/*.aliasesβ seehtmldoc.i./usr/share/yorick-doc/template.htmlβ template file forhtmldoc.i./usr/share/yorick/i/htmldoc.iβ the Yorick script that does most of the actual work. the real MVP. π₯
π SEE ALSO π
/usr/share/yorick/i/htmldoc.i/usr/share/doc/yorick-dev/yorick-policy.gzdh_installyorick(1)
π AUTHORS π
Thibaut Paumard <paumard@users.sourceforge.net> β iconic, no notes.
and that's the whole page, bestie β this one's dated 2008-05-18 and comes to you from the Yorick manual set as update-yorickdoc(1). go build some docs, you absolute legend. π
β¨π
π¦ where this page comes from
- debian bookworm: yorick-doc 2.2.04+dfsg1-12 Β· BSD-3-Clause
- debian trixie: yorick-doc 2.2.04+dfsg1-14 Β· BSD-3-Clause
- ubuntu jammy: yorick-doc 2.2.04+dfsg1-12 Β· BSD-3-Clause
- ubuntu noble: yorick-doc 2.2.04+dfsg1-12build3 Β· BSD-3-Clause
- ubuntu questing: yorick-doc 2.2.04+dfsg1-14
- ubuntu resolute: yorick-doc 2.2.04+dfsg1-14build1 Β· BSD-3-Clause
- ubuntu stonking: yorick-doc 2.2.04+dfsg1-17 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms