Skip to content

docs: define canonical docs routing#22

Merged
nsalvacao merged 1 commit intocandidate/lote2-audit-2026-03-16from
worker/lote2-aud010-docs-routing
Mar 16, 2026
Merged

docs: define canonical docs routing#22
nsalvacao merged 1 commit intocandidate/lote2-audit-2026-03-16from
worker/lote2-aud010-docs-routing

Conversation

@nsalvacao
Copy link
Owner

Summary\n- make root README the canonical first-time onboarding path\n- convert docs/README.md into a short routing index\n- remove duplicate long-form onboarding content from docs/README.md to avoid dead-ends\n\n## Validation\n- markdown link validation script for README.md and docs/README.md\n- uv run --extra dev python -m pytest tests/ -q\n- uv run --extra dev ruff check .

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request significantly refactors the project's documentation structure to enhance user experience and clarity. By establishing a single, clear entry point for new users and simplifying the documentation index, it aims to make navigation more intuitive and prevent users from encountering outdated or redundant information. The changes ensure a deterministic path for understanding the project, from initial setup to deeper contributions.

Highlights

  • Canonical Onboarding Path: The root README.md has been updated to explicitly define itself as the primary, canonical onboarding path for new users, providing clear instructions on how to navigate the project's documentation.
  • Streamlined Documentation Index: The docs/README.md file has been transformed into a concise documentation routing index, directing users to relevant deep-dive documentation and contributing guidelines.
  • Content Consolidation: Extensive, long-form onboarding content previously present in docs/README.md has been removed to eliminate duplication and prevent documentation dead-ends, ensuring a more focused and efficient user journey.
Changelog
  • README.md
    • Added a new 'Start Here (Canonical Docs Route)' section to guide first-time users.
    • Updated the content to explicitly state that this file is the canonical onboarding path.
  • docs/README.md
    • Completely rewrote the file to function as a concise 'Documentation Routing' index.
    • Removed all previous long-form content, including project summary, problem/solution, highlights, quick start, plugin details, architecture, and development sections.
    • Added links to the root README.md and CONTRIBUTING.md for guided navigation.
    • Included 'Recommended Paths' for different user types (first-time, contributor, returning).
Activity
  • No human activity has been recorded on this pull request yet.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@github-actions
Copy link

🔍 AI Code Review

# Code Review Summary

---

### 🔵 General
- Added explicit error handling for missing root CLI binary in `pipeline.py`.
- Improved error handling in `plugin_generator.py` for JSON loading.
- Removed unused `cli_name` parameter from `_embed_raw` function in `formatter.py`.

---

### 🔴 Critical

- **`_embed_raw` function signature changed but callers updated accordingly.**  
  No direct issues, but ensure no external callers rely on the old signature with `cli_name`.

- **`shutil.which(cli_name)` check in `crawl_cli`:**  
  This is a good pre-check, but it only checks PATH availability, not executable permissions or runtime errors.  
  Consider catching exceptions from `Executor` or subprocess calls for more robust detection.

- **`_is_missing_root_cli_binary` detection relies on stderr/stdout text matching:**  
  This is fragile and locale-dependent. Consider using exit codes or more reliable detection if possible.

---

### 🟡 Warning

- **Exit code `2` reused in both `pipeline.py` and `plugin_generator.py` for user errors:**  
  This is fine but document exit codes clearly for maintainability.

- **In `plugin_generator.py`, `parser.exit()` is used for error handling:**  
  This is acceptable but ensure that `parser` is the `argparse.ArgumentParser` instance and that this behavior is consistent.

- **In `crawl_cli`, `RootCLIBinaryNotFoundError` is raised twice (before and after detection):**  
  Consider consolidating the logic to avoid duplication.

---

### 🔵 Info / Best Practices

- **Logging error before `sys.exit()` in `main()` is good practice.**

- **Type hints added/improved in `_embed_raw` and other functions.**

- **Use of `Path` and `pathlib` is consistent and modern.**

---

# Summary

The PR improves robustness by adding explicit error handling for missing CLI binaries and JSON loading errors, and cleans up the formatter code by removing an unused parameter. The main security and stability concern is the reliance on string matching for detecting missing binaries, which can be fragile. Consider enhancing detection with exit codes or exceptions. Overall, the changes follow good practices and improve user feedback on errors.

🤖 gpt-4.1-mini · 2042 tokens · GitHub Models free tier · 0 premium requests

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request focuses on improving the onboarding experience by defining a canonical documentation route, primarily through modifications to the README.md and docs/README.md files. The changes aim to guide new users effectively and prevent documentation dead-ends. The review focuses on the clarity and correctness of the changes.

Comment on lines +20 to +30
## Start Here (Canonical Docs Route)

If this is your first visit, **this `README.md` is the canonical onboarding path**.

Follow this order:

1. Stay in this file for context + Quick Start.
2. Use [`docs/README.md`](docs/README.md) as the docs index for deeper reading.
3. Open [`docs/CONTRIBUTING.md`](docs/CONTRIBUTING.md) when you are ready to contribute.

This keeps first-time navigation deterministic and avoids documentation dead-ends.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The added section "Start Here (Canonical Docs Route)" clearly defines the onboarding path for new users. This is a good approach to guide users and avoid confusion. Consider adding a brief explanation of why this order is recommended to further enhance clarity.

Comment on lines +17 to +19
- **First-time user:** `../README.md` -> Quick Start -> Generated Plugin Layout
- **Contributor:** `../README.md` -> this index -> `CONTRIBUTING.md`
- **Returning user:** jump directly to the doc above as needed
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The recommended paths are clearly outlined. Consider adding a brief note about the 'Returning user' path, such as "For experienced users looking for specific information.", to provide additional context.

@nsalvacao nsalvacao merged commit 5ec2699 into candidate/lote2-audit-2026-03-16 Mar 16, 2026
2 checks passed
@nsalvacao nsalvacao deleted the worker/lote2-aud010-docs-routing branch March 16, 2026 15:49
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