File tree Expand file tree Collapse file tree 3 files changed +54
-2
lines changed
src/components/DeveloperDocsLinks Expand file tree Collapse file tree 3 files changed +54
-2
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,11 @@ const config: StorybookConfig = {
61
61
if ( imageRule ) {
62
62
imageRule [ "exclude" ] = / \. s v g $ /
63
63
}
64
+ // Configure yaml files to be loaded with yaml-loader
65
+ config . module . rules . push ( {
66
+ test : / \. y a ? m l $ / ,
67
+ use : "yaml-loader" ,
68
+ } )
64
69
65
70
// Configure .svg files to be loaded with @svgr /webpack
66
71
config . module . rules . push ( {
Original file line number Diff line number Diff line change
1
+ import { Meta , StoryObj } from "@storybook/react"
2
+
3
+ import { langViewportModes } from "../../../.storybook/modes"
4
+
5
+ import DeveloperDocsLinksComponent from "."
6
+
7
+ const meta = {
8
+ title : "Molecules / Navigation / DeveloperDocsLinks" ,
9
+ component : DeveloperDocsLinksComponent ,
10
+ parameters : {
11
+ layout : "fullscreen" ,
12
+ chromatic : {
13
+ modes : {
14
+ ...langViewportModes ,
15
+ } ,
16
+ } ,
17
+ } ,
18
+ decorators : [
19
+ ( Story ) => (
20
+ < article className = "max-w-3xl scroll-mt-24" >
21
+ < Story />
22
+ </ article >
23
+ ) ,
24
+ ] ,
25
+ } satisfies Meta < typeof DeveloperDocsLinksComponent >
26
+
27
+ export default meta
28
+
29
+ type Story = StoryObj < typeof meta >
30
+
31
+ export const FoundationalTopics : Story = {
32
+ args : {
33
+ headerId : "foundational-topics" ,
34
+ } ,
35
+ }
36
+
37
+ export const EthereumStack : Story = {
38
+ args : {
39
+ headerId : "ethereum-stack" ,
40
+ } ,
41
+ }
42
+
43
+ export const Advanced : Story = {
44
+ args : {
45
+ headerId : "advanced" ,
46
+ } ,
47
+ }
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ import Translation from "@/components/Translation"
4
4
5
5
import docLinks from "@/data/developer-docs-links.yaml"
6
6
7
- import InlineLink from "./ui/Link"
8
- import { ListItem , UnorderedList } from "./ui/list"
7
+ import InlineLink from ".. /ui/Link"
8
+ import { ListItem , UnorderedList } from ".. /ui/list"
9
9
10
10
export type DeveloperDocsLinksProps = {
11
11
headerId : string
You can’t perform that action at this time.
0 commit comments