Skip to content

docs(desktop): document deep-link URL schemes#3373

Merged
bartlomieju merged 4 commits into
mainfrom
docs/desktop-deep-links-and-fixes
Jun 30, 2026
Merged

docs(desktop): document deep-link URL schemes#3373
bartlomieju merged 4 commits into
mainfrom
docs/desktop-deep-links-and-fixes

Conversation

@bartlomieju

Copy link
Copy Markdown
Member

Documents the new desktop.app.deepLinks configuration field for deno desktop, which registers custom URL schemes (deep links) with the OS at
bundle time. Covers the config field with single- and multi-scheme
examples, the scheme validation rules (RFC 3986 grammar, lowercasing, and
the rejected reserved schemes), and the per-platform registration
behavior on macOS, Linux, and Windows. An info callout notes that this is
OS registration only for now and that delivering an opened URL into a
running app arrives in a later release, matching the upstream PR's scope
(denoland/deno#35466).

Also folds in two reported documentation fixes on the same desktop pages.

Fixes #3359: the full configuration example carried a root name without
an exports field, so following it and running deno desktop produced a
repeated "exports" field should be specified when specifying a "name".
warning. Added "exports": "./main.ts" to the example.

Fixes #3358: the Deno.Tray and Deno.dock section headings in
tray_and_dock.md were themselves markdown links, which broke the
on-this-page anchor navigation (clicking the heading entry followed the
embedded API link instead of scrolling to the section). Changed both to
plain code headings, matching the convention on the sibling desktop
pages; the API reference links already exist in the intro prose just
above.

Document the `desktop.app.deepLinks` config field for registering custom
URL schemes (deno/deno#35466): per-platform bundle-time registration,
scheme validation rules, and a note that in-app URL delivery lands later.

Fix #3359: the full example carried a root `name` without `exports`,
which triggers a `"exports" field should be specified` warning; add
`exports`.

Fix #3358: the `Deno.Tray` and `Deno.dock` headings were themselves
markdown links, breaking the on-this-page anchors; make them plain code
headings (the API links remain in the intro prose).
…ks-and-fixes

# Conflicts:
#	runtime/desktop/tray_and_dock.md
Linking the Deno.Tray/Deno.dock headings re-broke the on-this-page
anchor nav that this PR fixes (#3358). Skip heading lines in the lint
instead, keeping the headings as plain code.
@bartlomieju bartlomieju changed the title docs(desktop): document deep-link URL schemes; fix #3358 and #3359 docs(desktop): document deep-link URL schemes Jun 30, 2026
@bartlomieju
bartlomieju merged commit e7bd3d5 into main Jun 30, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Example deno desktop configuration produces warnings broken link to Deno.Tray on tray_and_dock.md

1 participant