mirror of
https://github.com/open-webui/docs
synced 2025-05-19 18:58:41 +00:00
Switch to ts and ESM configs
This commit is contained in:
parent
50527d03cb
commit
fae36652f2
@ -1,12 +0,0 @@
|
|||||||
{
|
|
||||||
"trailingComma": "es5",
|
|
||||||
"tabWidth": 2,
|
|
||||||
"useTabs": true,
|
|
||||||
"singleQuote": false,
|
|
||||||
"semi": true,
|
|
||||||
"bracketSameLine": false,
|
|
||||||
"bracketSpacing": true,
|
|
||||||
"jsxSingleQuote": false,
|
|
||||||
"quoteProps": "as-needed",
|
|
||||||
"endOfLine": "lf"
|
|
||||||
}
|
|
15
.prettierrc.mjs
Normal file
15
.prettierrc.mjs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
// .prettierrc.mjs
|
||||||
|
/** @type {import("prettier").Config} */
|
||||||
|
export default {
|
||||||
|
plugins: ["prettier-plugin-tailwindcss"],
|
||||||
|
trailingComma: "es5",
|
||||||
|
tabWidth: 2,
|
||||||
|
useTabs: true,
|
||||||
|
singleQuote: false,
|
||||||
|
semi: true,
|
||||||
|
bracketSameLine: false,
|
||||||
|
bracketSpacing: true,
|
||||||
|
jsxSingleQuote: false,
|
||||||
|
quoteProps: "as-needed",
|
||||||
|
endOfLine: "lf",
|
||||||
|
};
|
@ -1,3 +0,0 @@
|
|||||||
module.exports = {
|
|
||||||
presets: [require.resolve("@docusaurus/core/lib/babel/preset")],
|
|
||||||
};
|
|
3
babel.config.mjs
Normal file
3
babel.config.mjs
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
export default {
|
||||||
|
presets: ["@docusaurus/core/lib/babel/preset"],
|
||||||
|
};
|
@ -1,22 +0,0 @@
|
|||||||
const { fontFamily } = require("tailwindcss/defaultTheme");
|
|
||||||
|
|
||||||
/** @type {import('tailwindcss').Config} */
|
|
||||||
module.exports = {
|
|
||||||
corePlugins: {
|
|
||||||
preflight: false,
|
|
||||||
container: false,
|
|
||||||
},
|
|
||||||
darkMode: ["class", '[data-theme="dark"]'],
|
|
||||||
content: ["./src/**/*.{js,jsx,tsx,html}", "./docs/**/*.{md,mdx}"],
|
|
||||||
theme: {
|
|
||||||
extend: {
|
|
||||||
fontFamily: {
|
|
||||||
sans: ['"Inter"', ...fontFamily.sans],
|
|
||||||
jakarta: ['"Plus Jakarta Sans"', ...fontFamily.sans],
|
|
||||||
mono: ['"Fira Code"', ...fontFamily.mono],
|
|
||||||
},
|
|
||||||
colors: {},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
plugins: [],
|
|
||||||
};
|
|
22
tailwind.config.ts
Normal file
22
tailwind.config.ts
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
import type { Config } from "tailwindcss";
|
||||||
|
import defaultTheme from "tailwindcss/defaultTheme";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
corePlugins: {
|
||||||
|
preflight: false,
|
||||||
|
container: false,
|
||||||
|
},
|
||||||
|
darkMode: ["class", '[data-theme="dark"]'],
|
||||||
|
content: ["./src/**/*.{js,jsx,tsx,html}", "./docs/**/*.{md,mdx}"],
|
||||||
|
theme: {
|
||||||
|
extend: {
|
||||||
|
fontFamily: {
|
||||||
|
sans: ["Inter", ...defaultTheme.fontFamily.sans],
|
||||||
|
jakarta: ["Plus Jakarta Sans", ...defaultTheme.fontFamily.sans],
|
||||||
|
mono: ["Fira Code", ...defaultTheme.fontFamily.mono],
|
||||||
|
},
|
||||||
|
colors: {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
plugins: [],
|
||||||
|
} satisfies Config;
|
Loading…
Reference in New Issue
Block a user