Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

sidebars.js 2.6 KB

You have to be logged in to leave a comment. Sign In
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
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
  1. /**
  2. * Creating a sidebar enables you to:
  3. - create an ordered group of docs
  4. - render a sidebar for each doc of that group
  5. - provide next/previous navigation
  6. The sidebars can be generated from the filesystem, or explicitly defined here.
  7. Create as many sidebars as you want.
  8. */
  9. // @ts-check
  10. /** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */
  11. const sidebars = {
  12. // By default, Docusaurus generates a sidebar from the docs folder structure
  13. promptfoo: [
  14. {
  15. type: 'doc',
  16. id: 'intro',
  17. },
  18. {
  19. type: 'doc',
  20. id: 'installation',
  21. },
  22. {
  23. type: 'doc',
  24. id: 'getting-started',
  25. },
  26. /*
  27. {
  28. type: 'doc',
  29. id: 'key-concepts',
  30. },
  31. */
  32. {
  33. type: 'category',
  34. label: 'Configuration',
  35. link: {
  36. type: 'generated-index',
  37. },
  38. items: [
  39. { type: 'doc', id: 'configuration/guide' },
  40. { type: 'doc', id: 'configuration/reference' },
  41. { type: 'doc', id: 'configuration/parameters' },
  42. { type: 'doc', id: 'configuration/datasets' },
  43. { type: 'doc', id: 'configuration/scenarios' },
  44. { type: 'doc', id: 'configuration/caching' },
  45. { type: 'doc', id: 'configuration/telemetry' },
  46. ],
  47. },
  48. {
  49. type: 'category',
  50. label: 'Usage',
  51. link: {
  52. type: 'generated-index',
  53. },
  54. items: [{ type: 'autogenerated', dirName: 'usage' }],
  55. },
  56. {
  57. type: 'category',
  58. label: 'Assertions & metrics',
  59. collapsed: true,
  60. link: {
  61. type: 'doc',
  62. id: 'configuration/expected-outputs/index',
  63. },
  64. items: [{ type: 'autogenerated', dirName: 'configuration/expected-outputs' }],
  65. },
  66. {
  67. type: 'category',
  68. label: 'Providers',
  69. link: {
  70. type: 'generated-index',
  71. slug: '/providers',
  72. },
  73. collapsed: true,
  74. items: [{ type: 'autogenerated', dirName: 'providers' }],
  75. },
  76. {
  77. type: 'category',
  78. label: 'Integrations',
  79. link: {
  80. type: 'generated-index',
  81. },
  82. collapsed: true,
  83. items: [{ type: 'autogenerated', dirName: 'integrations' }],
  84. },
  85. {
  86. type: 'category',
  87. label: 'Guides',
  88. link: {
  89. type: 'generated-index',
  90. },
  91. items: [{ type: 'autogenerated', dirName: 'guides' }],
  92. },
  93. {
  94. type: 'doc',
  95. id: 'faq',
  96. },
  97. ],
  98. // But you can create a sidebar manually
  99. /*
  100. tutorialSidebar: [
  101. 'intro',
  102. 'hello',
  103. {
  104. type: 'category',
  105. label: 'Tutorial',
  106. items: ['tutorial-basics/create-a-document'],
  107. },
  108. ],
  109. */
  110. };
  111. module.exports = sidebars;
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...