Compare commits

...
2 Commits
Author SHA1 Message Date
dckc cf83169064 hypertext-links: link it into context
A page nothing links to is a bug. Link first, page second, as on a
wiki or the NeXT WorldWideWeb browser (citations TODO). Per TimBL's
"Linking to context" in the W3C hypertext style guide.

Generated-by: Claude Opus 5.5
2026-11-21 22:39:14 -06:00
dckc 53dd9b3b2d watchme: caveat on the recorded shell's cwd vanishing
A merge that empties a directory recreates it; a shell cd'd there is
left in the deleted one until cd "$PWD".

Generated-by: Claude Opus 5.5
2026-11-20 14:23:31 -06:00
2 changed files with 35 additions and 2 deletions

No files matched your search

+30 -2
View File
@@ -1,6 +1,6 @@
---
name: hypertext-links
description: Writing style for links in markdown docs and chat (Discord supports `[text](<url>)`) — use when writing or reviewing any doc or Discord message with URLs to external pages, repo files, or intra-repo documents; enforces descriptive link text over bare/generic links.
description: Writing style for links in markdown docs and chat (Discord supports `[text](<url>)`) — use when writing or reviewing any doc or Discord message with URLs to external pages, repo files, or intra-repo documents; when adding, moving, or deleting a doc (link it into context: from its parent, and back up); enforces descriptive link text over bare/generic links.
---
# Hypertext Links
@@ -41,4 +41,32 @@ Not `**Label**: [link](...)` — just bullets:
```markdown
- [Akka Core documentation](https://doc.akka.io/libraries/akka-core/current/)
```
```
## Link it into context
A page nothing links to is a bug: readers and agents won't find it, and it
rots unnoticed. When you add a document, in the same change:
- **Link to it** from its parent, the page whose subject it belongs to
(a goal tree, an index, a README).
- **Link from it** to that context, near the top: one line saying what it's
part of. Readers arrive by search or a pasted link, not from the start.
- **Make it stand alone**: no "as discussed above" or "next we consider";
link the first use of a project name or acronym to its home page.
The natural order is link first, page second. On a wiki, you add a page by
typing its WikiName where it belongs; that makes a link to a page that
doesn't exist yet, which you then follow and fill out (TODO: citation).
Tim Berners-Lee's original WorldWideWeb browser on NeXT worked the same
way: select some text, then make it a link to a new document (TODO:
citation).
Before deleting or moving a page, find what links to it (`git grep` the
file name), and fix those links in the same change. No links in? That was
the bug.
Source: Tim Berners-Lee, [Linking to context](https://www.w3.org/Provider/Style/IntoContext.html),
in W3C's _Style Guide for online hypertext_: "Watch that your text and
vocabulary stands by itself"; imagine "you yourself may wish to reuse the
document."
+5
View File
@@ -80,6 +80,11 @@ it survives independently of the transcript.
through them, or filter before quoting.
- Captures grow fast — tens of thousands of lines for a long session. Read
the tail by default, not the whole file.
- The recorded shell's cwd can vanish under it. A git merge or checkout
that moves every file out of a directory deletes the directory and
recreates it. A shell `cd`'d there is left in the deleted one: the prompt
shows the path, but `ls` is empty. The fix is `cd "$PWD"`. Before
running such a merge in the operator's working tree, warn them.
- These are local working artifacts, not deliverables. Keep them out of
version control unless a session is itself the thing worth preserving.