Expand description
euv-docs
Cross-platform documentation viewer, static HTML/SVG generator, and multi-locale zero-JS/zero-CSS WebAssembly site builder powered by euv and euv-ui.
Structs§
- DocFooter
Item - Single externally supplied footer item (for example a filing notice with optional local badge icon).
- DocFrontmatter
- Parsed YAML frontmatter metadata attached to a Markdown documentation file.
- DocHome
Action - Call-to-action button declared under
actions:on ahome: truelanding page. - DocHome
Feature - Feature or product card declared under
features:on ahome: truelanding page. - DocHome
Stat - Key metric tile declared under
stats:on ahome: truelanding page. - DocLocale
Config - Per-locale site configuration declared under
locales:in rootREADME.mdfrontmatter. - DocNavbar
Item - Single top-bar navigation link declared under a locale’s
navbar:list. - DocPage
- Fully parsed documentation page ready for native rendering or static generation.
- DocSite
- Collection of parsed documentation pages forming a complete site or locale bundle.
- DocSite
Config - Combined multi-locale site configuration parsed from root
README.mdfrontmatter. - DocSite
Frontmatter - Optional site-level metadata declared under
site:in root Markdown frontmatter. - DocToc
Item - Table-of-contents heading entry derived from a parsed document.
- Docs
Build Options - Configuration controlling static documentation site generation and optional dev live-reload.
- Docs
Catalog Artifact - Single published project artifact returned by
/api/page-artifactsand rendered in Rust. - Docs
Viewer State - Shared reactive state driving the showcase-parity
euv-docsviewer across native desktop, headless, and WebAssembly targets. - Generated
Site Report - Result summary emitted after generating a static documentation bundle.
- Packed
Page Body - Per-page heavy content record stored inside the compressed
site_bodies.euvzpayload. - Packed
Site Bundle - Split site bundle pairing a lightweight plaintext metadata shell with compressed page bodies.
- Search
Index Entry - Compact search index record serialized into
search-index.jsonand embedded client search.
Enums§
- DocBlock
- Structured content block extracted from a Markdown documentation file.
- Docs
Codec Error - Typed failure taxonomy for
euv-docspayload compression and site bundle unpacking.
Constants§
- CODEC_
MAGIC - Four-byte magic prefix identifying an
euv-docscompressed payload stream. - CODEC_
VERSION - Current compressed payload stream format version.
- CODEC_
WINDOW_ SIZE - Largest back-reference distance supported by the sliding window (1 MiB).
- DEFAULT_
DOC_ TITLE - Default title assigned when a document omits frontmatter title.
- DOCS_
CATALOG_ API_ PATH - Public JSON endpoint path supplying stored page artifacts to the home catalog.
- DOCS_
CATALOG_ CARD_ CLASS - Stable class identifier marker for the compiled Rust public catalog component.
- DOCS_
FLAG_ DEBUG - CLI flag enabling debug profile compilation for multi-locale WASM bundles.
- DOCS_
FLAG_ GENERATE - CLI flag triggering static HTML/JSON site generation.
- DOCS_
FLAG_ HEADLESS - CLI flag enabling headless verification mode.
- DOCS_
FLAG_ INTERACTIVE - CLI flag keeping the native documentation viewer open in an interactive event loop.
- DOCS_
FLAG_ LOCALE - CLI flag selecting a single locale to build (
--locale <dir|prefix|label>). - DOCS_
FLAG_ RELEASE - CLI flag enabling release profile compilation for multi-locale WASM bundles.
- DOCS_
FLAG_ STATIC_ HTML - CLI flag forcing legacy single-locale static HTML output even when
locales:is declared. - DOCS_
OFFICIAL_ LOGO_ URL - Official Euv brand logo image URL used in documentation headers and favicons.
- DOCS_
SITE_ TAGLINE - Default site tagline displayed on the documentation home page.
- DOCS_
SITE_ TITLE - Default site title for generated documentation bundles.
- DOCS_
WINDOW_ HEIGHT - Default logical window height for the docs viewer.
- DOCS_
WINDOW_ TITLE - Default window title for the interactive documentation viewer.
- DOCS_
WINDOW_ WIDTH - Default logical window width for the docs viewer.
- EUV_
DOCS_ RELEASE_ MARKER - Stable release version marker embedded in compiled documentation WASM bundles.
Functions§
- apply_
docs_ history_ navigation - Applies an incoming browser history location (
popstate/hashchange) toappandstate, dismissing overlays and exiting fullscreen first. - build_
docs_ bundle - Loads all Markdown files beneath
src_dir(excludingout_dir) and builds a complete static docs site. - build_
multilocale_ wasm_ site - Builds a complete multi-locale zero-JS/zero-CSS
euv+euv-uiWebAssembly documentation site intoout_dir. - compress_
docs_ bytes - Compresses raw documentation bytes into the zero-dependency
EUVZLZ77 + Canonical Huffman format. - decompress_
docs_ bytes - Decompresses an
EUVZbyte stream produced bycompress_docs_bytesback to the exact original bytes. - format_
catalog_ bytes - Formats a byte count into a human-readable size string paired with raw bytes for tooltip inspection.
- format_
catalog_ utc - Formats a Unix epoch second timestamp into an ISO-8601 UTC string (
YYYY-MM-DD HH:MM:SS UTC). - generate_
static_ docs - Generates static HTML pages, search index, and sitemap for
siteintoout_dirusing default options. - generate_
static_ docs_ with_ options - Generates a complete static documentation site with clean URLs, instant search, TOC, asset copying, and optional dev HMR.
- load_
doc_ site - Recursively loads all
.mdfiles underroot_dirinto a sortedDocSite. - load_
doc_ site_ with_ options - Recursively loads all
.mdfiles underroot_dirwith optional site title override and smart directory filtering. - load_
locale_ site - Loads a single locale content directory using shared
DocSiteConfigand activeDocLocaleConfigmetadata. - load_
site_ config - Inspects
<src_dir>/README.mdand<src_dir>/../README.mdfor a multi-localeDocSiteConfigfrontmatter block. - mount_
doc_ page - Renders a single standalone
DocPage(meta bar, header, interactive TOC, and fullEuvMarkdown) as nativeeuv-uinodes. - mount_
doc_ page_ with_ context - Renders a standard documentation article page purely from
euv-uicomponents (EuvBreadcrumb,EuvDocMetaBar,EuvHeader,EuvDocToc,EuvMarkdown,EuvDivider,EuvDocPager,EuvFooter). - mount_
docs_ catalog - Renders the compiled Rust
/api/page-artifactspublic catalog section with loading, localized error/retry, and expandable SHA-256 cards. - mount_
docs_ footer - Renders the site footer row including localized license attribution, externally supplied
footer_items, and release marker metadata. - mount_
docs_ viewer - Mounts the cross-platform reactive showcase-parity documentation viewer for
siteusingeuv-ui. - mount_
docs_ viewer_ with_ state - Mounts the full showcase-parity reactive documentation shell (
EuvAppShell,EuvRouterPageRetention::Freeze, live search,EuvCommandmodal, 17-scheme theme controls,EuvDocSectionNav, and mobileEuvBottomNav). - normalize_
docs_ history_ target - Normalizes browser
location.hashandlocation.pathnameinto a validDocSiteroute and optional heading anchor slug. - pack_
site_ bundle - Splits a
DocSiteinto a lightweight plaintext metadata shell and anEUVZ-compressed page body blob. - parse_
catalog_ artifacts_ json - Parses and validates a
/api/page-artifactsJSON response intoDocsCatalogArtifactentries. - parse_
markdown_ page - Parses a single Markdown document with optional YAML frontmatter into a
DocPage. - render_
docs_ app - Launches the documentation viewer app in either single-frame or interactive event-loop mode.
- render_
docs_ smoke - Launches the documentation viewer app and steps one headless or native frame.
- render_
page_ html - Renders a single
DocPageinto a self-contained static HTML document using default build options. - render_
wasm_ locale_ shell_ html - Renders the self-contained zero-JS-file, zero-CSS-file
index.html/404.htmlshell for a single locale WASM bundle. - transform_
wasm_ glue_ inline - Strips ES module
exportstatements fromwasm-bindgen’s generated glue script and rewrites the.wasmURL to./pkg/<wasm_file>. - unique_
locales - Deduplicates locale entries by content directory while preserving declaration order.
- unpack_
site_ bundle - Reconstructs a
DocSitefrom its plaintext metadata shell JSON andEUVZ-compressed page bodies.