Skip to content

Docs: Make documentation links relative#21490

Merged
jerop merged 11 commits intomainfrom
make-doc-links-relative
Mar 9, 2026
Merged

Docs: Make documentation links relative#21490
jerop merged 11 commits intomainfrom
make-doc-links-relative

Conversation

@diodesign
Copy link
Contributor

Summary

Links in our documentation to other pages in our docs need to be relative due to the way they are handled by the Gemini CLI's website framework and GitHub.

Details

We should provide as consistent a user experience as possible for readers of the website and GitHub. Links should not 404, and should render as expected by the visitor. This PR fixes up several pages with relative links, moves away from using unsupported reference-style links, and ensures for now that the contributing page has working links regardless of where it is read.

Related Issues

Fixes maintainers-gemini-cli#1503

How to Validate

Check that links on GitHub do not 404, and links on the website do not 404 nor render unexpectedly as markdown.

Pre-Merge Checklist

  • [ X ] Updated relevant documentation

@diodesign diodesign added the area/documentation Gemini CLI documentation tasks and issues label Mar 6, 2026
@diodesign diodesign requested review from a team as code owners March 6, 2026 23:40
@diodesign diodesign added the area/site Gemini CLI website (https://geminicli.com) label Mar 6, 2026
@gemini-cli
Copy link
Contributor

gemini-cli bot commented Mar 6, 2026

Hi @diodesign, thank you so much for your contribution to Gemini CLI! We really appreciate the time and effort you've put into this.

We're making some updates to our contribution process to improve how we track and review changes. Please take a moment to review our recent discussion post: Improving Our Contribution Process & Introducing New Guidelines.

Key Update: Starting January 26, 2026, the Gemini CLI project will require all pull requests to be associated with an existing issue. Any pull requests not linked to an issue by that date will be automatically closed.

Thank you for your understanding and for being a part of our community!

@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 enhances the reliability and consistency of documentation links throughout the Gemini CLI project. By standardizing link formats, it addresses issues where links might break or render incorrectly depending on the viewing environment, ultimately providing a more robust and seamless experience for users accessing the documentation.

Highlights

  • Documentation Link Reliability: Converted various absolute and root-relative documentation links to either relative paths or full URLs to ensure consistent functionality across the Gemini CLI website and GitHub.
  • Link Style Modernization: Replaced unsupported reference-style links with inline or standard relative/absolute links, improving markdown rendering consistency.
  • User Experience Improvement: Ensured all documentation links function correctly, preventing 404 errors and unexpected rendering behavior for users viewing the documentation on different platforms.
Changelog
  • CONTRIBUTING.md
    • Updated two root-relative links to full HTTPS URLs.
  • docs/cli/plan-mode.md
    • Updated multiple reference-style links to inline relative links with anchor IDs.
    • Removed a block of reference-style link definitions at the end of the file.
  • docs/core/subagents.md
    • Updated one root-relative link to a relative path.
  • docs/get-started/authentication.md
    • Updated one root-relative link to a full HTTPS URL.
  • docs/get-started/gemini-3.md
    • Updated one root-relative link to a full HTTPS URL.
  • docs/get-started/installation.md
    • Updated one root-relative link to a relative path.
  • docs/hooks/best-practices.md
    • Updated one root-relative link to a relative path.
  • docs/hooks/index.md
    • Updated several root-relative links to relative paths.
  • docs/hooks/reference.md
    • Updated one root-relative link to a relative path.
  • docs/reference/policy-engine.md
    • Updated one reference-style link to an inline relative link.
    • Removed a reference-style link definition at the end of the file.
  • docs/resources/quota-and-pricing.md
    • Updated one root-relative link to a full HTTPS URL.
  • docs/resources/tos-privacy.md
    • Updated one root-relative link to a relative path.
Activity
  • No human activity (comments, reviews, or progress updates) has been recorded for 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.

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 systematically updates links across the documentation to improve their reliability on both GitHub and the project's website. The changes involve converting root-relative links to either path-relative links for intra-documentation navigation or absolute URLs for external pages and top-level site pages. The use of reference-style links has also been refactored to use inline links, which improves maintainability. The changes are consistent and well-executed, aligning with the goal of providing a seamless experience for readers.

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

@gemini-cli gemini-cli bot added the status/need-issue Pull requests that need to have an associated issue. label Mar 6, 2026
@github-actions
Copy link

github-actions bot commented Mar 6, 2026

Size Change: -4 B (0%)

Total Size: 26 MB

ℹ️ View Unchanged
Filename Size Change
./bundle/gemini.js 25.5 MB -4 B (0%)
./bundle/node_modules/@google/gemini-cli-devtools/dist/client/main.js 221 kB 0 B
./bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.js 227 kB 0 B
./bundle/node_modules/@google/gemini-cli-devtools/dist/src/index.js 11.5 kB 0 B
./bundle/node_modules/@google/gemini-cli-devtools/dist/src/types.js 132 B 0 B
./bundle/sandbox-macos-permissive-open.sb 890 B 0 B
./bundle/sandbox-macos-permissive-proxied.sb 1.31 kB 0 B
./bundle/sandbox-macos-restrictive-open.sb 3.36 kB 0 B
./bundle/sandbox-macos-restrictive-proxied.sb 3.56 kB 0 B
./bundle/sandbox-macos-strict-open.sb 4.82 kB 0 B
./bundle/sandbox-macos-strict-proxied.sb 5.02 kB 0 B

compressed-size-action

@diodesign diodesign changed the title Make documentation links relative Docs: Make documentation links relative Mar 7, 2026
…emini/gemini-cli into make-doc-links-relative

Removing docs/ide-integration/ide-companion-spec.md as there are no
link-related changes to it.
@diodesign diodesign force-pushed the make-doc-links-relative branch from ccfe427 to 239c624 Compare March 7, 2026 00:50
@diodesign diodesign enabled auto-merge March 7, 2026 01:02
Comment on lines -347 to -365
[`list_directory`]: /docs/tools/file-system.md#1-list_directory-readfolder
[`read_file`]: /docs/tools/file-system.md#2-read_file-readfile
[`grep_search`]: /docs/tools/file-system.md#5-grep_search-searchtext
[`write_file`]: /docs/tools/file-system.md#3-write_file-writefile
[`glob`]: /docs/tools/file-system.md#4-glob-findfiles
[`google_web_search`]: /docs/tools/web-search.md
[`replace`]: /docs/tools/file-system.md#6-replace-edit
[MCP tools]: /docs/tools/mcp-server.md
[`save_memory`]: /docs/tools/memory.md
[`activate_skill`]: /docs/cli/skills.md
[`codebase_investigator`]: /docs/core/subagents.md#codebase-investigator
[`cli_help`]: /docs/core/subagents.md#cli-help-agent
[subagents]: /docs/core/subagents.md
[custom subagents]: /docs/core/subagents.md#creating-custom-subagents
[policy engine]: /docs/reference/policy-engine.md
[`enter_plan_mode`]: /docs/tools/planning.md#1-enter_plan_mode-enterplanmode
[`exit_plan_mode`]: /docs/tools/planning.md#2-exit_plan_mode-exitplanmode
[`ask_user`]: /docs/tools/ask-user.md
[YOLO mode]: /docs/reference/configuration.md#command-line-arguments
Copy link
Contributor

Choose a reason for hiding this comment

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

are reference style links not handled well by the website? if so, should we remove all of them for consistency? I prefer reference style links because it makes the docs cleaner and it's easier to reuse links across the doc

@diodesign diodesign added this pull request to the merge queue Mar 9, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 9, 2026
@jerop jerop added this pull request to the merge queue Mar 9, 2026
Merged via the queue into main with commit 0f01912 Mar 9, 2026
27 checks passed
@jerop jerop deleted the make-doc-links-relative branch March 9, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation Gemini CLI documentation tasks and issues area/site Gemini CLI website (https://geminicli.com) status/need-issue Pull requests that need to have an associated issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants