forked from trigaten/Learn_Prompting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocusaurus.config.js
222 lines (219 loc) · 6.39 KB
/
docusaurus.config.js
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
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
const lightCodeTheme = require("prism-react-renderer/themes/github");
const darkCodeTheme = require("prism-react-renderer/themes/dracula");
const math = require("remark-math");
async function createConfig() {
const katex = (await import("rehype-katex")).default;
return {
title: "Learn Prompting: Your Guide to Communicating with AI",
tagline:
"A Free, Open Source Course on Communicating with Artificial Intelligence",
url: "https://learnprompting.org",
baseUrl: "/",
onBrokenLinks: "throw",
onBrokenMarkdownLinks: "warn",
favicon: "img/favicon.ico",
organizationName: "trigaten",
projectName: "promptgineering",
deploymentBranch: "gh-pages",
trailingSlash: false,
i18n: {
defaultLocale: "en",
locales: [
"en",
"es",
"fr",
"ja",
"pt",
"zh-Hans",
"ko",
"si",
"ru",
"ar",
"de",
"uk",
"id"
],
},
plugins: [
[
"@docusaurus/plugin-client-redirects",
{
redirects: [
{
to: "/docs/basics/formalizing",
from: "/docs/basics/standard_prompt",
},
{
to: '/docs/tooling/IDEs/intro',
from: '/docs/IDEs/intro',
},
],
},
],
async function myPlugin(context, options) {
return {
name: "docusaurus-tailwindcss",
configurePostCss(postcssOptions) {
postcssOptions.plugins.push(require("tailwindcss"));
postcssOptions.plugins.push(require("autoprefixer"));
return postcssOptions;
},
};
},
],
presets: [
[
"classic",
{
gtag: {
trackingID: "G-FV0C417KS8",
},
googleAnalytics: {
trackingID: "G-FV0C417KS8",
},
docs: {
sidebarPath: require.resolve("./sidebars.js"),
editUrl: "https://github.com/trigaten/promptgineering/tree/v1.2.3",
remarkPlugins: [
math,
(await import("remark-gfm")).default,
[
(await import("@benchmark-urbanism/remark-bibtex")).default,
{ bibtexFile: "bibliography.bib" },
],
[
(await import("@renatonagliati/remark-auto-glossary")).default,
{ yamlFile: "glossary.yml" },
],
],
rehypePlugins: [[katex, { strict: false }]]
},
theme: {
customCss: require.resolve("./src/css/custom.css"),
},
},
],
],
stylesheets: [
{
href: "https://cdn.jsdelivr.net/npm/[email protected]/dist/katex.min.css",
type: "text/css",
integrity:
"sha384-odtC+0UGzzFL/6PNoE8rX/SPcQDXBJ+uRepguP4QkPCm2LBxH3FA3y+fKSiJ+AmM",
crossorigin: "anonymous",
defer: true,
},
{
href: "https://fonts.googleapis.com",
rel: "preconnect",
async: true,
},
{
href: "https://fonts.gstatic.com",
rel: "preconnect",
crossorigin: "",
async: true,
},
{
href: "https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap",
async: true,
},
],
themeConfig: {
metadata: [
{
name: "description",
content:
"Learn Prompting is the largest and most comprehensive course in prompt engineering available on the internet, with over 60 content modules, translated into 9 languages, and a thriving community.",
},
{
name: "keywords",
content:
"prompting, prompt engineering, learn prompting, learn, prompt, AI, chatGPT",
},
{
name: "og:title",
content: "Learn Prompting: Your Guide to Communicating with AI",
},
{
name: "og:description",
content:
"Learn Prompting is the largest and most comprehensive course in prompt engineering available on the internet, with over 60 content modules, translated into 9 languages, and a thriving community.",
},
{
name: "og:url",
content: "https://learnprompting.org",
},
{
name: "og:image",
content: "https://learnprompting.org/img/og-image.webp", // Replace this with the actual path to your og-image.
},
{
name: "og:type",
content: "website",
},
{
to: 'consulting',
label:"Consulting",
position:"left",
},
{
name: "twitter:card",
content: "summary_large_image",
},
{
name: "twitter:title",
content: "Learn Prompting: Your Guide to Communicating with AI",
},
{
name: "twitter:description",
content:
"Learn Prompting is the largest and most comprehensive course in prompt engineering available on the internet, with over 60 content modules, translated into 9 languages, and a thriving community.",
},
{
name: "twitter:url",
content: "https://learnprompting.org",
},
{
name: "twitter:image",
content: "https://learnprompting.org/img/twitter-image.webp", // Replace this with the actual path to your twitter-image.
},
],
navbar: {
title: "Learn Prompting",
logo: {
alt: "My Site Logo",
src: "img/simple_ai.webp",
},
items: [
{
type: "custom-myAwesomeNavbarItem",
position: "left",
},
{
type: "localeDropdown",
position: "right",
},
{
href: "https://github.com/trigaten/Learn_Prompting/releases",
label: "Change Log",
position: "right",
},
],
},
footer: {
style: "dark",
copyright: `Copyright © ${new Date().getFullYear()} Learn Prompting.`,
},
prism: {
theme: lightCodeTheme,
darkTheme: darkCodeTheme,
},
},
markdown: {
mermaid: true,
},
themes: ["@docusaurus/theme-mermaid"],
};
}
module.exports = createConfig;