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

docusaurus.config.js 5.1 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
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
  1. // @ts-check
  2. // Note: type annotations allow type checking and IDEs autocompletion
  3. const { themes } = require('prism-react-renderer');
  4. const lightCodeTheme = themes.github;
  5. const darkCodeTheme = themes.duotoneDark;
  6. /** @type {import('@docusaurus/types').Config} */
  7. const config = {
  8. title: 'promptfoo',
  9. tagline: 'Test your prompts',
  10. favicon: '/favicon.ico',
  11. // Set the production url of your site here
  12. url: 'https://www.promptfoo.dev',
  13. // Set the /<baseUrl>/ pathname under which your site is served
  14. // For GitHub pages deployment, it is often '/<projectName>/'
  15. baseUrl: '/',
  16. // GitHub pages deployment config.
  17. // If you aren't using GitHub pages, you don't need these.
  18. organizationName: 'typpo', // Usually your GitHub org/user name.
  19. projectName: 'promptfoo', // Usually your repo name.
  20. onBrokenLinks: 'throw',
  21. onBrokenMarkdownLinks: 'warn',
  22. // Even if you don't use internalization, you can use this field to set useful
  23. // metadata like html lang. For example, if your site is Chinese, you may want
  24. // to replace "en" with "zh-Hans".
  25. i18n: {
  26. defaultLocale: 'en',
  27. locales: ['en'],
  28. },
  29. presets: [
  30. [
  31. 'classic',
  32. /** @type {import('@docusaurus/preset-classic').Options} */
  33. ({
  34. docs: {
  35. sidebarPath: require.resolve('./sidebars.js'),
  36. // Remove this to remove the "edit this page" links.
  37. editUrl: 'https://github.com/promptfoo/promptfoo/tree/main/site',
  38. sidebarCollapsed: false,
  39. },
  40. /*
  41. blog: {
  42. showReadingTime: true,
  43. // Please change this to your repo.
  44. // Remove this to remove the "edit this page" links.
  45. editUrl:
  46. 'https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/',
  47. },
  48. */
  49. theme: {
  50. customCss: require.resolve('./src/css/custom.css'),
  51. },
  52. gtag: {
  53. trackingID: 'G-3TS8QLZQ93',
  54. anonymizeIP: true,
  55. },
  56. }),
  57. ],
  58. ],
  59. themeConfig:
  60. /** @type {import('@docusaurus/preset-classic').ThemeConfig} */
  61. ({
  62. image: 'img/thumbnail.png',
  63. navbar: {
  64. title: 'promptfoo',
  65. logo: {
  66. alt: 'promptfoo logo',
  67. src: 'img/logo.svg',
  68. },
  69. items: [
  70. /*
  71. {
  72. type: 'docSidebar',
  73. sidebarId: 'tutorialSidebar',
  74. position: 'left',
  75. label: 'Tutorial',
  76. },
  77. */
  78. { to: '/docs/intro', label: 'Docs', position: 'right' },
  79. {
  80. href: 'https://github.com/typpo/promptfoo',
  81. label: 'GitHub',
  82. position: 'right',
  83. },
  84. {
  85. href: 'https://discord.gg/gHPS9jjfbs',
  86. label: 'Discord',
  87. position: 'right',
  88. },
  89. ],
  90. },
  91. footer: {
  92. style: 'dark',
  93. links: [
  94. {
  95. title: 'Docs',
  96. items: [
  97. {
  98. label: 'Intro',
  99. to: '/docs/intro',
  100. },
  101. {
  102. label: 'Command line',
  103. to: '/docs/getting-started',
  104. },
  105. {
  106. label: 'Node package',
  107. to: '/docs/usage/node-package',
  108. },
  109. {
  110. label: 'Privacy policy',
  111. to: '/privacy',
  112. },
  113. ],
  114. },
  115. {
  116. title: 'Guides',
  117. items: [
  118. {
  119. label: 'Running benchmarks',
  120. to: '/docs/guides/llama2-uncensored-benchmark-ollama',
  121. },
  122. {
  123. label: 'Evaluating factuality',
  124. to: '/docs/guides/factuality-eval',
  125. },
  126. {
  127. label: 'Evaluating RAGs',
  128. to: '/docs/guides/evaluate-rag',
  129. },
  130. {
  131. label: 'Minimizing hallucinations',
  132. to: '/docs/guides/prevent-llm-hallucations',
  133. },
  134. ],
  135. },
  136. {
  137. title: 'Community',
  138. items: [
  139. {
  140. label: 'GitHub',
  141. href: 'https://github.com/typpo/promptfoo',
  142. },
  143. {
  144. label: 'Discord',
  145. href: 'https://discord.gg/gHPS9jjfbs',
  146. },
  147. ],
  148. },
  149. ],
  150. copyright: `© ${new Date().getFullYear()} promptfoo`,
  151. },
  152. prism: {
  153. theme: lightCodeTheme,
  154. darkTheme: darkCodeTheme,
  155. additionalLanguages: [
  156. 'bash',
  157. 'javascript',
  158. 'typescript',
  159. 'python',
  160. 'json',
  161. 'yaml',
  162. 'markup-templating',
  163. 'liquid',
  164. ],
  165. },
  166. zoom: {
  167. selector: '.markdown :not(em) > img',
  168. },
  169. algolia: {
  170. // The application ID provided by Algolia
  171. appId: 'VPUDC1V4TA',
  172. // Public API key: it is safe to commit it
  173. apiKey: '0b4fcfd05976eb0aaf4b7c51ec4fcd23',
  174. indexName: 'promptfoo',
  175. },
  176. }),
  177. plugins: [require.resolve('docusaurus-plugin-image-zoom')],
  178. };
  179. module.exports = config;
Tip!

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

Comments

Loading...