From 8d541bcc9bddf9c6e1b1d07e4be9e8c798cc838c Mon Sep 17 00:00:00 2001 From: gusmcgee <81196646+gusmcgee@users.noreply.github.com> Date: Tue, 13 Oct 2026 10:34:19 +0000 Subject: [PATCH] Fix broken links and stale content in docs (#65490) ## Summary Fixes broken links in `docs/src`. Notes: - **Rego:** pointed to `open-policy-agent/zed-rego` (same extension, moved from `StyraInc`), but it was dropped from the registry in zed-industries/extensions#7599. The Rego page may need removing. - **Roc:** removed `roc_language_server` from setup; the extension now runs `roc experimental-lsp`. - **Meson:** `jobpaardekooper/zed-meson` is the registry's replacement (zed-industries/extensions#4980). - **Removed:** Gemini gemtext (dropped from registry) and the Sweep blog link (site gone, [archived copy](https://web.archive.org/web/20260806152854/https://blog.sweep.dev/posts/oss-next-edit)). ## Testing Ran a link checker over `docs/` and checked each new target by hand. Clicked through the fixed links with `mdbook serve docs`. ## Self-review - [ ] I've reviewed my diff for quality, security, reliability, and performance. - [ ] UI changes follow the [checklist](https://zed.dev/docs/development/ui-checklist). - [ ] Tests cover the new or changed behavior. Used Claude to find and verify the links; I reviewed each change. Release Notes: - N/A --------- Co-authored-by: Smit Barmase --- docs/src/ai/edit-prediction.md | 2 +- docs/src/completions.md | 2 +- docs/src/development/release-notes.md | 6 +++--- docs/src/extensions/languages.md | 4 ++-- docs/src/git.md | 4 ++-- docs/src/key-bindings.md | 2 +- docs/src/languages.md | 9 ++++----- docs/src/languages/css.md | 2 +- docs/src/languages/emmet.md | 2 +- docs/src/languages/gleam.md | 2 +- docs/src/languages/html.md | 2 +- docs/src/languages/rego.md | 6 +++--- docs/src/languages/roc.md | 4 ++-- docs/src/reference/all-settings.md | 12 +++++++++++- docs/src/repl.md | 10 ++-------- docs/src/vim.md | 3 +-- extensions/README.md | 2 +- 17 files changed, 38 insertions(+), 36 deletions(-) diff --git a/docs/src/ai/edit-prediction.md b/docs/src/ai/edit-prediction.md index ee6e5260b9a..42788d3c077 100644 --- a/docs/src/ai/edit-prediction.md +++ b/docs/src/ai/edit-prediction.md @@ -369,7 +369,7 @@ The `prompt_format` setting controls how code context is formatted for the model - `code_gemma` - CodeGemma format: `<|fim_prefix|>prefix<|fim_suffix|>suffix<|fim_middle|>` - `codestral` - Codestral format: `[SUFFIX]suffix[PREFIX]prefix` - `glm` - GLM-4 format with code markers -- `sweep` - [Sweep rewrite-window](https://blog.sweep.dev/posts/oss-next-edit) format using `<|file_sep|>` file blocks for related files, `original/...`, `current/...`, and `updated/...`. +- `sweep` - [Sweep Next Edit](https://huggingface.co/sweepai/sweep-next-edit-1.5B/blob/main/run_model.py) rewrite-window format using `<|file_sep|>` file blocks for related files, `original/...`, `current/...`, and `updated/...`. - `infer` - Auto-detect from model name (default) With `"prompt_format": "infer"`, Zed automatically uses Zeta 2 format for models named `zeta2` and Zeta 2.1 format for models named `zeta2.1`. diff --git a/docs/src/completions.md b/docs/src/completions.md index 81c2efa3514..9f81ffc4df0 100644 --- a/docs/src/completions.md +++ b/docs/src/completions.md @@ -8,7 +8,7 @@ description: Zed's code completions from language servers and edit predictions. Zed supports two sources for completions: 1. "Code Completions" provided by Language Servers (LSPs) automatically installed by Zed or via [Zed Language Extensions](languages.md). -2. "Edit Predictions" provided by Zed's own Zeta model or by external providers like [GitHub Copilot](#github-copilot). +2. "Edit Predictions" provided by Zed's own Zeta model or by external providers like [GitHub Copilot](./ai/edit-prediction.md#github-copilot). ## Language Server Code Completions {#code-completions} diff --git a/docs/src/development/release-notes.md b/docs/src/development/release-notes.md index fdd9fc9f60f..e7b83dccf9a 100644 --- a/docs/src/development/release-notes.md +++ b/docs/src/development/release-notes.md @@ -15,10 +15,10 @@ Release Notes: - N/A _or_ Added/Fixed/Improved ... ``` -On Wednesdays, we run [`get-preview-channel-changes`](https://github.com/zed-industries/zed/blob/main/script/get-preview-channel-changes), which collects `Release Notes` lines from pull requests landing in preview, as described in the [Release](https://zed.dev/docs/development/release-notes) docs. +On Wednesdays, we collect the `Release Notes` lines from pull requests landing in preview to compile the release notes. -The script outputs everything below the `Release Notes` line, including metadata such as the pull request author (if they are not a Zed team member) and a link to the pull request. -If you use `N/A`, the script skips your pull request entirely. +Everything below the `Release Notes` line is included, along with metadata such as the pull request author (if they are not a Zed team member) and a link to the pull request. +If you use `N/A`, your pull request is skipped entirely. ## Guidelines for crafting your `Release Notes` line(s) diff --git a/docs/src/extensions/languages.md b/docs/src/extensions/languages.md index 633130bd507..e1edbc590b7 100644 --- a/docs/src/extensions/languages.md +++ b/docs/src/extensions/languages.md @@ -31,7 +31,7 @@ line_comments = ["# "] - `line_comments` is an array of strings that are used to identify line comments in the language. This is used for the `editor::ToggleComments` keybind: {#kb editor::ToggleComments} for toggling lines of code. - `tab_size` defines the indentation/tab size used for this language (default is `4`). - `hard_tabs` whether to indent with tabs (`true`) or spaces (`false`, the default). -- `first_line_pattern` is a regular expression that can be used alongside `path_suffixes` (above) or `file_types` in settings to match files that should use this language. For example, Zed uses this to identify Shell Scripts by matching [shebang lines](https://github.com/zed-industries/zed/blob/main/crates/languages/src/bash/config.toml) in the first line of a script. +- `first_line_pattern` is a regular expression that can be used alongside `path_suffixes` (above) or `file_types` in settings to match files that should use this language. For example, Zed uses this to identify Shell Scripts by matching [shebang lines](https://github.com/zed-industries/zed/blob/main/crates/grammars/src/bash/config.toml) in the first line of a script. - `debuggers` is an array of strings that are used to identify debuggers in the language. When launching a debugger's `New Process Modal`, Zed will order available debuggers by the order of entries in this array.