Skip to content

docs: fix broken documentation links by adding /en/ language prefix#986

Merged
garrett4wade merged 3 commits intomainfrom
fw/fix-doc-link
Mar 5, 2026
Merged

docs: fix broken documentation links by adding /en/ language prefix#986
garrett4wade merged 3 commits intomainfrom
fw/fix-doc-link

Conversation

@garrett4wade
Copy link
Copy Markdown
Collaborator

Description

Fix all broken documentation links across the repository. After the docs site was
restructured for multilingual support (en/zh), all documentation page URLs without
the language prefix now return 404. This adds the /en/ prefix to 35+ doc links
across 7 files and fixes one typo (/references//reference/).

Related Issue

Fixes #984

Type of Change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code refactoring (no functional changes)
  • Performance improvement
  • Test coverage improvement

Checklist

  • I have read the Contributing Guide
  • I have run formatting tools (pre-commit or manual)
  • I have run relevant unit tests and they pass
  • I have added tests for new functionality
  • I have updated documentation if needed
  • My branch is up to date with main
  • This PR introduces breaking changes (if yes, fill out details below)
  • If this PR changes documentation, I have built and previewed it locally with jb build docs
  • No critical issues raised by AI reviewers (/gemini review)

Breaking Change Details (if applicable):

N/A

Additional Context

Root cause: The documentation site was restructured from a single-language setup
to a multilingual setup with /en/ and /zh/ prefixes. A root index.html auto-redirects
to /en/, so the base URL https://inclusionai.github.io/AReaL/ still works, but all
deep links like /tutorial/quickstart.html now return 404 without the /en/ prefix.

Changes by file:

File Links Fixed Notes
README.md 28 All tutorial, best_practices, customization, algorithms, reference, cli_reference links
CONTRIBUTING.md 2 installation + ai_assisted_dev links
blog/AReaL_v0_3.md 2 eval link + references/reproducereference/reproduce (typo fix + prefix)
docs/en/version_history.md 1 gsm8k_grpo tutorial link → /en/ prefix
docs/zh/version_history.md 1 gsm8k_grpo tutorial link → /zh/ prefix (Chinese docs link to Chinese version)
examples/countdown/README.md 1 installation link
examples/tau2/README.md 1 installation link

Verification: Confirmed via HTTP that old URLs (without /en/) return 404 and new
URLs (with /en/) return 200.

Note: The link to reference/reproduce.html in blog/AReaL_v0_3.md was also fixed
from the plural references/ to singular reference/, but no reproduce.md page
currently exists in the docs TOC. This may need a separate follow-up to create the page.

After docs site restructured for multilingual support (en/zh), all
documentation page URLs without the language prefix now return 404.

- Add /en/ prefix to 35+ doc links across README, CONTRIBUTING, blog,
  examples, and docs files
- Fix typo in blog: /references/ -> /reference/ (plural to singular)
- Use /zh/ prefix for Chinese docs cross-references
- Auto-format markdown via mdformat pre-commit hook

Closes #984
@gemini-code-assist
Copy link
Copy Markdown
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 resolves widespread broken documentation links throughout the repository. The issue arose from a recent restructuring of the documentation site to support multiple languages, which introduced /en/ and /zh/ prefixes for language-specific content. By systematically updating all affected URLs to include the appropriate language prefix, this change significantly improves the accessibility and integrity of the project's documentation, ensuring users can navigate to the correct resources without encountering 404 errors.

Highlights

  • Documentation Link Fixes: Addressed over 35 broken documentation links across 7 files by incorporating the /en/ language prefix, which became necessary after the documentation site's restructuring for multilingual support.
  • Typo Correction: Corrected a specific typo in blog/AReaL_v0_3.md, changing /references/ to /reference/ in a link, in addition to adding the language prefix.
  • Multilingual Support: Ensured that English documentation links correctly point to the /en/ path and Chinese documentation links correctly point to the /zh/ path, maintaining proper language-specific navigation.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • CONTRIBUTING.md
    • Added /en/ prefix to the installation guide link.
    • Added /en/ prefix to the AI-Assisted Development Guide link.
  • README.md
    • Added /en/ prefix to the agentic RL tutorial link.
    • Added /en/ prefix to the NPU installation guide link.
    • Added /en/ prefix to the AReaL-lite quickstart guide link.
    • Added /en/ prefix to the quickstart guide link for setup instructions.
    • Added /en/ prefix to all tutorial links (Installation, Quickstart, Agentic RL, Evaluation, Large MoE with Megatron, Large MoE with PyTorch Archon, Running GRPO on GSM8K dataset).
    • Added /en/ prefix to all best practices links (Improving Algorithm Performance, Agent Workflow Best Practices, Debugging, Handling OOM Issues, Performance Profiling).
    • Added /en/ prefix to all customization links (Customize Dataset, Customize Agentic/RVLR Rollout Workflows).
    • Added /en/ prefix to all algorithms links (Asynchronous RL Explained, PPO, GRPO, and Related Algorithms, M2PO).
    • Added /en/ prefix to all reference links (CLI Configurations, Checkpointing, Metrics Tracking, Allocation Mode, Rollout Workflow, Agent Workflow, AI-Assisted Development).
  • blog/AReaL_v0_3.md
    • Added /en/ prefix to the Evaluation Guide link.
    • Corrected typo from /references/ to /reference/ and added /en/ prefix to the training instructions link.
  • docs/en/version_history.md
    • Added /en/ prefix to the 'Step-by-step Tutorial' link.
  • docs/zh/version_history.md
    • Added /zh/ prefix to the '分步教程' (Step-by-step Tutorial) link.
  • examples/countdown/README.md
    • Added /en/ prefix to the AReaL installation guide link.
  • examples/tau2/README.md
    • Added /en/ prefix to the installation guide link.
Activity
  • The author confirmed via HTTP that old URLs (without /en/) returned 404 and new URLs (with /en/) returned 200, verifying the fix.
  • The author has read the Contributing Guide.
  • The author has run formatting tools.
  • The author has updated documentation as needed.
  • The author's branch is up to date with main.
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.

Add 中文文档 link pointing to /zh/ docs site in the header nav bar,
alongside the existing Documentation link (now explicitly /en/).
Copy link
Copy Markdown
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 correctly fixes numerous broken documentation links by adding the appropriate language prefixes (/en/ or /zh/). The changes are thorough and align with the multilingual restructuring of the documentation site. I have one suggestion for the README.md file to improve link consistency by using relative paths, which would make the repository's documentation links more maintainable.

Note: Security Review has been skipped due to the limited scope of the PR.

Comment thread README.md Outdated
The root URL auto-redirects, no need for explicit /en/ path.
@garrett4wade garrett4wade merged commit e08e4e6 into main Mar 5, 2026
5 checks passed
@garrett4wade garrett4wade deleted the fw/fix-doc-link branch March 5, 2026 14:14
dingzhiqiang pushed a commit that referenced this pull request Mar 16, 2026
…986)

