diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index c6c619219c..eb733f2cec 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -557,7 +557,7 @@ Before submitting your documentation pull request, please: If you have questions about contributing documentation: -- Check our [FAQ](https://geminicli.com/docs/resources/faq). +- Check our [FAQ](https://geminicli.com/docs/faq). - Review existing documentation for examples. - Open [an issue](https://github.com/google-gemini/gemini-cli/issues) to discuss your proposed changes. diff --git a/README.md b/README.md index 03a7be1296..eaa6afa27b 100644 --- a/README.md +++ b/README.md @@ -382,7 +382,7 @@ instructions. ## 📄 Legal - **License**: [Apache License 2.0](LICENSE) -- **Terms of Service**: [Terms & Privacy](./docs/resources/tos-privacy.md) +- **Terms of Service**: [Terms & Privacy](./docs/tos-privacy) - **Security**: [Security Policy](SECURITY.md) --- diff --git a/docs/get-started/authentication.md b/docs/get-started/authentication.md index 964e776567..b4388aae17 100644 --- a/docs/get-started/authentication.md +++ b/docs/get-started/authentication.md @@ -403,4 +403,4 @@ Your authentication method affects your quotas, pricing, Terms of Service, and privacy notices. Review the following pages to learn more: - [Gemini CLI: Quotas and Pricing](../resources/quota-and-pricing.md). -- [Gemini CLI: Terms of Service and Privacy Notice](../resources/tos-privacy.md). +- [Gemini CLI: Terms of Service and Privacy Notice](../resources/tos-privacy). diff --git a/docs/index.md b/docs/index.md index af1915bb8f..84d3c8fd2b 100644 --- a/docs/index.md +++ b/docs/index.md @@ -118,8 +118,7 @@ Support, release history, and legal information. - **[FAQ](./resources/faq.md):** Answers to frequently asked questions. - **[Quota and pricing](./resources/quota-and-pricing.md):** Limits and billing details. -- **[Terms and privacy](./resources/tos-privacy.md):** Official notices and - terms. +- **[Terms and privacy](./tos-privacy):** Official notices and terms. - **[Troubleshooting](./resources/troubleshooting.md):** Common issues and solutions. - **[Uninstall](./resources/uninstall.md):** How to uninstall Gemini CLI. diff --git a/packages/cli/src/config/config.ts b/packages/cli/src/config/config.ts index 80c1e19443..91dfd679e9 100755 --- a/packages/cli/src/config/config.ts +++ b/packages/cli/src/config/config.ts @@ -214,7 +214,7 @@ export async function parseArguments( string: true, nargs: 1, description: - '[DEPRECATED: Use Policy Engine instead See https://geminicli.com/docs/core/policy-engine] Tools that are allowed to run without confirmation', + '[DEPRECATED: Use Policy Engine instead See https://geminicli.com/docs/policy-engine] Tools that are allowed to run without confirmation', coerce: coerceCommaSeparated, }) .option('extensions', { diff --git a/packages/cli/src/config/settings-validation.test.ts b/packages/cli/src/config/settings-validation.test.ts index baf9b5bbdb..7445a2549b 100644 --- a/packages/cli/src/config/settings-validation.test.ts +++ b/packages/cli/src/config/settings-validation.test.ts @@ -323,9 +323,7 @@ describe('settings-validation', () => { expect(formatted).toContain('model.name'); expect(formatted).toContain('Expected: string, but received: object'); expect(formatted).toContain('Please fix the configuration.'); - expect(formatted).toContain( - 'https://geminicli.com/docs/reference/configuration/', - ); + expect(formatted).toContain('https://geminicli.com/docs/configuration'); } }); @@ -363,9 +361,7 @@ describe('settings-validation', () => { if (result.error) { const formatted = formatValidationError(result.error, 'test.json'); - expect(formatted).toContain( - 'https://geminicli.com/docs/reference/configuration/', - ); + expect(formatted).toContain('https://geminicli.com/docs/configuration'); } }); diff --git a/packages/cli/src/config/settings-validation.ts b/packages/cli/src/config/settings-validation.ts index 9921f6c6cc..7763af5ba2 100644 --- a/packages/cli/src/config/settings-validation.ts +++ b/packages/cli/src/config/settings-validation.ts @@ -327,7 +327,7 @@ export function formatValidationError( } lines.push('Please fix the configuration.'); - lines.push('See: https://geminicli.com/docs/reference/configuration/'); + lines.push('See: https://geminicli.com/docs/configuration'); return lines.join('\n'); } diff --git a/packages/cli/src/gemini.tsx b/packages/cli/src/gemini.tsx index 4722bb73f3..462e1baf53 100644 --- a/packages/cli/src/gemini.tsx +++ b/packages/cli/src/gemini.tsx @@ -239,7 +239,7 @@ export async function main() { ) { coreEvents.emitFeedback( 'warning', - 'Warning: --allowed-tools cli argument and tools.allowed in settings.json are deprecated and will be removed in 1.0: Migrate to Policy Engine: https://geminicli.com/docs/core/policy-engine/', + 'Warning: --allowed-tools cli argument and tools.allowed in settings.json are deprecated and will be removed in 1.0: Migrate to Policy Engine: https://geminicli.com/docs/policy-engine', ); } @@ -249,7 +249,7 @@ export async function main() { ) { coreEvents.emitFeedback( 'warning', - 'Warning: tools.exclude in settings.json is deprecated and will be removed in 1.0. Migrate to Policy Engine: https://geminicli.com/docs/core/policy-engine/', + 'Warning: tools.exclude in settings.json is deprecated and will be removed in 1.0. Migrate to Policy Engine: https://geminicli.com/docs/policy-engine', ); } diff --git a/packages/cli/src/ui/auth/AuthDialog.tsx b/packages/cli/src/ui/auth/AuthDialog.tsx index c823f606c6..7625bbfc2a 100644 --- a/packages/cli/src/ui/auth/AuthDialog.tsx +++ b/packages/cli/src/ui/auth/AuthDialog.tsx @@ -246,7 +246,7 @@ export function AuthDialog({ - {'https://geminicli.com/docs/resources/tos-privacy/'} + {'https://geminicli.com/docs/tos-privacy'} diff --git a/packages/cli/src/ui/auth/__snapshots__/AuthDialog.test.tsx.snap b/packages/cli/src/ui/auth/__snapshots__/AuthDialog.test.tsx.snap index 05bc9f422e..5e33650659 100644 --- a/packages/cli/src/ui/auth/__snapshots__/AuthDialog.test.tsx.snap +++ b/packages/cli/src/ui/auth/__snapshots__/AuthDialog.test.tsx.snap @@ -15,7 +15,7 @@ exports[`AuthDialog > Snapshots > renders correctly with auth error 1`] = ` │ │ │ Terms of Services and Privacy Notice for Gemini CLI │ │ │ -│ https://geminicli.com/docs/resources/tos-privacy/ │ +│ https://geminicli.com/docs/tos-privacy │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ " @@ -34,7 +34,7 @@ exports[`AuthDialog > Snapshots > renders correctly with default props 1`] = ` │ │ │ Terms of Services and Privacy Notice for Gemini CLI │ │ │ -│ https://geminicli.com/docs/resources/tos-privacy/ │ +│ https://geminicli.com/docs/tos-privacy │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ " @@ -53,7 +53,7 @@ exports[`AuthDialog > Snapshots > renders correctly with enforced auth type 1`] │ │ │ Terms of Services and Privacy Notice for Gemini CLI │ │ │ -│ https://geminicli.com/docs/resources/tos-privacy/ │ +│ https://geminicli.com/docs/tos-privacy │ │ │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────╯ " diff --git a/packages/cli/src/ui/constants.ts b/packages/cli/src/ui/constants.ts index db52be1105..7e717b9d89 100644 --- a/packages/cli/src/ui/constants.ts +++ b/packages/cli/src/ui/constants.ts @@ -41,7 +41,7 @@ export const DEFAULT_SELECTION_OPACITY = 0.2; export const DEFAULT_BORDER_OPACITY = 0.4; export const KEYBOARD_SHORTCUTS_URL = - 'https://geminicli.com/docs/cli/keyboard-shortcuts/'; + 'https://geminicli.com/docs/keyboard-shortcuts'; export const LRU_BUFFER_PERF_CACHE_LIMIT = 20000; // Max lines to show for active shell output when not focused diff --git a/packages/vscode-ide-companion/README.md b/packages/vscode-ide-companion/README.md index c2e2591928..d14e08c084 100644 --- a/packages/vscode-ide-companion/README.md +++ b/packages/vscode-ide-companion/README.md @@ -31,4 +31,4 @@ To use this extension, you'll need: # Terms of Service and Privacy Notice By installing this extension, you agree to the -[Terms of Service](https://geminicli.com/docs/resources/tos-privacy/). +[Terms of Service](https://geminicli.com/docs/tos-privacy).