Commit abf2528
authored
docs: add Soroban storage strategies guide (#2649)
* add storage strategies guide with animated diagrams
* codex worked oncorrecting Soroban storage strategies guide
* fix storage guide facts, diagram styling and animations
* polish storage guide, add markdown-source plugin
* fix ttl animation, clarify tier and cap wording
* clarify strategies 7-8, fix swap-and-pop diagram
* polish strategy titles, s9 wording and diagrams
* rework strategy 10 and its diagram, note cap-85
* clarify decision path, cheatsheet, s11 diagram
* add checkpoints strategy as s10, renumber s10-11 to s11-12
* make d1/d3/d7 animations finite, show allowance deadline checks
The three looping diagrams auto-started on scroll and never stopped,
breaking the component's plays-once contract (WCAG 2.2.2); capped at
2-3 iterations (~5s) since Replay covers re-watching. The Strategy 4
snippet claimed the deadline was checked but only stored it — now it
shows the write-side validation and read-side expiration guard from
the canonical token example.
* drop the markdown-source dev middleware
Serving raw markdown under docusaurus start meant re-deriving source
paths from URLs, which missed README-backed section pages, /docs.md,
and front-matter slugs, and required a fragile re-install of the eval
source map middleware that silently failed on Docusaurus 3.10. Not
worth the surface: the Open Markdown button works in production and
PR previews, where docusaurus-markdown-source-plugin resolves sources
from route metadata.
* apply review wording and formatting feedback
* correct snippet semantics and cost accounting
* relabel d5 ttl diagram as not to scale
* show bump-on-read via a balance getter
also polish comment
* show diagram final frames when javascript is off
* cite oz smart account instead of passkey-kit1 parent e8416b6 commit abf2528
6 files changed
Lines changed: 3213 additions & 0 deletions
File tree
- docs/build/guides/storage
- src/components/StorageStrategies
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
| 114 | + | |
114 | 115 | | |
115 | 116 | | |
116 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
0 commit comments