Generates browsable documentation for installed and local instrument/component files, under tools/Python/mcdoc.
Option
Description
searchterm
(optional) search filter, or a specific .instr/.comp filename
-i, --install
generate the full installation master doc page
-d, --dir DIR
also include search results from DIR (local instruments/components)
-m, --manual
open the user manual PDF
-c, --comps
open the component manual PDF
-w, --web
open the McStas/McXtrace website
-v, --verbose
print a parsing log during execution
-M, --md
also emit Markdown (.md) doc files (HTML is always written)
-T, --tex
also emit LaTeX (.tex) doc files
-A, --all-formats
emit HTML, Markdown, and LaTeX together
--in-repo
place output next to the source files instead of the installed docdir (no master page)
-o, --outdir DIR
write results to DIR (in-repo use only)
(No searchterm/--install/--manual/--comps/--web at all → browse the existing installed docs directly.)
Math in a %D description goes in <span class="latex">$...$</span> (or <div class="latex">): MathJax renders it in the HTML docs, and the --tex output passes it to LaTeX as is.