Skip to content

Commit d2d46cd

Browse files
ortasimlmxjoshuaellis
authored
chore(docs): Links jump to section (part 2) + fix tarot images (#1867)
* docs: make links jump to beginning of the section * Revise links * Fix links for the tarot cards * Fix interpolations link Co-authored-by: Simon Lemieux <[email protected]> Co-authored-by: Josh <[email protected]>
1 parent f5acef6 commit d2d46cd

File tree

2 files changed

+29
-27
lines changed

2 files changed

+29
-27
lines changed

demo/src/sandboxes/cards-stack/src/App.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ import { useDrag } from 'react-use-gesture'
55
import styles from './styles.module.css'
66

77
const cards = [
8-
'https://upload.wikimedia.org/wikipedia/en/f/f5/RWS_Tarot_08_Strength.jpg',
9-
'https://upload.wikimedia.org/wikipedia/en/5/53/RWS_Tarot_16_Tower.jpg',
10-
'https://upload.wikimedia.org/wikipedia/en/9/9b/RWS_Tarot_07_Chariot.jpg',
11-
'https://upload.wikimedia.org/wikipedia/en/d/db/RWS_Tarot_06_Lovers.jpg',
12-
'https://upload.wikimedia.org/wikipedia/en/thumb/8/88/RWS_Tarot_02_High_Priestess.jpg/690px-RWS_Tarot_02_High_Priestess.jpg',
13-
'https://upload.wikimedia.org/wikipedia/en/d/de/RWS_Tarot_01_Magician.jpg',
8+
'https://upload.wikimedia.org/wikipedia/commons/f/f5/RWS_Tarot_08_Strength.jpg',
9+
'https://upload.wikimedia.org/wikipedia/commons/5/53/RWS_Tarot_16_Tower.jpg',
10+
'https://upload.wikimedia.org/wikipedia/commons/9/9b/RWS_Tarot_07_Chariot.jpg',
11+
'https://upload.wikimedia.org/wikipedia/commons/d/db/RWS_Tarot_06_Lovers.jpg',
12+
'https://upload.wikimedia.org/wikipedia/commons/thumb/8/88/RWS_Tarot_02_High_Priestess.jpg/690px-RWS_Tarot_02_High_Priestess.jpg',
13+
'https://upload.wikimedia.org/wikipedia/commons/d/de/RWS_Tarot_01_Magician.jpg',
1414
]
1515

1616
// These two are just helpers, they curate spring data, values that are later being interpolated into css

docs/src/references/pages.ts

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
2+
13
export type Page = {
24
title: string
35
url?: string
@@ -7,11 +9,11 @@ export type Page = {
79
export const PAGES: Page[] = [
810
{
911
title: 'Introduction',
10-
url: '/',
12+
url: '/#introduction',
1113
},
1214
{
1315
title: 'Basics',
14-
url: '/basics',
16+
url: '/basics#basics',
1517
},
1618
{
1719
title: 'API',
@@ -21,19 +23,19 @@ export const PAGES: Page[] = [
2123
routes: [
2224
{
2325
title: 'Props',
24-
url: '/common/props',
26+
url: '/common/props#props',
2527
},
2628
{
2729
title: 'Configs',
28-
url: '/common/configs',
30+
url: '/common/configs#configs',
2931
},
3032
{
3133
title: 'Imperatives & Refs',
32-
url: '/common/imperatives-and-refs',
34+
url: '/common/imperatives-and-refs#imperatives--refs',
3335
},
3436
{
3537
title: 'Interpolations',
36-
url: '/common/interpolation',
38+
url: '/common/interpolation#interpolations',
3739
},
3840
],
3941
},
@@ -42,23 +44,23 @@ export const PAGES: Page[] = [
4244
routes: [
4345
{
4446
title: 'useChain',
45-
url: '/hooks/use-chain',
47+
url: '/hooks/use-chain#usechain',
4648
},
4749
{
4850
title: 'useSpring',
49-
url: '/hooks/use-spring',
51+
url: '/hooks/use-spring#usespring',
5052
},
5153
{
5254
title: 'useSprings',
53-
url: '/hooks/use-springs',
55+
url: '/hooks/use-springs#usesprings',
5456
},
5557
{
5658
title: 'useTrail',
57-
url: '/hooks/use-trail',
59+
url: '/hooks/use-trail#usetrail',
5860
},
5961
{
6062
title: 'useTransition',
61-
url: '/hooks/use-transition',
63+
url: '/hooks/use-transition#usetransition',
6264
},
6365
],
6466
},
@@ -67,31 +69,31 @@ export const PAGES: Page[] = [
6769
routes: [
6870
{
6971
title: 'Parallax',
70-
url: '/components/parallax',
72+
url: '/components/parallax#parallax',
7173
},
7274
{
7375
title: 'Spring',
74-
url: '/components/spring',
76+
url: '/components/spring#spring',
7577
},
7678
{
7779
title: 'Spring Context',
78-
url: '/components/spring-context',
80+
url: '/components/spring-context#springcontext',
7981
},
8082
{
8183
title: 'Trail',
82-
url: '/components/trail',
84+
url: '/components/trail#trail',
8385
},
8486
{
8587
title: 'Transition',
86-
url: '/components/transition',
88+
url: '/components/transition#transition',
8789
},
8890
],
8991
},
9092
{
9193
title: 'Additional Classes',
9294
routes: [
93-
{ title: 'Controller', url: '/classes/controller' },
94-
{ title: 'Spring Value', url: '/classes/spring-value' },
95+
{ title: 'Controller', url: '/classes/controller#controller' },
96+
{ title: 'Spring Value', url: '/classes/spring-value#springvalue' },
9597
],
9698
},
9799
],
@@ -101,15 +103,15 @@ export const PAGES: Page[] = [
101103
routes: [
102104
{
103105
title: 'Accessibility',
104-
url: '/guides/accessibility',
106+
url: '/guides/accessibility#accessibility',
105107
},
106108
{
107109
title: 'React Three Fiber',
108-
url: '/guides/r3f',
110+
url: '/guides/r3f#react-three-fiber',
109111
},
110112
{
111113
title: 'Testing',
112-
url: '/guides/testing',
114+
url: '/guides/testing#testing',
113115
},
114116
],
115117
},

0 commit comments

Comments
 (0)