Repository navigation
Commit cba84fe
docs: fix broken heading anchors (#4586)
## Description
Six in-page links in the current docs point at heading ids that don't
exist, so clicking them doesn't scroll anywhere. The platform badge in
headings like `### rippleColor [A]` isn't part of the generated id. The
rendered ids are just `ripplecolor`, `averagetouches`, `effect` and
`mousebutton`, so links written as `#ripplecolor-android-only` and
similar don't match.
- `components/buttons`: `#ripplecolor-android-only` → `#ripplecolor`
- `components/reanimated-drawer-layout`:
`#mousebutton-web--android-only` → `#mousebutton`
- `components/reanimated_swipeable`: `#methods` (x2) →
`#swipeable-ref-methods`
- `gestures/use-hover-gesture`: `#effect-ios-only` → `#effect`
- `gestures/use-pan-gesture`: `#averagetouches-android-only` →
`#averagetouches`
- `guides/testing`: `#getbygesturetestidtestid` → `#getbygesturetestid`
## Test plan
Checked each new anchor against the ids on the deployed pages at
docs.swmansion.com/react-native-gesture-handler/docs. Versioned 1.x/2.x
docs left untouched.
Co-authored-by: Michał Bert <63123542+m-bert@users.noreply.github.com>1 parent 4727219 commit cba84fe
6 files changed
Lines changed: 7 additions & 7 deletions
File tree
- packages/docs-gesture-handler/docs
- components
- gestures
- guides
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
203 | 203 | | |
204 | 204 | | |
205 | 205 | | |
206 | | - | |
| 206 | + | |
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
260 | | - | |
| 260 | + | |
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
| 111 | + | |
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
0 commit comments