Skip to main content

Module docs

Module docs 

Source
Expand description

Exposes the docs runtime module.

§Examples

ⓘ
use pharos_native::runtime::docs;

Structs§

DocsNavEntry
Public struct DocsNavEntry used by this module.
DocsOutputRemap
Public struct DocsOutputRemap used by this module.

Functions§

CLOSE_LIST
Performs CLOSE LIST.
FLUSH_PARA
Flushes one markdown paragraph into the output buffer.
append_inline_markup
Appends a bounded inline-markup fragment with safe link and code handling.
collect_md_files
Collects md files.
dbuf_append
Appends one raw buffer fragment within the documentation size limit.
dbuf_append_html_escaped
Appends escaped HTML text to a documentation buffer.
dbuf_detach
Transfers the buffer contents, leaving an unallocated empty buffer.
dbuf_ensure
Ensures bounded capacity for one raw buffer append.
dbuf_free
Performs dbuf free.
dbuf_init
Resets a documentation buffer and releases its previous allocation.
dbuf_put_anchor_open
Performs dbuf put anchor open.
dbuf_put_tag_close
Closes a validated markup tag.
dbuf_put_tag_open
Performs dbuf put tag open.
dbuf_putc
Appends one escaped character to a documentation buffer.
dbuf_puts
Appends one NUL-terminated C-string equivalent to the buffer.
docs_html_output_rel
Performs docs HTML output rel.
docs_html_output_rel_with_remap
Performs docs HTML output rel with remap.
docs_markdown_to_html
Performs docs markdown to HTML.
docs_markdown_to_html_with_remap
Performs docs markdown to HTML with remap.
docs_markdown_to_html_with_remap_for_page
Converts the supported Markdown and authored HTML mixture used by Pharos docs.
docs_nav_collect_entries_local
Performs docs nav collect entries local.
docs_output_remap_append
Performs docs output remap append.
docs_output_remap_clear
Performs docs output remap clear.
docs_output_remap_finish_item
Completes one output remap item only when both sides are present.
docs_output_remap_load_json_array
Performs docs output remap load JSON array.
docs_output_remap_load_yaml
Performs docs output remap load YAML.
docs_output_remap_lookup_default_html
Performs docs output remap lookup default HTML.
docs_output_remap_lookup_source
Performs docs output remap lookup source.
docs_page_depth
Performs docs page depth.
docs_page_title
Performs docs page title.
docs_relative_prefix
Performs docs relative prefix.
docs_render_page
Performs docs render page.
docs_render_sidebar
Performs docs render sidebar.
docs_root_href
Performs docs root href.
docs_yaml_value
Converts a bounded YAML scalar value into its canonical text representation.
line_len
Performs line len.
line_starts_with
Performs line starts with.
replace_placeholder
Performs replace placeholder.
rewrite_link_target
Rewrites one documentation link target while rejecting unsafe schemes.
skip_spaces
Performs skip spaces.