Compare commits
2
Commits
9c75e44fef
...
cf83169064
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cf83169064 | ||
|
|
53dd9b3b2d |
No files matched your search
@@ -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."
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in new issue
Block a user