docs: improve documentation and add automated testing#93
Merged
YuanYuYuan merged 4 commits intomainfrom Feb 9, 2026
Merged
Conversation
|
Enhanced documentation: - Added networking architecture diagram showing router-based discovery - Updated router installation guide with link to releases page - Fixed include paths for workspace reorganization (crates/ directory) - Updated terminology from "adapter" to "generator" to match codebase - Improved quick start guide with simplified router installation - Fixed nested code fence issues in examples.md - Marked standalone examples as rust,ignore for proper mdbook testing Code cleanup: - Renamed protobuf_adapter.rs to protobuf_generator.rs for consistency - Updated module imports to use protobuf_generator Testing infrastructure: - Added mdbook-build pre-commit hook to validate documentation builds - Added mdbook-test pre-commit hook to test code examples compile - Ensures documentation stays synchronized with codebase Fixes broken documentation builds and prevents future doc/code drift.
…mit hooks Added mdbook-admonish, mdbook-mermaid, and rustToolchain to pre-commit environment to fix CI failures in Check Formatting job. Changes: - Pass rustToolchain and docTools to pre-commit-check in flake.nix - Add cargo, mdbook, and preprocessors to tools section in pre-commit.nix - Wrap mdbook-build and mdbook-test hooks in shell scripts that: - Install preprocessors before running mdbook commands - Add rustdoc to PATH for mdbook test Fixes mdbook-test failures in CI with errors: - "The command wasn't found, is the 'admonish' preprocessor installed?" - "The command wasn't found, is the 'mermaid' preprocessor installed?" - "Error: failed to execute rustdoc"
Applied rustfmt nightly formatting to all Rust source files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Improves documentation with enhanced quick start guide, comprehensive router installation instructions, automated validation tools, and updated terminology to match codebase architecture.
Key Changes
Enhanced Documentation
Quick Start Guide - Restructured with two-path approach:
Networking Guide - Major improvements:
Examples Guide - Improved structure:
Message Generation - Updated terminology:
Fixed Installation Bug
Issue:
cargo install zenohfails with error:Fix: Changed to
cargo install zenohdin all documentation files.Impact: Users can now successfully install the Zenoh router using documented commands.
Code Cleanup
Renamed legacy file for consistency:
protobuf_adapter.rs→protobuf_generator.rslib.rsProtobufMessageGeneratorand generator module patternFixed documentation paths:
ros-z/examples/tocrates/ros-z/examples/Documentation Automation Scripts
Added 4 new Nushell scripts to prevent doc/code drift:
check-example-coverage.nu
extract-help.nu
--helpoutput from all Clap-based examplesvalidate-cli-docs.nu
--helpoutputtest-example-docs.nu
Pre-commit Integration
Added to
nix/pre-commit.nix:mdbook-build - Validates documentation builds successfully
mdbook-test - Tests that code examples compile
Benefits:
Demo Nodes Improvements
Added
--helpsupport to all 6 demo nodes:Enables better CLI documentation validation and improved user experience.
CI Integration
Updated
.github/workflows/docs.ymlto run example coverage check on documentation builds.