Skip to content

Commit

Permalink
chore: Use tailwind css for website (#2530)
Browse files Browse the repository at this point in the history
* Adding pricing page

* init tailwind

* Add sponsors button
  • Loading branch information
thomaspoignant authored Oct 15, 2024
1 parent f56c0f6 commit 7333bfe
Show file tree
Hide file tree
Showing 22 changed files with 1,289 additions and 1,007 deletions.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions website/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,19 @@ const config = {
organizationName: 'thomaspoignant',
projectName: 'go-feature-flag',
trailingSlash: false,
plugins: [
async function myPlugin(context, options) {
return {
name: 'docusaurus-tailwindcss',
configurePostCss(postcssOptions) {
// Appends TailwindCSS and AutoPrefixer.
postcssOptions.plugins.push(require('tailwindcss'));
postcssOptions.plugins.push(require('autoprefixer'));
return postcssOptions;
},
};
},
],

customFields: {
description:
Expand Down Expand Up @@ -68,7 +81,6 @@ const config = {
customCss: [
require.resolve('./src/css/custom.css'),
require.resolve('./src/css/pushy-buttons.css'), //https://github.com/iRaul/pushy-buttons
require.resolve('./src/css/simplegrid.css'), //https://thisisdallas.github.io/Simple-Grid/
],
},
sitemap: {
Expand Down Expand Up @@ -306,7 +318,7 @@ const config = {
'csharp',
'yaml',
'python',
'ruby'
'ruby',
],
},
}),
Expand Down
Loading

0 comments on commit 7333bfe

Please sign in to comment.