Skip to content

Commit 4b7ac88

Browse files
committed
Fix sidebars
1 parent 778c276 commit 4b7ac88

File tree

1 file changed

+62
-33
lines changed

1 file changed

+62
-33
lines changed

sidebars.ts

Lines changed: 62 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
1+
import type { SidebarsConfig } from "@docusaurus/plugin-content-docs";
22

33
/**
44
* Creating a sidebar enables you to:
@@ -14,47 +14,76 @@ const sidebars: SidebarsConfig = {
1414
// By default, Docusaurus generates a sidebar from the docs folder structure
1515
docsSidebar: [
1616
{
17-
type: 'category',
18-
label: 'Get started',
19-
items: ['get-started/intro', 'get-started/installation', 'get-started/concepts', 'get-started/create-your-first-test', 'get-started/sample-tests', 'get-started/resources', 'get-started/tutorials'],
17+
type: "category",
18+
label: "Get started",
19+
items: [
20+
"get-started/intro",
21+
"get-started/installation",
22+
"get-started/concepts",
23+
"get-started/create-your-first-test",
24+
"get-started/sample-tests",
25+
"get-started/resources",
26+
{
27+
type: "category",
28+
label: "Tutorials",
29+
link: {
30+
type: "generated-index",
31+
description:
32+
"These examples walk through the steps of setting up and running Doc Detective tests.",
33+
},
34+
items: [
35+
"get-started/tutorials/set-up-your-test-environment",
36+
"get-started/tutorials/capture-screenshot",
37+
"get-started/tutorials/record-video",
38+
],
39+
},
40+
],
2041
},
2142
{
22-
type: 'category',
23-
label: 'Configuration',
24-
link: {type: 'generated-index', description: 'Doc Detective tries to have sane defaults, but it also allows for a lot of customization. This section covers the various configuration options available to you.'},
25-
items: ['get-started/config/contexts/index']
43+
type: "category",
44+
label: "Configuration",
45+
link: {
46+
type: "generated-index",
47+
description:
48+
"Doc Detective tries to have sane defaults, but it also allows for a lot of customization. This section covers the various configuration options available to you.",
49+
},
50+
items: ["get-started/config/contexts/index"],
2651
},
2752
{
28-
type: 'category',
29-
label: 'Guides',
30-
link: {type: 'generated-index'},
53+
type: "category",
54+
label: "Guides",
55+
link: { type: "generated-index" },
3156
items: [
32-
'get-started/tests/index',
57+
"get-started/tests/index",
3358
{
34-
type: 'category',
35-
label: 'Actions',
36-
link: {type: 'generated-index', description: 'Actions are the commands performed in each step of a test. Each action has a specific purpose, such as checking a link, finding an element, or navigating to a URL.'},
59+
type: "category",
60+
label: "Actions",
61+
link: {
62+
type: "generated-index",
63+
description:
64+
"Actions are the commands performed in each step of a test. Each action has a specific purpose, such as checking a link, finding an element, or navigating to a URL.",
65+
},
3766
items: [
38-
'get-started/actions/checkLink',
39-
'get-started/actions/click',
40-
'get-started/actions/find',
41-
'get-started/actions/goTo',
42-
'get-started/actions/httpRequest',
43-
'get-started/actions/runCode',
44-
'get-started/actions/runShell',
45-
'get-started/actions/screenshot',
46-
'get-started/actions/loadVariables',
47-
'get-started/actions/record',
48-
'get-started/actions/stopRecord',
49-
'get-started/actions/type',
50-
'get-started/actions/wait'
51-
]
52-
}
53-
]
67+
"get-started/actions/checkLink",
68+
"get-started/actions/click",
69+
"get-started/actions/find",
70+
"get-started/actions/goTo",
71+
"get-started/actions/httpRequest",
72+
"get-started/actions/runCode",
73+
"get-started/actions/runShell",
74+
"get-started/actions/screenshot",
75+
"get-started/actions/loadVariables",
76+
"get-started/actions/record",
77+
"get-started/actions/stopRecord",
78+
"get-started/actions/type",
79+
"get-started/actions/wait",
80+
],
81+
},
82+
],
5483
},
5584
],
56-
referencesSidebar: [{type: 'autogenerated', dirName: 'references'}],
57-
contributeSidebar: [{type: 'autogenerated', dirName: 'contribute'}],
85+
referencesSidebar: [{ type: "autogenerated", dirName: "references" }],
86+
contributeSidebar: [{ type: "autogenerated", dirName: "contribute" }],
5887

5988
// But you can create a sidebar manually
6089
/*

0 commit comments

Comments
 (0)