mirror of
https://github.com/supabase/supabase.git
synced 2026-12-04 23:49:03 +00:00
docs(style-guide): say how to introduce a link (#52578)
## Problem The style guide says to write "For more information about X, see Y," which is too prescriptive and not nuanced. ## Solution - **Introduce a link:** replace "Introduce a link with `see`" with a table of three forms. These are `See [Title].`, `For more information, see [Title].`, and `For more information about X, see [Title].` Each row says when to use the form. It's funny. By making something 'looser', it still feels quite prescriptive. But now there is at least options and nuance. ## Manual testing 1. Read [Introduce a link](https://github.com/supabase/supabase/blob/docs/style-guide-about-clause/apps/docs/style-guide/02-elements.md#introduce-a-link). See the three forms and three examples. 2. Read [Put the condition before the instruction](https://github.com/supabase/supabase/blob/docs/style-guide-about-clause/apps/docs/style-guide/01-voice-and-tone.md#put-the-condition-before-the-instruction). See that its `For more information, see [Row Level Security]` example matches the second form.
This commit is contained in:
1 parent
07ab3f99fc
commit
4eab2bdbc6
1 file changed
+12
-3
@@ -436,10 +436,19 @@ Name the thing instead.
|
||||
- **Recommended**: `[HTTP/1.1 RFC](https://www.rfc-editor.org/rfc/rfc2616)`
|
||||
- **Not recommended**: `[https://www.rfc-editor.org/rfc/rfc2616](https://www.rfc-editor.org/rfc/rfc2616)`
|
||||
|
||||
#### Introduce a link with `see`, and say what the reader will find
|
||||
#### Introduce a link
|
||||
|
||||
Write `For more information about X, see Y` rather than `For more information on X, see
|
||||
Y`. The `about` clause is what tells a reader whether the link is worth following.
|
||||
Introduce a link so the reader always knows where the link goes and why it's relevant.
|
||||
|
||||
| Write | When |
|
||||
| -------------------------------------------- | -------------------------------------------------------------- |
|
||||
| `See [Title].` | The sentence before already says why the link matters |
|
||||
| `For more information, see [Title].` | The title says what the reader gets, and `See` reads as abrupt |
|
||||
| `For more information about X, see [Title].` | The title alone doesn't say why the link matters here |
|
||||
|
||||
- **Recommended**: ``The `anon` role handles requests from users who aren't signed in. See [Postgres roles](/docs/guides/database/postgres/roles).``
|
||||
- **Recommended**: `For more information about policies, see [Row Level Security](/docs/guides/database/postgres/row-level-security).`
|
||||
- **Not recommended**: `For more information about Row Level Security, see [Row Level Security](/docs/guides/database/postgres/row-level-security).`
|
||||
|
||||
#### Keep sentence punctuation outside the link
|
||||
|
||||
|
||||
Reference in new issue
Block a user