From 2a7265a24f44dfd7af733fb8f4d936c9c1345a72 Mon Sep 17 00:00:00 2001 From: rasika-2803 Date: Thu, 25 Jun 2026 11:08:48 -0700 Subject: [PATCH 1/2] Updated mintlify pages - Updated create/code.mdx - Updated docs.json Mintlify-Source: dashboard-editor --- create/code.mdx | 32 ++++++++++++++------------------ docs.json | 15 ++++++++++++--- 2 files changed, 26 insertions(+), 21 deletions(-) diff --git a/create/code.mdx b/create/code.mdx index db8fc24dd1..5ac7e876fe 100644 --- a/create/code.mdx +++ b/create/code.mdx @@ -1,5 +1,5 @@ --- -title: "Format code" +title: "change" description: "Format code in your documentation with syntax highlighting, line numbers, diffs, copy buttons, and interactive code group features in MDX." keywords: ["code blocks", "syntax highlighting", "code styling"] --- @@ -143,7 +143,6 @@ class HelloWorld { } } ``` - ### Twoslash @@ -152,7 +151,7 @@ In JavaScript and TypeScript code blocks, use `twoslash` to enable interactive t -```ts twoslash Twoslash example +```ts Twoslash example twoslash type Pet = "cat" | "dog" | "hamster"; function adoptPet(name: string, type: Pet) { @@ -235,7 +234,7 @@ Highlight specific lines in your code blocks using `highlight` with the line num -```javascript Line highlighting example {1,2,5} +```javascript Line highlighting example highlight={1-2,5} const greeting = "Hello, World!"; function sayHello() { console.log(greeting); @@ -261,7 +260,7 @@ Focus on specific lines in your code blocks using `focus` with line numbers or r -```javascript Line focusing example focus=2,4,5 +```javascript Line focusing example focus={2,4-5} const greeting = "Hello, World!"; function sayHello() { console.log(greeting); @@ -454,9 +453,9 @@ Add `[!code ++]` or `[!code --]` inside a comment at the end of a line to mark i | Language | Added | Removed | | --- | --- | --- | -| JavaScript, TypeScript, Java, C, C++, Go, Rust | `// [!code ++]` | `// [!code --]` | +| JavaScript, TypeScript, Java, C, C\+\+, Go, Rust | `// [!code ++]` | `// [!code --]` | | Python, Ruby, Bash, YAML | `# [!code ++]` | `# [!code --]` | -| HTML, XML | `` | `` | +| HTML, XML | `{/* [!code ++] */}` | `{/* [!code --] */}` | | CSS | `/* [!code ++] */` | `/* [!code --] */` | | SQL, Lua | `-- [!code ++]` | `-- [!code --]` | @@ -478,8 +477,8 @@ sayHello(); ```python Python diff lines def greet(): - print("Hello, World!") # [!code --] - print("Hello, Mintlify!") # [!code ++] + print("Hello, World!") # [!code --] + print("Hello, Mintlify!") # [!code ++] greet() ``` @@ -498,8 +497,8 @@ sayHello(); ````text Python format ```python Python diff lines def greet(): - print("Hello, World!") # [!code --] - print("Hello, Mintlify!") # [!code ++] + print("Hello, World!") // [!code --] + print("Hello, Mintlify!") // [!code ++] greet() ``` @@ -522,8 +521,7 @@ Use the `` component in custom React components to programmatically r - The icon to display in the code block header. See [Icons](/components/icons) - for available options. + The icon to display in the code block header. See [Icons](/components/icons) for available options. @@ -539,13 +537,11 @@ Use the `` component in custom React components to programmatically r - The lines to highlight. Provide a stringified array of numbers. Example: - `"[1,3,4,5]"`. + The lines to highlight. Provide a stringified array of numbers. Example: `"[1,3,4,5]"`. - The lines to focus on. Provide a stringified array of numbers. Example: - `"[1,3,4,5]"`. + The lines to focus on. Provide a stringified array of numbers. Example: `"[1,3,4,5]"`. ### Example @@ -570,4 +566,4 @@ export const CustomCodeBlock = ({ ); }; -``` +``` \ No newline at end of file diff --git a/docs.json b/docs.json index 1e916f1a5d..a0f6af0eb5 100644 --- a/docs.json +++ b/docs.json @@ -70,10 +70,10 @@ "group": "Customize", "icon": "paint-bucket", "pages": [ + "customize/custom-scripts", "customize/custom-domain", - "customize/themes", "customize/fonts", - "customize/custom-scripts", + "customize/themes", "customize/react-components", "customize/custom-404-page" ] @@ -98,8 +98,8 @@ "editor/keyboard-shortcuts" ] }, - "create/text", "create/code", + "create/text", { "group": "Agent", "root": "agent/index", @@ -112,6 +112,15 @@ ] }, "ai/mintlify-mcp", + { + "group": "Workflows", + "pages": [ + "workflows/index", + "workflows/reference", + "workflows/manage", + "workflows/create" + ] + }, { "group": "Automations", "pages": [ From fae085e0f8dad86a223cafad8c5ff997b1623dfd Mon Sep 17 00:00:00 2001 From: rasika-2803 Date: Thu, 25 Jun 2026 11:09:42 -0700 Subject: [PATCH 2/2] Updated mintlify pages - Updated create/code.mdx - Updated docs.json Mintlify-Source: dashboard-editor --- create/code.mdx | 32 ++++++++++++++++++-------------- docs.json | 15 +++------------ 2 files changed, 21 insertions(+), 26 deletions(-) diff --git a/create/code.mdx b/create/code.mdx index 5ac7e876fe..db8fc24dd1 100644 --- a/create/code.mdx +++ b/create/code.mdx @@ -1,5 +1,5 @@ --- -title: "change" +title: "Format code" description: "Format code in your documentation with syntax highlighting, line numbers, diffs, copy buttons, and interactive code group features in MDX." keywords: ["code blocks", "syntax highlighting", "code styling"] --- @@ -143,6 +143,7 @@ class HelloWorld { } } ``` + ### Twoslash @@ -151,7 +152,7 @@ In JavaScript and TypeScript code blocks, use `twoslash` to enable interactive t -```ts Twoslash example twoslash +```ts twoslash Twoslash example type Pet = "cat" | "dog" | "hamster"; function adoptPet(name: string, type: Pet) { @@ -234,7 +235,7 @@ Highlight specific lines in your code blocks using `highlight` with the line num -```javascript Line highlighting example highlight={1-2,5} +```javascript Line highlighting example {1,2,5} const greeting = "Hello, World!"; function sayHello() { console.log(greeting); @@ -260,7 +261,7 @@ Focus on specific lines in your code blocks using `focus` with line numbers or r -```javascript Line focusing example focus={2,4-5} +```javascript Line focusing example focus=2,4,5 const greeting = "Hello, World!"; function sayHello() { console.log(greeting); @@ -453,9 +454,9 @@ Add `[!code ++]` or `[!code --]` inside a comment at the end of a line to mark i | Language | Added | Removed | | --- | --- | --- | -| JavaScript, TypeScript, Java, C, C\+\+, Go, Rust | `// [!code ++]` | `// [!code --]` | +| JavaScript, TypeScript, Java, C, C++, Go, Rust | `// [!code ++]` | `// [!code --]` | | Python, Ruby, Bash, YAML | `# [!code ++]` | `# [!code --]` | -| HTML, XML | `{/* [!code ++] */}` | `{/* [!code --] */}` | +| HTML, XML | `` | `` | | CSS | `/* [!code ++] */` | `/* [!code --] */` | | SQL, Lua | `-- [!code ++]` | `-- [!code --]` | @@ -477,8 +478,8 @@ sayHello(); ```python Python diff lines def greet(): - print("Hello, World!") # [!code --] - print("Hello, Mintlify!") # [!code ++] + print("Hello, World!") # [!code --] + print("Hello, Mintlify!") # [!code ++] greet() ``` @@ -497,8 +498,8 @@ sayHello(); ````text Python format ```python Python diff lines def greet(): - print("Hello, World!") // [!code --] - print("Hello, Mintlify!") // [!code ++] + print("Hello, World!") # [!code --] + print("Hello, Mintlify!") # [!code ++] greet() ``` @@ -521,7 +522,8 @@ Use the `` component in custom React components to programmatically r - The icon to display in the code block header. See [Icons](/components/icons) for available options. + The icon to display in the code block header. See [Icons](/components/icons) + for available options. @@ -537,11 +539,13 @@ Use the `` component in custom React components to programmatically r - The lines to highlight. Provide a stringified array of numbers. Example: `"[1,3,4,5]"`. + The lines to highlight. Provide a stringified array of numbers. Example: + `"[1,3,4,5]"`. - The lines to focus on. Provide a stringified array of numbers. Example: `"[1,3,4,5]"`. + The lines to focus on. Provide a stringified array of numbers. Example: + `"[1,3,4,5]"`. ### Example @@ -566,4 +570,4 @@ export const CustomCodeBlock = ({ ); }; -``` \ No newline at end of file +``` diff --git a/docs.json b/docs.json index a0f6af0eb5..1e916f1a5d 100644 --- a/docs.json +++ b/docs.json @@ -70,10 +70,10 @@ "group": "Customize", "icon": "paint-bucket", "pages": [ - "customize/custom-scripts", "customize/custom-domain", - "customize/fonts", "customize/themes", + "customize/fonts", + "customize/custom-scripts", "customize/react-components", "customize/custom-404-page" ] @@ -98,8 +98,8 @@ "editor/keyboard-shortcuts" ] }, - "create/code", "create/text", + "create/code", { "group": "Agent", "root": "agent/index", @@ -112,15 +112,6 @@ ] }, "ai/mintlify-mcp", - { - "group": "Workflows", - "pages": [ - "workflows/index", - "workflows/reference", - "workflows/manage", - "workflows/create" - ] - }, { "group": "Automations", "pages": [