Files
code-server/docs/android.md
T
Nick Vigilante 15047abf27 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
2026-11-30 16:52:49 -05:00

34 lines
964 B
Markdown

# 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
3. Start app
4. Install Node.js and `curl` using `sudo apt install nodejs npm curl -y`
5. Install `nvm`:
```shell
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
```
6. Exit the terminal using `exit` and then reopen the terminal
7. Install and use Node.js 24:
```shell
nvm install 24
nvm use 24
```
8. Install code-server globally on device with: `npm install --global code-server`
9. Run code-server with `code-server`
10. Access on localhost:8080 in your browser
## Using Nix-on-Droid
1. Install Nix-on-Droid from [F-Droid](https://f-droid.org/packages/com.termux.nix/)
2. Start app
3. Spawn a shell with code-server by running `nix-shell -p code-server`
4. Run code-server with `code-server`
5. Access on localhost:8080 in your browser