You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs: add sync frontmatter and drop em-dashes from docs/
Makes docs/ syncable into developer-docs as the Frontends section, with
this repo staying the single source of truth (#124).
- Add Starlight frontmatter (title, description, sidebar.order) to all
eight pages, and drop the H1 now that the frontmatter carries the
title. GitHub renders the frontmatter as a table, nested sidebar.order
included, so the title is still visible here; keeping both would mean
five of the eight pages carrying a title that disagrees with their H1.
This also makes the sync a pure rsync, as caffeinelabs/motoko does.
No anchor moves: every cross-page link targets an H2 or H3.
- Replace all 124 em-dashes. developer-docs bans U+2014 repo-wide; doing
it here rather than in their postprocess keeps the published page and
the file in this repo byte-identical, which is what makes the sync
trustworthy. Definition bullets take the `- **Term.** Sentence.` form
already used in routing.md; prose takes a colon, semicolon, comma, or
parentheses per sentence.
- Point the custom-domains link at the live URL. The old
building-apps/frontends/... form is the retired portal layout and only
survives on a redirect.
- Make the three links that escape docs/ (ARCHITECTURE.md,
README.md#releasing, examples/spa) absolute GitHub URLs, so no link
rewriting is needed on the sync side.
- Fix the stale example version in overview.md: v1.0.0 -> v0.3.3.
The `<version>` placeholder convention in overview.md is unchanged.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
That's it —`https://<canister-id>.icp0.io/` now redirects strangers to
38
+
That's it:`https://<canister-id>.icp0.io/` now redirects strangers to
34
39
`/login.html`, and visitors who present `my-passphrase` get in.
35
40
36
41
> **Enable before the first sync for a brand-new private app.** Enabling on an empty
@@ -42,29 +47,29 @@ That's it — `https://<canister-id>.icp0.io/` now redirects strangers to
42
47
| Method | Call | Effect |
43
48
|---|---|---|
44
49
| Issue |`issue_token '(record { label = "<label>"; ttl_secs = <secs> : nat32; value = opt "<value>" })'`| Mints a token and **returns its value**. Pass `value = null` (or leave the field out) to get a high-entropy random token instead of a chosen passphrase. |
45
-
| Revoke |`revoke_token '("<label>")'`| Removes every token with that label —**live**, so the next request bearing it is rejected. |
50
+
| Revoke |`revoke_token '("<label>")'`| Removes every token with that label. Takes effect**live**, so the next request bearing it is rejected. |
46
51
| List |`list_tokens '()'`| Returns `{ label; expires_at }` for every live token (controller-only). |
47
52
| Status |`check_protection_status '()'`|`Disabled`, `Enabled`, or `EnabledLoginPageMissing` (controller-only). |
48
53
| Disable |`disable_protection '()'`| Turns the gate off and drops all tokens. |
49
54
50
-
Always pass the argument explicitly — `'()'` for the methods that take none. Given no
55
+
Always pass the argument explicitly (`'()'` for the methods that take none). Given no
51
56
argument, `icp canister call` opens an interactive prompt instead of sending an empty one.
52
57
53
-
Each token has its **own expiry** and is **individually revocable** — revoking one
58
+
Each token has its **own expiry** and is **individually revocable**: revoking one
0 commit comments