Documentation ¶
Overview ¶
Package elvdoc extracts doc comments of Elvish variables and functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractAllFromFS ¶ added in v0.20.0
ExtractFS extracts elvdocs of all modules found under fsys, and returns a map from the symbol prefix of a module ("" for builtin, "$mod:" for any other $mod).
See ExtractFromFS for how modules correspond to files.
func HighlightCodeBlock ¶ added in v0.20.0
HighlightCodeBlock highlights a code block from Markdown. It handles thea elvish and elvish-transcript languages.
Types ¶
type Docs ¶
Docs records doc comments.
func ExtractFromFS ¶ added in v0.20.0
ExtractFromFS extracts elvdoc of a module from fsys. The symbolPrefix is used to look up which files to read:
- "": eval/*.elv (the builtin module)
- "edit:": edit/*.elv
- "$mod:": mods/$symbolPrefix/*.elv
If symbolPrefix is not empty and doesn't end in ":", this function panics.
Click to show internal directories.
Click to hide internal directories.