|
| 1 | + |
| 2 | +<b>Pattern 1: Ensure version-specific documentation uses correct product names, features, and connection strings tied to that version, and preserve legacy terminology for older versions while introducing new terms for current releases.</b> |
| 3 | + |
| 4 | +Example code before: |
| 5 | +``` |
| 6 | +The client connects using esdb:// and esdb+discover://. |
| 7 | +Auto-Scavenge is available in KurrentDB 24.2. |
| 8 | +``` |
| 9 | + |
| 10 | +Example code after: |
| 11 | +``` |
| 12 | +For KurrentDB 25.0 docs use kurrentdb:// and kurrentdb+discover:// (esdb:// variants remain supported). |
| 13 | +For EventStoreDB ≤ 24.10, keep EventStoreDB naming; for 25.0+ use KurrentDB. Clarify availability per version. |
| 14 | +``` |
| 15 | + |
| 16 | +<details><summary>Examples for relevant past discussions:</summary> |
| 17 | + |
| 18 | +- https://github.com/kurrent-io/documentation/pull/828#discussion_r2021773742 |
| 19 | +- https://github.com/kurrent-io/documentation/pull/828#discussion_r2011000563 |
| 20 | +- https://github.com/kurrent-io/documentation/pull/875#discussion_r2072199212 |
| 21 | +- https://github.com/kurrent-io/documentation/pull/882#discussion_r2084909559 |
| 22 | +- https://github.com/kurrent-io/documentation/pull/882#discussion_r2084909741 |
| 23 | +</details> |
| 24 | + |
| 25 | + |
| 26 | +___ |
| 27 | + |
| 28 | +<b>Pattern 2: When restructuring navigation or moving/removing pages, add redirects and update all inbound links to prevent 404s and SEO regressions.</b> |
| 29 | + |
| 30 | +Example code before: |
| 31 | +``` |
| 32 | +// Sidebar item removed, old path still referenced elsewhere |
| 33 | +link: "/getting-started/use-cases/time-travel/introduction.md" |
| 34 | +``` |
| 35 | + |
| 36 | +Example code after: |
| 37 | +``` |
| 38 | +// Add redirect and update references |
| 39 | +// .vuepress/config or redirects file |
| 40 | +{ from: "/getting-started/use-cases/time-travel/introduction.html", to: "/dev-center/time-travel/overview.html" } |
| 41 | +link: "/dev-center/time-travel/overview.md" |
| 42 | +``` |
| 43 | + |
| 44 | +<details><summary>Examples for relevant past discussions:</summary> |
| 45 | + |
| 46 | +- https://github.com/kurrent-io/documentation/pull/891#discussion_r2134987223 |
| 47 | +- https://github.com/kurrent-io/documentation/pull/891#discussion_r2134985301 |
| 48 | +</details> |
| 49 | + |
| 50 | + |
| 51 | +___ |
| 52 | + |
| 53 | +<b>Pattern 3: Normalize capitalization and terminology for branded versus generic feature names, and keep consistent casing across titles, UI labels, HTTP endpoints, and prose.</b> |
| 54 | + |
| 55 | +Example code before: |
| 56 | +``` |
| 57 | +Deploy Read-only Replica nodes... |
| 58 | +Tutorial: Using Auto-Scavenge |
| 59 | +POST /Auto-Scavenge/configure |
| 60 | +``` |
| 61 | + |
| 62 | +Example code after: |
| 63 | +``` |
| 64 | +Deploy read-only replica nodes... |
| 65 | +Tutorial: Using auto-scavenge |
| 66 | +POST /auto-scavenge/configure |
| 67 | +``` |
| 68 | + |
| 69 | +<details><summary>Examples for relevant past discussions:</summary> |
| 70 | + |
| 71 | +- https://github.com/kurrent-io/documentation/pull/875#discussion_r2072198632 |
| 72 | +- https://github.com/kurrent-io/documentation/pull/823#discussion_r1995872042 |
| 73 | +</details> |
| 74 | + |
| 75 | + |
| 76 | +___ |
| 77 | + |
| 78 | +<b>Pattern 4: Prefer precise, reader-focused language in docs and examples by replacing vague phrasing with actionable wording, and correct grammar, tense, and clarity in step-by-step instructions.</b> |
| 79 | + |
| 80 | +Example code before: |
| 81 | +``` |
| 82 | +The previous examples will subscribe to the stream from the beginning. This will end up calling the handler... |
| 83 | +If you want to subscribe to multiple streams then it might be better to provide a regular expression. |
| 84 | +``` |
| 85 | + |
| 86 | +Example code after: |
| 87 | +``` |
| 88 | +The previous examples subscribed from the beginning, invoking the handler for every event before waiting for new ones. |
| 89 | +To subscribe to multiple streams, use a regular expression. |
| 90 | +``` |
| 91 | + |
| 92 | +<details><summary>Examples for relevant past discussions:</summary> |
| 93 | + |
| 94 | +- https://github.com/kurrent-io/documentation/pull/790#discussion_r1980265625 |
| 95 | +- https://github.com/kurrent-io/documentation/pull/790#discussion_r1980272328 |
| 96 | +- https://github.com/kurrent-io/documentation/pull/790#discussion_r1980278338 |
| 97 | +- https://github.com/kurrent-io/documentation/pull/872#discussion_r2063825124 |
| 98 | +</details> |
| 99 | + |
| 100 | + |
| 101 | +___ |
0 commit comments