docs: changes to AI assistant icon + add button to code blocks (#11227)
* docs: changes to AI assistant icon + add button to code blocks * fix code blocks in questions * collapse code block in answer * styling fixes * fix new line at cursor position
This commit is contained in:
1 parent
386ce4b857
commit
be33a56290
21 files changed
+294
-97
No files matched your search
@@ -508,8 +508,8 @@ module.exports = {
|
||||
"code-label": [
|
||||
"12px",
|
||||
{
|
||||
lineHeight: "20px",
|
||||
fontWeight: "400",
|
||||
lineHeight: "15px",
|
||||
fontWeight: "500",
|
||||
},
|
||||
],
|
||||
"code-body": [
|
||||
|
||||
@@ -1,12 +1,11 @@
|
||||
import path from "path"
|
||||
import coreConfig from "./modified.tailwind.config"
|
||||
|
||||
// Get two levels up from require.resolve("@medusajs/ui")
|
||||
const root = path.join(require.resolve("docs-ui"), "../..")
|
||||
const uiPath = path.join(root, "**/*.{js,ts,jsx,tsx,mdx}")
|
||||
const files = path.join(root, "**/*.{js,ts,jsx,tsx,mdx}")
|
||||
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
module.exports = {
|
||||
...coreConfig,
|
||||
content: [uiPath],
|
||||
content: [files],
|
||||
}
|
||||
Reference in new issue
Block a user