euv-docs 0.48.1

Cross-platform documentation viewer and static site generator powered by euv and euv-ui.
Documentation

Site-level configuration for the euv-docs demo home page

(consumed by build.rs when EUV_DOCS_SRC_DIR is unset, e.g.

during cargo clippy / cargo test in the euv-docs crate itself).

site: title: Euv-docs description: A documentation site generator powered by euv + euv-ui. logo: '๐Ÿ“˜' locales:

  • prefix: /

    Content directory under docs/docs/. Required: the build refuses to

    guess a locale's content location, and fails loudly when it is empty

    instead of emitting a one-page site.

    dir: en lang: en-US label: English title: Euv-docs description: A documentation site generator powered by euv + euv-ui. footer: MIT Licensed | Built with euv + euv-ui toc_label: On this page prev_label: Previous next_label: Next navbar:
    • { text: Home, link: / }
    • { text: Guide, link: /guide/ }
    • { text: Components, link: /components/ }
    • { text: GitHub, link: https://github.com/euv-dev/euv }

Euv-docs

Zero-JS Static Documentation Site Generator Powered by euv + euv-ui

Crates.io Version Crates.io Downloads Docs.rs CI Status Rust 2024 License: MIT

Workspace Overview ยท API Docs ยท Agent Engineering Rules


Overview

Showcase zero-JS static & multi-locale WebAssembly (build_multilocale_wasm_site) documentation site generator powered by euv + euv-ui (doc_kit), featuring YAML frontmatter site configuration, localized navigation, live client-side search, footer item declarations, 11-family inline Mermaid SVGs, and native VS Code Eva Bold syntax highlighting.

Responsibilities & Module Layout

  • parser & model โ€” Parses Markdown trees and YAML frontmatter site/locale metadata with deterministic TOC, summary, and route extraction
  • generator & bundle โ€” Emits static zero-JS HTML, search-index.json, sitemap.xml, 11-family inline Mermaid SVGs, and multi-locale WASM site bundles (build_multilocale_wasm_site)
  • viewer โ€” Interactive euv + euv-ui showcase documentation viewer built on EuvAppShell (auto_hide_chrome_on_scroll), doc_kit (EuvDocToc, EuvDocPager, EuvDocSectionNav, EuvDocMetaBar), reactive topbar theming, and live search
  • docs/docs/en/ โ€” Canonical framework guides, component catalog, and GFM + Eva Bold syntax verification pages

Footer Items

The footer is one row: the locale's footer text, then the items the site declares. Every part of the content comes from the site configuration (footer_link, footer_items with text, link, optional icon, and alt). The row never wraps; an item that does not fit is cut with an ellipsis so filing notices remain legible and copyable.

Installation & Usage

cargo install euv-docs
cargo run -p euv-docs -- --generate docs/docs/en target/docs-preview

Verification

cargo run -p euv-cli -- fmt --check
cargo clippy -p euv-docs --all-features --all-targets -- -D warnings
cargo test -p euv-docs --all-features

Documentation & Governance

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For inquiries, please contact the author at root@devhub.vip.