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 Class definitions πŸ‘‘
  • 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 Class definition to locate superclasses, and that goes into the "superclasses" section 🧚
  • it locates each method labeled as instproc, public, or private, 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 🌟

  • -h index-header-file β€” points at the index header file you want to use πŸŽ€
  • -d output-dir β€” the output directory where the html goes πŸ’–
  • -i index-file-name β€” the name of the index file ✨
  • -c class-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