Skip to content

Commit b59e1a0

Browse files
committed
Add Tailwind CSS configuration and update page title
1 parent 2bd6b62 commit b59e1a0

File tree

9 files changed

+654
-48
lines changed

9 files changed

+654
-48
lines changed

docusaurus.config.ts

+11-45
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,17 @@ const config: Config = {
4747
],
4848
},
4949
],
50+
async function myPlugin(context, options) {
51+
return {
52+
name: "docusaurus-tailwindcss",
53+
configurePostCss(postcssOptions) {
54+
// Appends TailwindCSS and AutoPrefixer.
55+
postcssOptions.plugins.push(require("tailwindcss"));
56+
postcssOptions.plugins.push(require("autoprefixer"));
57+
return postcssOptions;
58+
},
59+
};
60+
},
5061
],
5162

5263
presets: [
@@ -134,51 +145,6 @@ const config: Config = {
134145
},
135146
],
136147
},
137-
footer: {
138-
style: "dark",
139-
links: [
140-
{
141-
title: "Docs",
142-
items: [
143-
{
144-
label: "Tutorial",
145-
to: "/docs/intro",
146-
},
147-
],
148-
},
149-
{
150-
title: "Community",
151-
items: [
152-
{
153-
label: "Stack Overflow",
154-
href: "https://stackoverflow.com/questions/tagged/docusaurus",
155-
},
156-
{
157-
label: "Discord",
158-
href: "https://discordapp.com/invite/docusaurus",
159-
},
160-
{
161-
label: "Twitter",
162-
href: "https://twitter.com/docusaurus",
163-
},
164-
],
165-
},
166-
{
167-
title: "More",
168-
items: [
169-
{
170-
label: "Blog",
171-
to: "/blog",
172-
},
173-
{
174-
label: "GitHub",
175-
href: "https://github.com/facebook/docusaurus",
176-
},
177-
],
178-
},
179-
],
180-
copyright: `Copyright © ${new Date().getFullYear()} My Project, Inc. Built with Docusaurus.`,
181-
},
182148
prism: {
183149
theme: prismThemes.github,
184150
darkTheme: prismThemes.dracula,

0 commit comments

Comments
 (0)