RDOC3.0(1)

πŸ“¦ version 3.0.2, in ubuntu jammy

✨ NAME ✨

okay bestie, meet rdoc3.0 β€” the icon that generates documentation from Ruby script files πŸ’– she's the General Commands Manual girlie and she eats, no cap.


πŸ’… SYNOPSIS πŸ’…

rdoc3.0 [options]  [names...]

πŸŽ€ DESCRIPTION πŸŽ€

so the vibe is: all your files get parsed first, and everything they contain gets collected, before any output is produced. why? because that way all the cross references between every single file can actually be resolved. it's giving patient queen energy πŸ‘‘

if a name you pass is a directory, she traverses it, fr. and if you specify no names at all? she just processes every Ruby file in the current directory β€” plus subdirectories, because she's thorough like that 🌸

the available output formatters are literally: chm, html, ri, xml ✨

and for the tea on where the output actually goes, run:

rdoc --help-output

πŸ”₯ OPTIONS πŸ”₯

  • --accessor, -A accessorname[,..] β€” a comma separated list of extra class methods that should be treated like 'attr_reader' and friends. you can repeat this option, she doesn't mind πŸ’… each accessorname can have '=text' tacked onto the end, and if it does, that text shows up wherever the r/w/rw would show up for normal accessors. cute, right?
  • --all, -a β€” include all methods in the output, not just the public ones. everyone gets their moment πŸ‘‘
  • --charset, -c charset β€” specifies the HTML character-set.
  • --debug, -D β€” displays lots on internal stuff. like, a LOT. she's yapping πŸ—£οΈ
  • --diagram, -d β€” generate diagrams showing modules and classes. ngl you need dot V1.8.6 or later for the --diagram option to work correctly. Dot is available from <URL:http://www.research.att.com/sw/tools/graphviz/> 🌈
  • --exclude, -x pattern β€” do not process files or directories matching pattern. but heads up: files given explicitly on the command line will never be excluded. she said what she said.
  • --extension, -E new = old β€” treat files ending with .new as if they ended with .old. so using '-E cgi=rb' will cause xxx.cgi to be parsed as a Ruby file πŸ¦‹
  • --fileboxes, -F β€” classes get put in boxes, and those boxes represent files, and that's where those classes reside. classes shared between more than one file are shown with a list of the files that share them. silently discarded if --diagram isn't given. Experimental. πŸ™ˆ
  • --fmt, -f formatname β€” set the output formatter (see below).
  • --help, -h β€” print usage. the classic.
  • --help-output, -O β€” explain the various output options.
  • --image-format, -I gif|png|jpg|jpeg β€” sets the output image format for diagrams. can be png, gif, jpeg, jpg. if you omit this option, png is used. requires --diagram.
  • --include, -i dir[,dir...] β€” set (or add to) the list of directories to be searched when satisfying :include: requests. can be used more than once, she's flexible πŸ’œ
  • --inline-source, -S β€” show method source code inline, rather than via a popup link. no more clicking, it's all right there ✨
  • --line-numbers, -N β€” include line numbers in the source code.
  • --main, -m name β€” name will be the initial page displayed. main character energy, literally.
  • --merge, -M β€” when creating ri output, merge processed classes into previously documented classes of the name name.
  • --one-file, -1 β€” put all the output into a single file. one file, one vibe πŸŽ€
  • --op, -o dir β€” set the output directory.
  • --opname, -n name β€” set the name of the output. has no effect for HTML.
  • --promiscuous, -p β€” when documenting a file that contains a module or class that's also defined in other files, show all the stuff for that module/class on each file's page. by default she only shows stuff defined in that particular file. (yes she really called it that 😭)
  • --quiet, -q β€” don't show progress as we parse. shhh 🀫
  • --ri, -r β€” generate output for use by 'ri.' the files are stored in the '.rdoc' directory under your home directory unless overridden by a subsequent --op parameter, so no special privileges are needed 🫢
  • --ri-site, -R β€” generate output for use by 'ri.' the files are stored in a site-wide directory, making them accessible to others, so special privileges are needed.
  • --ri-system, -Y β€” generate output for use by 'ri.' the files are stored in a system-level directory, making them accessible to others, so special privileges are needed. this option is intended to be used during Ruby installations πŸ‘‘
  • --show-hash, -H β€” a name of the form #name in a comment is a possible hyperlink to an instance method name. when displayed, the '#' is removed unless this option is specified.
  • --style, -s stylesheet-url β€” specifies the URL of a separate stylesheet. serve looks πŸ’…
  • --tab-width, -w n β€” set the width of tab characters (default 8).
  • --template, -T template-name β€” set the template used when generating output.
  • --title, -t text β€” set text as the title for the output.
  • --version, -v β€” display RDoc's version.
  • --webcvs, -W url β€” specify a URL for linking to a web frontend to CVS. if the URL contains a '%s', the filename will be appended to it.

ngl that was a lot of options, but you got this bestie πŸ’–

and that's the whole page, fr fr β€” this one's from July 2014, tagged RDOC3.0(1), straight outta the General Commands Manual πŸ¦‹ slay, go document something iconic βœ¨πŸŽ€

πŸ“¦ where this page comes from