mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 09:55:06 +03:00
Begin the process of moving our MDX files into their own content directory. Fixed a few minor bugs re: ToC and tabs not rerendering consistently on page navigation. (The ToC thing wasn't a problem before the refactor, the tabs thing is a problem on prod.) Moved MDX files can't import their own components, so everything they require needs to be back in the component prop for mdx-remote's serializer. Cleaned this up a bit and lazy-loaded heavy/rare stuff. Also, the component prop doesn't take arbitrary objects (only actual components), so imported data has to be wrapped in a component.
25 lines
608 B
JavaScript
25 lines
608 B
JavaScript
const config = require('config/tailwind.config')
|
|
|
|
module.exports = config({
|
|
content: [
|
|
'../../packages/ui/src/**/*.{tsx,ts,js}',
|
|
'./pages/**/*.{tsx,mdx}',
|
|
'./components/**/*.tsx',
|
|
'./layouts/**/*.tsx',
|
|
'./src/**/*.{ts,tsx,mdx}',
|
|
'./content/**/*.{ts,tsx,mdx}',
|
|
'./docs/**/*.{tsx,mdx}',
|
|
],
|
|
plugins: [
|
|
function ({ addUtilities, addVariant }) {
|
|
addUtilities({
|
|
// prose (tailwind typography) helpers
|
|
// useful for removing margins in prose styled sections
|
|
'.prose--remove-p-margin p': {
|
|
margin: '0',
|
|
},
|
|
})
|
|
},
|
|
],
|
|
})
|