From 15047abf271f8705139e2bca056846db731c683c Mon Sep 17 00:00:00 2001 From: Nick Vigilante Date: Mon, 30 Nov 2026 16:52:49 -0500 Subject: [PATCH] docs: fix broken anchors, extra H1s and an unclosed code span (#8149) * docs: fix three broken anchors and an unclosed code span The guide linked Let's Encrypt to #let-encrypt, the install page linked Termux to #installation and the iPad page linked its ctrl+c workaround to #ctrl-c-workaround; none of those headings exist, so each link landed at the top of the page. Point them at the headings they mean. The Svelte proxy step in the guide also opened a code span it never closed, which rendered the rest of the line as code. Assisted-by: AI * docs: give each page a single top-level heading The Android page had one H1 per install method, the Helm page made Extra Containers an H1 beside its configuration sections, and the code of conduct repeated its title below the doctoc title. A second H1 reads as a second page title to screen readers and search engines, and a docs site that uses the first H1 as the page title leaves the others as stray titles in the body. Android now has an Android title with one section per method, and its manifest description names both methods. Extra Containers is a section of the Helm page. The code of conduct keeps the doctoc title, as the other doctoc pages do, and its table of contents loses the nesting under the removed heading. Assisted-by: AI * docs: restore the search descriptions of four key pages coder.com's previous code-server docs renderer carried hand-written search descriptions for the home, install, setup guide and FAQ pages. The new renderer reads a page's description from its front matter and falls back to the shorter manifest description, so those four would otherwise lose them. Add them as front matter, as they were published (with "a iPad" corrected). Prettier and doctoc both leave the front matter in place. Assisted-by: AI --- docs/CODE_OF_CONDUCT.md | 15 ++++++--------- docs/FAQ.md | 4 ++++ docs/README.md | 4 ++++ docs/android.md | 6 ++++-- docs/guide.md | 8 ++++++-- docs/helm.md | 2 +- docs/install.md | 6 +++++- docs/ipad.md | 2 +- docs/manifest.json | 2 +- 9 files changed, 32 insertions(+), 17 deletions(-) diff --git a/docs/CODE_OF_CONDUCT.md b/docs/CODE_OF_CONDUCT.md index 168eac481..4f0b43e13 100644 --- a/docs/CODE_OF_CONDUCT.md +++ b/docs/CODE_OF_CONDUCT.md @@ -3,19 +3,16 @@ # Contributor Covenant Code of Conduct -- [Contributor Covenant Code of Conduct](#contributor-covenant-code-of-conduct) - - [Our Pledge](#our-pledge) - - [Our Standards](#our-standards) - - [Our Responsibilities](#our-responsibilities) - - [Scope](#scope) - - [Enforcement](#enforcement) - - [Attribution](#attribution) +- [Our Pledge](#our-pledge) +- [Our Standards](#our-standards) +- [Our Responsibilities](#our-responsibilities) +- [Scope](#scope) +- [Enforcement](#enforcement) +- [Attribution](#attribution) -# Contributor Covenant Code of Conduct - ## Our Pledge In the interest of fostering an open and welcoming environment, we as diff --git a/docs/FAQ.md b/docs/FAQ.md index c492c73b2..50432d6f6 100644 --- a/docs/FAQ.md +++ b/docs/FAQ.md @@ -1,3 +1,7 @@ +--- +description: "Answers to all your FAQs: Learn how to expose code-server, use it on an iPad, install extensions, debug issues and more." +--- + diff --git a/docs/README.md b/docs/README.md index d52598494..bf306912d 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,3 +1,7 @@ +--- +description: "Learn how to install and run code-server using VS Code. Start here and access all documentation for code-server today!" +--- + # code-server [!["GitHub Discussions"](https://img.shields.io/badge/%20GitHub-%20Discussions-gray.svg?longCache=true&logo=github&colorB=purple)](https://github.com/coder/code-server/discussions) [!["Join us on Slack"](https://img.shields.io/badge/join-us%20on%20slack-gray.svg?longCache=true&logo=slack&colorB=brightgreen)](https://coder.com/community) [![Twitter Follow](https://img.shields.io/twitter/follow/CoderHQ?label=%40CoderHQ&style=social)](https://twitter.com/coderhq) [![Discord](https://img.shields.io/discord/747933592273027093)](https://discord.com/invite/coder) [![See latest](https://img.shields.io/static/v1?label=Docs&message=see%20latest&color=blue)](https://coder.com/docs/code-server/latest) diff --git a/docs/android.md b/docs/android.md index 4541bc7b5..f97442f12 100644 --- a/docs/android.md +++ b/docs/android.md @@ -1,4 +1,6 @@ -# Running code-server using UserLAnd +# Running code-server on Android + +## Using UserLAnd 1. Install UserLAnd from [Google Play](https://play.google.com/store/apps/details?id=tech.ula&hl=en_US&gl=US) 2. Install an Ubuntu VM @@ -22,7 +24,7 @@ nvm use 24 9. Run code-server with `code-server` 10. Access on localhost:8080 in your browser -# Running code-server using Nix-on-Droid +## Using Nix-on-Droid 1. Install Nix-on-Droid from [F-Droid](https://f-droid.org/packages/com.termux.nix/) 2. Start app diff --git a/docs/guide.md b/docs/guide.md index c661caae6..9df08f112 100644 --- a/docs/guide.md +++ b/docs/guide.md @@ -1,3 +1,7 @@ +--- +description: "A comprehensive guide for developers to securely access and expose code-server. Learn about SSH port forwarding, Let's Encrypt, HTTPS and more." +--- + @@ -64,7 +68,7 @@ doesn't require any additional setup at all. The downside to SSH forwarding, however, is that you can't access code-server when using machines without SSH clients (such as iPads). If this applies to you, -we recommend using another method, such as [Let's Encrypt](#let-encrypt) instead. +we recommend using another method, such as [Let's Encrypt](#using-lets-encrypt-with-caddy) instead. > To work properly, your environment should have WebSockets enabled, which > code-server uses to communicate between the browser and server. @@ -460,7 +464,7 @@ const config = { } ``` -3. Access app at `/absproxy/5173/` e.g. `http://localhost:8080/absproxy/5173/ +3. Access app at `/absproxy/5173/` e.g. `http://localhost:8080/absproxy/5173/` For additional context, see [this Github Issue](https://github.com/sveltejs/kit/issues/2958) diff --git a/docs/helm.md b/docs/helm.md index 7f48f874c..2191fd06a 100644 --- a/docs/helm.md +++ b/docs/helm.md @@ -124,7 +124,7 @@ $ helm upgrade --install code-server ci/helm-chart -f values.yaml > **Tip**: You can use the default [values.yaml](../ci/helm-chart/values.yaml) -# Extra Containers +## Extra Containers There are two parameters which allow to add more containers to pod. Use `extraContainers` to add regular containers diff --git a/docs/install.md b/docs/install.md index fd0a17a8e..8e8946116 100644 --- a/docs/install.md +++ b/docs/install.md @@ -1,3 +1,7 @@ +--- +description: "Easily install code-server on any platform with our straightforward instructions, offering multiple methods for different OS and distributions." +--- + @@ -304,7 +308,7 @@ If you see an error related to `node-gyp` during installation, See [#5174](https ## Termux -Please see code-server's [Termux docs](./termux.md#installation) for more +Please see code-server's [Termux docs](./termux.md#install) for more information. ## Uninstall diff --git a/docs/ipad.md b/docs/ipad.md index ef951cc4e..0d06ba495 100644 --- a/docs/ipad.md +++ b/docs/ipad.md @@ -122,7 +122,7 @@ and tricks helpful: - `ctrl+c` does not stop a long-running process in the browser - Tracking upstream issue here: [#114009](https://github.com/microsoft/vscode/issues/114009) - - See [workaround](#ctrl-c-workaround) + - See [workaround](#workaround-for-issue-with-ctrlc-not-stopping-a-running-process-in-the-terminal) Additionally, see [issues in the code-server repo that are tagged with the `os-ios` label](https://github.com/coder/code-server/issues?q=is%3Aopen+is%3Aissue+label%3Aos-ios) diff --git a/docs/manifest.json b/docs/manifest.json index 4e82dcd7d..78dd1edc8 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -59,7 +59,7 @@ }, { "title": "Android", - "description": "How to run code-server on an Android device using UserLAnd.", + "description": "How to run code-server on an Android device using UserLAnd or Nix-on-Droid.", "path": "./android.md" } ]