From 2a7265a24f44dfd7af733fb8f4d936c9c1345a72 Mon Sep 17 00:00:00 2001 From: rasika-2803 Date: Thu, 25 Jun 2026 11:08:48 -0700 Subject: [PATCH] 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": [