* docs: fix broken documentation links by adding /en/ language prefix

After docs site restructured for multilingual support (en/zh), all
documentation page URLs without the language prefix now return 404.

- Add /en/ prefix to 35+ doc links across README, CONTRIBUTING, blog,
  examples, and docs files
- Fix typo in blog: /references/ -> /reference/ (plural to singular)
- Use /zh/ prefix for Chinese docs cross-references
- Auto-format markdown via mdformat pre-commit hook

Closes #984

* docs: add Chinese documentation link to README header

Add 中文文档 link pointing to /zh/ docs site in the header nav bar,
alongside the existing Documentation link (now explicitly /en/).

* docs: revert Documentation link to root URL

The root URL auto-redirects, no need for explicit /en/ path.
leandermaben pushed a commit to leandermaben/AReaL that referenced this pull request Mar 24, 2026
…nclusionAI#986)

* docs: fix broken documentation links by adding /en/ language prefix

After docs site restructured for multilingual support (en/zh), all
documentation page URLs without the language prefix now return 404.

- Add /en/ prefix to 35+ doc links across README, CONTRIBUTING, blog,
  examples, and docs files
- Fix typo in blog: /references/ -> /reference/ (plural to singular)
- Use /zh/ prefix for Chinese docs cross-references
- Auto-format markdown via mdformat pre-commit hook

Closes inclusionAI#984

* docs: add Chinese documentation link to README header

Add 中文文档 link pointing to /zh/ docs site in the header nav bar,
alongside the existing Documentation link (now explicitly /en/).

* docs: revert Documentation link to root URL

The root URL auto-redirects, no need for explicit /en/ path.
SathyaGnanakumar pushed a commit to danielkiely/AReaL that referenced this pull request Apr 29, 2026
…nclusionAI#986)

* docs: fix broken documentation links by adding /en/ language prefix

After docs site restructured for multilingual support (en/zh), all
documentation page URLs without the language prefix now return 404.

- Add /en/ prefix to 35+ doc links across README, CONTRIBUTING, blog,
  examples, and docs files
- Fix typo in blog: /references/ -> /reference/ (plural to singular)
- Use /zh/ prefix for Chinese docs cross-references
- Auto-format markdown via mdformat pre-commit hook

Closes inclusionAI#984

* docs: add Chinese documentation link to README header

Add 中文文档 link pointing to /zh/ docs site in the header nav bar,
alongside the existing Documentation link (now explicitly /en/).

* docs: revert Documentation link to root URL

The root URL auto-redirects, no need for explicit /en/ path.
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.

[BUG]github首页几乎所有文档类链接404,数据集等404

1 participant