otcldoc(1)
π otcldoc β bestie's guide to the otcl-to-HTML glow-up π
okay so picture this: you've got a pile of otcl classes and you want them to look cute on the internet. that's literally what otcldoc does. it's a simple script that translates otcl classes into an html hyperlinked document β¨. and the vibe? inspired by javadoc. no cap.
πΈ SYNOPSIS πΈ
otcldoc [-h index-header-file] [ -d output-dir ] [ -i index-file-name ]
[ -c class-string ] files ...
π¦ DESCRIPTION π¦
otcldoc is a simple script for translating otcl classes into an html hyperlinked document. it's giving javadoc but make it otcl, periodt. π
here's the basic algorithm, and honestly the way it works is so satisfying:
- for a given set of input files, it finds all
Classdefinitions π - it takes the text in the comment immediately preceding the class def and drops it into the "description" section of the doc π
- it parses the
Classdefinition to locate superclasses, and that goes into the "superclasses" section π§ - it locates each method labeled as
instproc,public, orprivate, and enters descriptions into the "Public/Private Methods" sections of the html doc π
like. it literally reads your code and writes your docs. main character energy fr fr π
π OPTIONS π
-hindex-header-file β points at the index header file you want to use π-doutput-dir β the output directory where the html goes π-iindex-file-name β the name of the index file β¨-cclass-string β the class string π¦
and then, obvi:
- files ... β your input files, bestie. one or many, bring them all πΈ
π AUTHOR π
YunQiang Su <wzssyqa@gmail.com> β thank you for this, icon π
π₯ SEE ALSO π₯
(ngl there's nothing listed here in the original β the section is just vibes and empty space π)
that's the whole page, bestie π«Ά this one ships from the Linux User Manuals, dated APRIL 2010, and it's filed as otcldoc(1) πβ¨ go forth and hyperlink your classes, you absolute legend π
π¦ where this page comes from
- debian bookworm: tclcl 1.20-10
- debian trixie: tclcl 1.20-13
- ubuntu jammy: tclcl 1.20-9.1
- ubuntu noble: tclcl 1.20-10
- ubuntu questing: tclcl 1.20-13
- ubuntu resolute: tclcl 1.20-14
- ubuntu stonking: tclcl 1.20-14
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms