-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathsidebars.js
More file actions
101 lines (98 loc) · 3.27 KB
/
Copy pathsidebars.js
File metadata and controls
101 lines (98 loc) · 3.27 KB
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
/**
* NOTE:
* The Commands-pages for pester-docs are generated using the
* Alt3.Docusaurus.Powershell module. It takes the Get-Help
* information produced by the Pester module and uses it to
* 1) generate .mdx files with the required Docusaurus (markdown)
* front matter variables for each of the exported module
* commands
* 2) generate a sidebar file containing references to each
* command page (/docs/commands/docusaurus.sidebar.js)
*
* To regenerate all API pages, run the following Powershell
* command inside the root directory of this repo
*
* New-DocusaurusHelp -Module Pester -OutputFolder "docs" -Sidebar "commands" -Verbose
*/
import commands from "./docs/commands/docusaurus.sidebar.js";
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
const sidebars = {
docs: [
{
// Root category used to identify the root node in the breadcrumbs,
// can be removed once https://github.com/facebook/docusaurus/issues/6953 is fixed to avoid extra indent
type: 'category',
label: 'Documentation',
collapsible: false,
items: [
{
"Introduction": [
"quick-start",
"introduction/installation",
],
"Usage": [
"usage/file-placement-and-naming",
"usage/importing-tested-functions",
"usage/test-file-structure",
"usage/discovery-and-run",
"usage/parallel",
"usage/shuffle",
"usage/data-driven-tests",
"usage/setup-and-teardown",
"usage/tags",
"usage/skip",
"usage/mocking",
"usage/modules",
"usage/testdrive",
"usage/testregistry",
"usage/test-results",
"usage/code-coverage",
"usage/configuration",
"usage/output",
"usage/result-object",
"usage/vscode",
"usage/troubleshooting",
],
"Assertions": [
"assertions/should-command",
"assertions/should-beequivalent",
"assertions/soft-assertions",
"assertions/writing-assertions",
"assertions/assertions",
"assertions/custom-assertions",
],
"Migration Guides": [
"migrations/v5-to-v6",
"migrations/v4-to-v5",
"migrations/breaking-changes-in-v5",
"migrations/v3-to-v4",
],
"Additional Resources": [
"additional-resources/articles",
"additional-resources/courses",
"additional-resources/misc",
"additional-resources/projects",
"additional-resources/videos",
],
"Contributing": [
"contributing/introduction",
"contributing/reporting-issues",
"contributing/feature-requests",
"contributing/pull-requests",
],
}
],
}
],
commands: [
{
// Root category used to identify the root node in the breadcrumbs,
// can be removed once https://github.com/facebook/docusaurus/issues/6953 is fixed to avoid extra indent
type: 'category',
label: 'Command Reference',
items: commands,
collapsible: false,
},
],
};
export default sidebars;