Skip to content

Add rustdoc + GitHub Pages deployment - #12

Merged
MatrixA merged 1 commit into
mainfrom
MatrixA/add-gh-pages-docs
Mar 11, 2026
Merged

Add rustdoc + GitHub Pages deployment#12
MatrixA merged 1 commit into
mainfrom
MatrixA/add-gh-pages-docs

Conversation

@MatrixA

@MatrixA MatrixA commented Mar 11, 2026

Copy link
Copy Markdown
Owner

Summary

  • Expose detector, scanner, known_tools modules as a public library API via new src/lib.rs
  • Add GitHub Actions workflow to auto-generate and deploy rustdoc to GitHub Pages on push to main
  • Organize i18n documentation: move 6 translated READMEs into docs/ directory with updated cross-links

Implementation

  • Created src/lib.rs with crate-level docs and module re-exports
  • Updated Cargo.toml with [lib] section
  • Refactored src/main.rs to import shared modules from the aicheck:: library
  • Added .github/workflows/docs.yml for automated docs build & deploy (requires GitHub Pages enabled in repo settings)
  • Moved translated READMEs to docs/ and updated all language switcher links

Verification

  • cargo build
  • cargo doc --no-deps ✓ (generates at target/doc/aicheck/index.html)
  • cargo test ✓ (all 59 tests pass, including doc-test)

Note: Enable GitHub Pages in repo settings (Settings > Pages > Source: GitHub Actions) to activate automatic deployment.

🤖 Generated with Claude Code

- Create src/lib.rs exposing detector, scanner, known_tools as public API
- Add [lib] section to Cargo.toml for library documentation
- Refactor src/main.rs to import shared modules from aicheck::
- Add .github/workflows/docs.yml to auto-generate and deploy docs to GitHub Pages
- Move translated READMEs (6 languages) to docs/ directory with updated cross-links
- All tests pass (59 tests), docs build successfully with cargo doc --no-deps

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
@MatrixA
MatrixA merged commit c454557 into main Mar 11, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant