The website for neode.sk: the landing page on neode.sk and the documentation
on docs.neode.sk. npm run build turns this folder into static files in
dist/, which any web server can host.
The build is TypeScript that Node runs directly, without a compile step. It needs Node 22.18 or newer, which strips the types itself.
npm install # once
npm run build # writes dist/, the same as node build.ts
npm run serve # builds, then serves dist/ on http://localhost:4173
npm run typecheck # checks the types with tsc; it writes nothingnode build.mjs still works and runs build.ts.
The build stops with a list of problems when a check fails. See Checks for what it looks at.
content/docs/<section>/<page>.md the documentation
content/docs/<section>/<page>/<child>.md a page under another page
content/screenshots/<name>-dark.png, <name>-light.png
src/home.html the landing page; its install tabs come from src/install.ts
src/install.ts the install commands of the landing page and llms.txt
src/sponsors.ts the sponsors in the bar under the landing page's hero; their logos are in public/img/sponsors/
src/og.ts the link preview images
src/layout.ts the frame around every docs page, and the docs index
src/chrome.ts the header and footer of every page, home page included
src/chrome.css their styles; the build puts them in front of site.css and into the home page
src/brand.ts the brand page (/brand/, /de/brand/), its text in each language
src/brand.css its styles; the build adds them to docs.css
src/download.ts the download page (/download/, /de/download/), its text in each language
src/download.css its styles; the build adds them to docs.css
src/client-release.ts which client release the download page offers, and what each file is
src/client-release.json the client release the last build read from GitHub, the fallback
src/detect.ts which file the download page recommends for the visitor's system
test/ unit tests of the header, the release choice and the detection (npm test)
download-test.ts checks the download page in a headless browser
a11y-test.ts checks accessibility in a headless browser: axe-core, keyboard, screen reader states
src/zip.ts writes the zip of the logo files
public/brand/files/ the owner's logo files, copied unchanged from .ui-rework/brand
src/checks.ts the checks on the built site
src/types.ts the shapes the build passes around
src/site.css fonts, colours and base styles
src/docs.css the docs layout
src/docs.js search, copy buttons, "On this page", the sidebar panel on phones
public/ copied to dist/ as is (web fonts, images, favicon)
fonts/ the TrueType fonts the build itself uses, not served
site.config.ts site address, repository, sections and their order
build.ts the generator
deploy.sh builds for beta or production and uploads to the web server
shots.json the console screenshots: page, steps to reach the state, annotations
shots.ts takes every screenshot in light and dark from a running console
release-card.ts draws the card at the top of a release's notes, from git
cli-reference.ts writes the command reference from the server's clidocs output
search-test.ts checks in a headless browser that search finds the expected pages
src/search.ts the search index and its check
public/img/releases/ the images of the release notes, one folder per tag
SITE_URL=https://beta.neode.sk node build.ts builds for another address.
npm run serve builds for http://localhost:4173 unless SITE_URL is set.
DIST_DIR=<folder> writes the build there instead of dist/.
ND_VERSION=3.6.0 sets the version by hand; without it the build reads the
newest published release of neodeskapp/neodesk, pre-releases included. DOCS_DIR=<folder> builds another content folder.
The docs are on their own host, docs.neode.sk, without /docs in the path:
https://docs.neode.sk/getting-started/docker/ and
https://docs.neode.sk/de/getting-started/docker/. Everything else is on
neode.sk. Both come from one build and one deployment:
dist/docs/is the docs host's root, with German underdist/docs/de/. It has its own404.html,de/404.html,search.json,de/search.json,sitemap.xmlandrobots.txt.- The docs host serves
/assets/,/fonts/,/img/,/og/and the llms files fromdist/, the www host's root, so they exist once. docsUrlinsite.config.tssays where the docs are on production. A build for any other address keeps them under/docson that host (https://beta.neode.sk/docs/getting-started/docker/, German under/docs/de/), so the beta needs no second name or certificate.DOCS_URLoverrides both.
Inside the build a page keeps its logical address, the one from before the
move: /docs/getting-started/docker/, /de/docs/getting-started/docker/.
src/urls.ts turns it into the address on the right host. Links between docs
pages and to the other host are absolute, so a docs page also works when it is
reached at its old address. Every old address on neode.sk redirects to the docs
host with a 301; the web server's rule is the same mapping:
/docs/<path> to https://docs.neode.sk/<path> and /de/docs/<path> to
https://docs.neode.sk/de/<path>.
When a docs page gets another address, put its old slug and the new one in
redirects in site.config.ts. After its checks pass, the build writes a
page at the old address in every language that sends the visitor on to the
new one at once, with the hash, and lists every old address with its new one
in dist/redirects.txt, one pair per line. The web server should answer
each old address there with a 301 to the new one; until it does, the pages
do the job. Move the page's ids in content/anchors.json to the new slug,
so links to a heading of the old page still land on it. The build stops when
an old address is a page again or leads to no page.
A new section needs a folder under content/docs and an entry in
site.config.ts. Docs pages get an "Edit on GitHub" link and an "Updated"
date once content/docs is in a git repository and editBase in
site.config.ts points at it.
/brand/ and /de/brand/ on the www host show the logo files, clear space and
size, what not to do, the colours, the fonts, the name, the voice and how to
name RustDesk. The text is in src/brand.ts and comes from
.ui-rework/brand/BRAND.md; what BRAND.md does not say is not on the page.
The files in public/brand/files/ are the owner's artwork as it is: copy new
ones over from .ui-rework/brand, never edit, re-export or rescale them. The
build packs the folder into /brand/neodesk-logo.zip, the same bytes for the
same files. The examples of what not to do are the real logo file with CSS on
top (src/brand.css).
A right-click on the logo in the header opens the brand page in the page's
language; a left click still goes home. The context menu key and Shift+F10 keep
the browser's menu. The script for it is part of the header in src/chrome.ts.
/download/ and /de/download/ on the www host offer NeoDesk Desktop and
NeoDesk Companion. The first screen has Desktop's file for the visitor's
computer next to a notice about phone scams; below it every file of Desktop's
release by system, with its size and SHA-256, the package repository's
commands, the Companion's files, and what the apps need.
The build reads the releases of neodeskapp/neodesk-client from the GitHub API
(clientReleasesUrl in site.config.ts) and each release's SHA256SUMS, and
stops when a hash there differs from the one GitHub computed. Desktop's tags
are desktop-v<version>; the Companion's are companion-v<version>, and its
support-v<version> releases from before the rename count as the Companion's
too, in one line of versions. fileOf knows both apps' file names, old and
new. pickRelease in src/client-release.ts chooses, for each app: a final
release wins over a newer release candidate, which the page then shows under "Preview"; while there is no final
release, the newest candidate is offered and marked "Release candidate, for
testing". A build that read GitHub records the result in
src/client-release.json (not in CI), and a build that can't reach GitHub uses
that file. ND_CLIENT_RELEASES=<file> reads the list from a file in the API's
shape instead, to try the page with other releases.
The recommendation runs in the browser. src/detect.ts reads the system from
the user agent and, where the browser has navigator.userAgentData, the
processor; the build puts its two functions into the page's script as they
are. The page has a hidden block for every recommendation the script can make,
and the script shows one; nothing is sent anywhere. Safari and Firefox on a Mac
don't say the processor, so the page offers both disk images with a line on
how to tell. Without scripts the page shows "Pick your system" and the full
list.
npm test runs the unit tests of both choices. node download-test.ts checks
the built page in a headless browser, as search-test.ts does: the primary
button for emulated Windows, macOS, Linux and iPhone browsers, every file
linked without scripts, and the scam notice on the first screen at 1280 by 800
and within two screens at 390 by 844.
The pages load WOFF2 fonts only, and preload the ones the first screen needs.
IBM Plex Sans and Mono are Latin subsets already. public/fonts/FunnelDisplay-latin.woff2
is the Latin subset of fonts/FunnelDisplay.ttf, the brand font file as it is,
with every glyph and the weight axis kept. Make it again after a font change:
python -m fontTools.subset fonts/FunnelDisplay.ttf --unicodes="U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD" --layout-features='*' --flavor=woff2 --output-file=public/fonts/FunnelDisplay-latin.woff2The build turns every screenshot and every PNG in public/img into a lossless
WebP (with sharp), the same pixels in about a third of the bytes, and the pages
show it with the PNG as fallback. A lossless AVIF came out larger than the PNG,
so there is none. Converted files are kept in .cache/, so a build converts
only new or changed images.
The home page's first screen shows public/img/hero-console-*.png and
hero-client-*.png, the console's device list and NeoDesk Desktop's window
over the mark, at least twice their largest shown size. Their WebP is lossy at quality 88,
plus a copy at half the width (-half.webp) for narrow screens, and the page
preloads the console's on wide screens, where it is the largest thing on the
first screen. The console is the public demo, demo.neode.sk, taken as its
administrator, so no read-only notice shows: /devices at 1280 by 760 at 2x, cut to the page beside
the sidebar and scaled to 1600 px. The client is a rendered test screen of the client
repository at 2x (client-home-default in flutter/test/nd/home_screens_test.dart),
scaled to 1100 px. Take both again when either looks different.
The other console pictures of the home page (devices-*, detail-*,
overview-*) come from the published server image in a local Docker container,
filled with the server repository's devseed demo and renamed to the sample company Fernhill IT. They
are taken at a device scale of 2.5 (the device list, shown up to 1400 px wide)
or 2, so every picture has at least two pixels per CSS pixel at its largest
size. Take them at the scale itself rather than scaling a larger picture down:
a scaled picture is several times larger as lossless WebP.
Every page gets a 1200 by 630 PNG for link previews, at /og/ plus the page's
address: /og/docs/getting-started/docker.png, /og/index.png for the home
page. src/og.ts draws them from SVG templates with resvg, with the fonts in
fonts/ and no system fonts, so every machine draws the same picture. An
image shows the logo and the page's title in large type, and no other text.
The templates:
landing: the home page, the docs index and the section pages, next to the large mark.docs: every docs page, with the mark in the corner.comparison: "NeoDesk vs" and the product, as text. A page asks for it withog: comparisonandproduct: <name>in its front matter.use-case:og: use-case; it looks likedocs.release: the version large, then the title.og: release, andrelease: <version>for another version than the current one.
A title takes at most three lines (two under the first line in comparison
and release), as even as they go, at the largest size that fits. A second
line counts as 15 % smaller, a third as 20 % smaller again, and a word broken
after its hyphen as 20 % smaller, so a title stays on fewer lines, and a
word whole, when that costs little size. A word breaks after a hyphen only
when it is wider than the room on its own. When a title needs
more lines, or runs into the logo, the mark or the margins, even at the
template's smallest size, the build stops and names the page; shorten the
title. An image is drawn again only when its title or the template
(src/og.ts, the fonts, the logo) changed; the drawn images are kept in
.cache/og/.
/og/ itself is a page that shows every image with its title, plus the
templates no page uses yet with sample text. It is noindex, not in the
sitemap, and linked from nowhere.
resvg ignores the weight axis of a variable font, so fonts/ holds static
instances, made from the variable fonts without other changes:
python -m fontTools.varLib.instancer fonts/FunnelDisplay.ttf wght=700 --static --update-name-table -o fonts/FunnelDisplay-Bold.ttf
python -c "from fontTools.ttLib import TTFont; t = TTFont('public/fonts/IBMPlexSans-latin.woff2'); t.flavor = None; t.save('plex.ttf')"
python -m fontTools.varLib.instancer plex.ttf wght=400 --static --update-name-table -o fonts/IBMPlexSans-Regular.ttf
python -m fontTools.varLib.instancer plex.ttf wght=600 --static --update-name-table -o fonts/IBMPlexSans-SemiBold.ttfThe first image in a release's notes is a card drawn by drawReleaseCard in
src/og.ts: the version, a title, the date, and the release's commits, files
changed, lines added and removed and fixes against the release before, counted
from git. release-card.ts draws it into public/img/releases/<tag>/card.png,
next to the release's screenshots:
node release-card.ts ../neodesk v3.6.0-rc.2 "The first release as NeoDesk" --note "The numbers include the rename of the project."
node release-card.ts ../neodesk-client desktop-v1.6.0-rc.1 "The apps have new names" --previous desktop-v1.5.0 --product "NeoDesk Desktop" --accent limeIt compares with the tag before by default; name the release with
--previous when the tag before it was never published. The notes link the
images by commit, as
https://raw.githubusercontent.com/neodeskapp/website/<commit>/public/img/releases/<tag>/card.png.
The pages under /docs/command-line/reference/ come from the server's own
generator, which reads the command table the neodesk command line runs on.
Don't edit them by hand; make them again after a release that changes commands:
cd ../neodesk/neodesk-server && go run ./cmd/clidocs -out /tmp/clidocs -version 3.6.0-rc.4
node cli-reference.ts /tmp/clidocsclidocs writes index.md, a page per command group, excluded.md and
commands.json. cli-reference.ts turns them into
content/docs/command-line/reference.md, one page per group under
content/docs/command-line/reference/ and routes-left-out.md, and the same in
German, where the title, description and intro are German and the commands stay
English, as the command line prints them. A new group needs its German summary
in GERMAN in the script, or the script stops. Each run makes the folders new
and drops these pages' recorded heading ids from content/anchors.json, so the
next build records the ids of the commands that exist now. The hand-written pages
of the section are not touched.
English is the default and lives at the root; German lives under /de/.
src/i18n.ts lists the languages with their prefix and holds the words of the
frame around the docs pages, section names included. src/home.ts holds the
words of the home page, whose layout, styles and script are in src/home.html;
the install notes in src/install.ts have one text per language. A language
gets pages only once it has every string in all three; until then the build
stops with the list of missing strings.
A translated docs page goes into content/<code>/docs/ with the same path as
the English one, for example content/de/docs/getting-started/docker.md. Every
heading of a translated page keeps the English page's id with {#id}, so a
link to a heading reads the same in every language:
## Mit dem Skript installieren {#install-with-the-script}Links inside a translated page name the English address, /docs/...; the
build turns them into the German page's address. Every English page needs its German
version: the build stops and names each page that has none.
Every page lists its language versions with hreflang, plus x-default for
the English one, and its language switch leads to the same page in the other
language. Each language has its own home page, search index
(docs.neode.sk/de/search.json), 404 page on each host, Markdown copies and
link preview images (/og/de/...). The web server sends /404.html for every
address that does not exist; serving /de/404.html under /de/ needs a rule
there, on each host. The llms
files stay in English: they are one set of files at the root for AI tools,
and every German page's Markdown copy is next to it as for English.
The German text says "du" to the reader. The console's own German says "Sie"; where a page quotes a console message, it quotes it as the console words it.
- The docs index with every section, a page per section with its pages, and one page per Markdown file, with the sidebar, the "On this page" list, breadcrumb, and previous and next links that follow the sidebar across sections.
- Search (
/or Ctrl+K) over every page, every##and###heading, every command of the command reference with its flags, and every setting or flag a table names in its first column (RELAY_SERVERS,--domain). Results come in groups: pages, sections, commands, settings and flags.src/search.tsbuilds one index per language at build time,search.jsonandsearch.json.gzon the docs host (de/search.jsonfor German);docs.jsloads it the first time search opens, gzipped where the browser can unpack it, and searches it in the browser. The build prints its size. Without scripts the search button is a link to/all/, a list of every page. /all/(/de/all/): every page of the docs by section, the command reference included, with its Markdown copy at/all.md.- A Markdown copy of every page at the page's address plus
.md, and files for AI tools:/llms-full.txtwith every page, one file per section (/llms-getting-started.txtand so on), and/llms.txt, which lists all of them with their sizes and every page./llms.txtstarts with a section for AI agents: the one-line installs fromsrc/install.tsand the agent tools fromsrc/agents.ts. A tool there stays out of every published file while itsavailableis false; set it to true, with adocspage, once it ships. sitemap.xml,robots.txt,404.htmlandde/404.htmlfor each host.
The build checks the pages as it reads them and the files it wrote to
dist/, and stops when one fails:
- Links: every link between docs pages, every heading a link names, and every screenshot exist.
- The old name: no BetterDesk, betterdesk, trybetterdesk, betterde.sk or
UNITRONIX in the built pages,
.mdcopies, llms files, search index, scripts, styles and SVGs, and no old image path (ghcr.io/<owner>/betterdesk...).OLD_NAME_ALLOWinsrc/checks.tslists the only sentences that may name them, each on its own page, in English and German: the notices on the license page and the copyright policy on the contributing page. When one of those sentences changes, change it there too.OLD_NAME_PAGESlists the pages about the old project (the BetterDesk comparison), which may name it anywhere; elsewhere only the links to them may, such as the sidebar, the pager, lists of pages and the llms files. - The console port: 21114 is the server's API port on Linux and Windows. A sentence that names 21114 with the console, the browser or signing in, but not the API, fails.
- The version: every "NeoDesk X.Y.Z", "neodesk-server X.Y.Z" and
softwareVersionmust name the version the build was made for, and no{{VERSION}}may be left. - Without scripts:
src/html.tsparses every built page, without a browser. The main content and a navigation with links must not be empty, no code block may be empty, docs pages need their sidebar, and every tab needs a panel of its own with content. Scripts may hide and show what is in the HTML, but must not add content. - Buttons: every button has an aria-label or text of its own. Text inside a child element does not count, because the styles may hide it: the search button shows only its icon on small screens.
- Indexing: on neode.sk, each host's
robots.txtallows everything and names each AI crawler inaiCrawlersinsite.config.tsas allowed, and only the 404 page says noindex. A build for any other address, such as beta.neode.sk, puts noindex on every page (the beta's web server also sendsX-Robots-Tag: noindex). - Languages:
<html lang>matches the page's address, every page links to itself and tox-defaultwithhreflang, and every language version it names exists and names it back. A language with pages must have all its strings. Every page of the English site has its German version at the same address under/de/(the/og/contact sheet excepted). - Structured data: the home page has a JSON-LD SoftwareApplication with name,
license, operating systems, version, download address and a free offer, the
Organization with its logo, Discord and GitHub, and a FAQPage whose every
question is a heading of the page; every docs page a TechArticle with
dateModifiedand a BreadcrumbList that ends at the page; a page withhowtoa HowTo whose every step leads to a heading of the page and has plain text. The two sitemaps together list every page that has a canonical address, each on its own host's sitemap with its language versions andx-default, each withlastmod: a page's date is the last commit of its file, a list's the newest of its pages. Without git history (a shallow clone) every date is the same commit, so CI needs the full history. - Heading ids: see Heading ids.
- Install commands: every command in
src/install.ts, which the landing page and llms.txt show, is in a code block of the same language on its docs page. The landing page's list of client ports comes from the table on the ports page: the rows RustDesk clients connect to that say Yes under "Open to the internet". - SEO: every page has a title of at most 60 characters that no other page in
its language has, a meta description of at most 155, exactly one h1, no
skipped heading level, a canonical link (the 404 page excepted), alt, width
and height on every image, a WebP version of every PNG, a preloaded WOFF2
font and only WOFF2 in
@font-face. Every link, file and anchor inside the site exists, and every page is linked from another one. A section whose intro is longer than 155 characters gets adescriptioninsite.config.ts. - Link previews: every page that may be indexed has og:title, og:description,
og:url (its canonical address), og:type, og:image with width, height and
alt, og:site_name, og:locale and
twitter:cardsummary_large_image. Its image exists, is a PNG of 1200 by 630 under 300 KB, and is its own; no two pages share a title. The title on the image fits in three lines and stays inside its box, measured as resvg draws it. - "Copy as Markdown": every docs page and section page has it next to the
h1, a plain link to the page's own
.mdcopy, which must exist. With scripts a click copies the Markdown; without them the link opens it. - Files for AI tools: llms.txt starts with "For AI agents", lists every
llms-*.txtwith its size in KB, every page is in exactly one section file, and no agent tool that is not available is named anywhere. - Commands (
src/commands.ts): every block has a language, no block has a shell prompt ($,PS C:\>), a command the text asks the reader to run is in a block of its own, and placeholders follow the rule under Code. The inline code of a page withquoted: trueis NeoDesk's own and exempt.
The build stops when a page, or a command of the command reference, is not in
its language's search index. npm run test:search types sample queries into
the search of the built site in a headless Chromium and checks that the
expected page comes first, in English and German, and that a right-click on
the logo opens the brand page. It answers every request from
dist/, so it works on a build for any address; set SITE_URL and DOCS_URL
as for that build; with LIVE=1 it searches the deployed site at that
address instead. It needs Playwright, as shots.ts does. The queries are in
CASES in search-test.ts.
The pages aim at WCAG 2.2 AA. The build checks the markup: a skip link on every
page, headings that aren't links to themselves, aria-label only where it names
something, names that hold the visible label, named header cells, breadcrumbs
and scroll regions, and file and screenshot links that say what they open.
npm run test:a11y runs a11y-test.ts on the built
site in a headless Chromium: axe-core on sample pages at 320 and 1280 px in
light and dark, and what axe can't see, such as the search dialog as a
combobox with its result count announced once, copy buttons that say they
copied, the sidebar panel on phones keeping focus, reflow at 320 px with text
spacing, target sizes and forced colours. Give it names of checks to run only
those (node a11y-test.ts search sidebar). Like search-test.ts it answers
every request from dist/; it needs Playwright and axe-core (AXE_FILE, the
path of axe.min.js, or the axe-core package).
The light theme's code blue (#1f6feb on the code background #f4f6f6, 4.27:1) stays as the brand has it; the accessibility statement names it, and the test leaves out exactly that pair.
A page is a Markdown file with front matter:
---
title: Install with Docker
description: Run the server and the web console in one container, built from the repository.
order: 2
---
One or two sentences that say what the page covers and who needs it.
## First headingtitlebecomes the page'sh1, so the body has no#heading. Start with a short introduction, then##sections. Use###inside a section when it needs parts. Headings are sentence case.descriptionis one sentence. It shows under the title on section pages, in search results and in link previews.ordersorts the page in its section, starting at 1.fold: trueon a page with children lists the children in the sidebar only on that page and its children; the section page and the docs index leave them out. The command reference uses it for its 60 pages.quoted: truesays the page quotes NeoDesk's own help text, so its inline code may keep NeoDesk's placeholders (--file PATH,{id}); see Code. Only the generated command reference needs it.seoTitleis the whole<title>, at most 60 characters, for a page whose title alone is not what people search for:seoTitle: Install NeoDesk with Docker: a RustDesk-compatible server. The h1, the sidebar and the link preview keeptitle. A translation sets its own.relatedlists docs pages, by address and comma-separated, that the page shows under "See also" with their descriptions. Use it where a reader usually goes next, not to link everything. Translations take the English page's list.howtolists, comma-separated, the ids of the headings that are the page's steps, in order. The page then gets HowTo structured data: each step with its heading, address and first paragraph. Only for a page whose sections really are steps, such as an install page. Translations take the English page's list.
The short answers under "Questions" on the home page, and under "Quick
answers" in llms.txt, are in src/answers.ts, one list per language. Keep
them true of the docs and end each with the page that has the details.
Link to other docs pages by their address, without .md and without a trailing
slash, and to a heading with its id (the heading in lower case, spaces as
hyphens, punctuation dropped):
See [Ports](/docs/operations/ports) and
[the enrollment modes](/docs/console/enrollment#enrollment-modes).A heading's id comes from its text, as above. Ids stay: content/anchors.json
records every id a build has seen, and the build stops when one of them no
longer leads to its page. When you rename a heading that others may link to,
keep the old id as an alias, and the page answers to both:
## Change a port {alias=changing-a-port}{#id} at the end of a heading sets its id by hand, and the two combine:
{#change-a-port alias=changing-a-port,ports}. Links inside the docs use the
current id; the build stops on a link to an alias. The build adds new ids to
content/anchors.json itself (not in CI); commit the file with the pages. To
retire an id for good, delete it from the file.
For something the reader must not miss. A note is a block of its own, and there are two kinds:
::: note
The console listens on plain HTTP. Put a reverse proxy with TLS in front of it
before you open it to the internet.
:::
::: warning
This deletes the device's history. It cannot be undone.
:::Use them rarely: most pages need none.
Screenshots are in content/screenshots/ in a dark and a light version.
shots.ts retakes them from a running console, as shots.json describes
each one; ND_ADMIN_PASSWORD_FILE=<file> node shots.ts [name ...]. A run of
every shot deletes the ones shots.json no longer names. It needs
Playwright with Chromium (npm install --no-save playwright and
npx playwright install chromium, or PLAYWRIGHT_MODULE pointing at an
installed copy). Write
the name without the theme, and the page shows the one that fits the reader's
theme:
The alt text says what the picture shows, in one sentence.
A shot that would show a secret, such as the QR code of a two-factor set-up,
hides it with a mask annotation. A password a shot types goes in as
env:NAME and comes from that environment variable, never from shots.json.
Fence code with its language (bash, powershell, yaml, nginx, ini,
json, sql, caddy, fstab, text). Every block but text gets a copy
button, so put only what the reader should paste into it, without a $ prompt.
Put output in a separate text block.
Every command the reader runs goes into a fenced block of its own, not into a
sentence: "Recreate the container:" and the command in a block, not "run
docker compose up -d". A command may stay inline where the text names it
rather than asks for it to be run: "docker compose ps shows the container as
healthy".
Write placeholders as <lower-case-with-hyphens>, for example
<server-address>, and say right before or after the block what goes in:
"Put your server's address in place of <server-address>." No YOUR_TOKEN,
PASSWORD, {id}, /path/to/, --flag FILE, change-this-password, and no
example.com hosts or example IP addresses in blocks the reader pastes. A
block that shows exactly what NeoDesk prints, with NeoDesk's own placeholder,
is marked quoted after the language (```powershell quoted).
{{VERSION}} anywhere in a page becomes the current NeoDesk version.
Use a table for reference material such as settings and ports, with the name in the first column. Don't use one for prose.
- Plain words, short sentences, active voice. Say what the reader does and what they see.
- Use the console's own words for pages, buttons and settings, in bold when the reader has to find them: open Devices, then Enrollment requests.
- Backticks only for what the reader copies or types: commands, paths, settings names, addresses.
- Write only what is true of the code in this repository today. No "coming soon", no history of how a feature came to be.
- No marketing tone, no exclamation marks, no em dashes.