sigildocs

(sigil docs lookup)

(sigil docs lookup) - JSON-based Documentation Lookup

Loads and queries documentation from JSON files generated during compilation. JSON doc files are co-located with .sgb bytecode files and are found using the same load path search as module loading.

Example: (load-module-details '(sigil string)) => <module-details> struct with exports list

(get-export-details '(sigil string) 'string-split) => <export-details> struct with name, kind, doc, signature

Exports

Clear the documentation cache.

Use this to force reloading of documentation files after they have been regenerated.

Convert a module name to its documentation file path (relative).

The path matches the .sgb bytecode location but with .json extension.

find-doc-fileprocedure

Check if documentation exists for a module.

Uses the unified resource resolution (project -> bundle -> system).

Load documentation for a module from its JSON file.

Returns a <module-details> struct, or #f if no documentation file is found. The result is cached for subsequent lookups.

Get the module-level documentation string.

Returns the module's docstring, or #f if not found.

Get documentation for a specific export from a module.

Returns an <export-details> struct, or #f if the module or export is not found.

Construct a module-details struct.

Re-exported from (sigil docs types)

Test if a value is a module-details struct.

Re-exported from (sigil docs types)

Get the name field of a module-details struct.

Re-exported from (sigil docs types)

Get the file field of a module-details struct.

Re-exported from (sigil docs types)

Get the package field of a module-details struct.

Re-exported from (sigil docs types)

Get the description field of a module-details struct.

Re-exported from (sigil docs types)

Get the exports field of a module-details struct.

Re-exported from (sigil docs types)

Get the syntaxes field of a module-details struct.

Re-exported from (sigil docs types)

Get the examples field of a module-details struct.

Re-exported from (sigil docs types)

Construct a export-details struct.

Re-exported from (sigil docs types)

Test if a value is a export-details struct.

Re-exported from (sigil docs types)

Get the name field of a export-details struct.

Re-exported from (sigil docs types)

Get the kind field of a export-details struct.

Re-exported from (sigil docs types)

Get the signature field of a export-details struct.

Re-exported from (sigil docs types)

Get the description field of a export-details struct.

Re-exported from (sigil docs types)

Get the examples field of a export-details struct.

Re-exported from (sigil docs types)

Get the source-module field of a export-details struct.

Re-exported from (sigil docs types)

Construct a syntax-details struct.

Re-exported from (sigil docs types)

Test if a value is a syntax-details struct.

Re-exported from (sigil docs types)

Get the name field of a syntax-details struct.

Re-exported from (sigil docs types)

Get the patterns field of a syntax-details struct.

Re-exported from (sigil docs types)

Get the description field of a syntax-details struct.

Re-exported from (sigil docs types)

Get the examples field of a syntax-details struct.

Re-exported from (sigil docs types)