diff --git a/hypertext-links/SKILL.md b/hypertext-links/SKILL.md index 22d643d..df15559 100644 --- a/hypertext-links/SKILL.md +++ b/hypertext-links/SKILL.md @@ -1,6 +1,6 @@ --- name: hypertext-links -description: Writing style for links in markdown docs and chat (Discord supports `[text]()`) — 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]()`) — 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/) -``` \ No newline at end of file +``` + +## 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."