tailwind + new images

This commit is contained in:
Igor Brylev 2025-02-12 12:50:28 +03:00
parent 86145d6c26
commit 11afe8ef72
9 changed files with 51 additions and 38 deletions

View file

@ -2,6 +2,8 @@
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
import tailwind from "tailwindcss";
import autoprefixer from "autoprefixer";
module.exports = {
title: 'Robossembler',
@ -114,4 +116,31 @@ module.exports = {
crossorigin: 'anonymous',
},
],
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;
},
};
},
function () {
return {
name: "follow-symlinks",
configureWebpack() {
return {
resolve: {
// Yes, leave this on false to support symlinks.
symlinks: false,
},
};
},
};
},
],
};