Skip to content

Commit 7333bfe

Browse files
chore: Use tailwind css for website (thomaspoignant#2530)
* Adding pricing page * init tailwind * Add sponsors button
1 parent f56c0f6 commit 7333bfe

File tree

22 files changed

+1289
-1007
lines changed

22 files changed

+1289
-1007
lines changed

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

website/docusaurus.config.js

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@ const config = {
1616
organizationName: 'thomaspoignant',
1717
projectName: 'go-feature-flag',
1818
trailingSlash: false,
19+
plugins: [
20+
async function myPlugin(context, options) {
21+
return {
22+
name: 'docusaurus-tailwindcss',
23+
configurePostCss(postcssOptions) {
24+
// Appends TailwindCSS and AutoPrefixer.
25+
postcssOptions.plugins.push(require('tailwindcss'));
26+
postcssOptions.plugins.push(require('autoprefixer'));
27+
return postcssOptions;
28+
},
29+
};
30+
},
31+
],
1932

2033
customFields: {
2134
description:
@@ -68,7 +81,6 @@ const config = {
6881
customCss: [
6982
require.resolve('./src/css/custom.css'),
7083
require.resolve('./src/css/pushy-buttons.css'), //https://github.com/iRaul/pushy-buttons
71-
require.resolve('./src/css/simplegrid.css'), //https://thisisdallas.github.io/Simple-Grid/
7284
],
7385
},
7486
sitemap: {
@@ -306,7 +318,7 @@ const config = {
306318
'csharp',
307319
'yaml',
308320
'python',
309-
'ruby'
321+
'ruby',
310322
],
311323
},
312324
}),

0 commit comments

Comments
 (0)