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:
Shahed Nasser authored and GitHub committed 2025-01-30 14:29:22 +02:00
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": [
+2 -3
View File
@@ -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],
}