From 98d475c1b3949e238ce1c0b78db52898b8b3fe9a Mon Sep 17 00:00:00 2001 From: "Kaishan (Sam) Ding" Date: Thu, 10 Jul 2025 11:09:55 -0700 Subject: [PATCH 1/2] add perplexity in contextual menu --- ai-ingestion.mdx | 58 +++++++++++++++++++++++++++--------------------- 1 file changed, 33 insertions(+), 25 deletions(-) diff --git a/ai-ingestion.mdx b/ai-ingestion.mdx index f2348274d..1ca1f7740 100644 --- a/ai-ingestion.mdx +++ b/ai-ingestion.mdx @@ -6,11 +6,14 @@ icon: "bot-message-square" export const PreviewButton = ({ children, href }) => { return ( - + {children} - ) -} + ); +}; Generate optimized formats and provide shortcuts that help users get faster, more accurate responses when using your documentation as context for LLMs and AI tools. @@ -18,16 +21,17 @@ Generate optimized formats and provide shortcuts that help users get faster, mor Provide quick access to AI-optimized content and direct integrations with popular AI tools from a contextual menu on your pages. -* **Copy page**: Copies the current page as Markdown for pasting as context into AI tools. -* **View as Markdown**: Opens the current page as Markdown. -* **Open in ChatGPT**: Creates a ChatGPT conversation with the current page as context. -* **Open in Claude**: Creates a Claude conversation with the current page as context. -* [**Your custom options**](#adding-custom-options): Add your own options to the contextual menu. +- **Copy page**: Copies the current page as Markdown for pasting as context into AI tools. +- **View as Markdown**: Opens the current page as Markdown. +- **Open in ChatGPT**: Creates a ChatGPT conversation with the current page as context. +- **Open in Claude**: Creates a Claude conversation with the current page as context. +- **Ask Perplexity**: Creates a Perplexity conversation with the current page as context. +- [**Your custom options**](#adding-custom-options): Add your own options to the contextual menu. - The expanded contextual menu showing the Copy page, View as Markdown, Open in ChatGPT, and Open in Claude menu items. @@ -37,14 +41,9 @@ Add the `contextual` field to your `docs.json` and specify which options you wan ```json { - "contextual": { - "options": [ - "copy", - "view", - "chatgpt", - "claude" - ] - } + "contextual": { + "options": ["copy", "view", "chatgpt", "claude", "perplexity"] + } } ``` @@ -57,11 +56,13 @@ Create custom options in the contextual menu by adding an object to the `options - The description of the option. Displayed beneath the title when the contextual menu is expanded. + The description of the option. Displayed beneath the title when the contextual + menu is expanded. - The icon of the option. Accepts any icon from the [Icons](/components/icons) collection. + The icon of the option. Accepts any icon from the [Icons](/components/icons) + collection. @@ -85,6 +86,7 @@ Create custom options in the contextual menu by adding an object to the `options + @@ -121,7 +123,9 @@ The [/llms.txt file](https://llmstxt.org) is an industry standard that helps gen Every documentation site automatically hosts an `/llms.txt` file at the root that lists all available pages in your documentation. AI tools can use this file to understand your documentation structure and find relevant content to user prompts. -Open llms.txt for this site + + Open llms.txt for this site + ## /llms-full.txt @@ -129,7 +133,9 @@ The `/llms-full.txt` file combines your entire documentation site into a single Every documentation site automatically hosts an `/llms-full.txt` file at the root. -Open llms-full.txt for this site + + Open llms-full.txt for this site + ## Generating Markdown versions of pages @@ -137,9 +143,11 @@ Markdown provides structured text that AI tools can process more efficiently tha ### .md extension -Add a `.md` to a page's URL to display a Markdown version of that page. +Add a `.md` to a page's URL to display a Markdown version of that page. -Open quickstart.md + + Open quickstart.md + ### Command \+ C shortcut From c475b613a842e418f7ff3af9e9a109508314f629 Mon Sep 17 00:00:00 2001 From: "Kaishan (Sam) Ding" Date: Thu, 10 Jul 2025 11:10:52 -0700 Subject: [PATCH 2/2] remove formatting --- ai-ingestion.mdx | 60 ++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 33 deletions(-) diff --git a/ai-ingestion.mdx b/ai-ingestion.mdx index 1ca1f7740..0312c1d58 100644 --- a/ai-ingestion.mdx +++ b/ai-ingestion.mdx @@ -6,14 +6,11 @@ icon: "bot-message-square" export const PreviewButton = ({ children, href }) => { return ( - + {children} - ); -}; + ) +} Generate optimized formats and provide shortcuts that help users get faster, more accurate responses when using your documentation as context for LLMs and AI tools. @@ -21,17 +18,17 @@ Generate optimized formats and provide shortcuts that help users get faster, mor Provide quick access to AI-optimized content and direct integrations with popular AI tools from a contextual menu on your pages. -- **Copy page**: Copies the current page as Markdown for pasting as context into AI tools. -- **View as Markdown**: Opens the current page as Markdown. -- **Open in ChatGPT**: Creates a ChatGPT conversation with the current page as context. -- **Open in Claude**: Creates a Claude conversation with the current page as context. -- **Ask Perplexity**: Creates a Perplexity conversation with the current page as context. -- [**Your custom options**](#adding-custom-options): Add your own options to the contextual menu. +* **Copy page**: Copies the current page as Markdown for pasting as context into AI tools. +* **View as Markdown**: Opens the current page as Markdown. +* **Open in ChatGPT**: Creates a ChatGPT conversation with the current page as context. +* **Open in Claude**: Creates a Claude conversation with the current page as context. +* **Ask Perplexity**: Creates a Perplexity conversation with the current page as context. +* [**Your custom options**](#adding-custom-options): Add your own options to the contextual menu. - The expanded contextual menu showing the Copy page, View as Markdown, Open in ChatGPT, and Open in Claude menu items. @@ -41,9 +38,15 @@ Add the `contextual` field to your `docs.json` and specify which options you wan ```json { - "contextual": { - "options": ["copy", "view", "chatgpt", "claude", "perplexity"] - } + "contextual": { + "options": [ + "copy", + "view", + "chatgpt", + "claude", + "perplexity" + ] + } } ``` @@ -56,13 +59,11 @@ Create custom options in the contextual menu by adding an object to the `options - The description of the option. Displayed beneath the title when the contextual - menu is expanded. + The description of the option. Displayed beneath the title when the contextual menu is expanded. - The icon of the option. Accepts any icon from the [Icons](/components/icons) - collection. + The icon of the option. Accepts any icon from the [Icons](/components/icons) collection. @@ -86,7 +87,6 @@ Create custom options in the contextual menu by adding an object to the `options - @@ -123,9 +123,7 @@ The [/llms.txt file](https://llmstxt.org) is an industry standard that helps gen Every documentation site automatically hosts an `/llms.txt` file at the root that lists all available pages in your documentation. AI tools can use this file to understand your documentation structure and find relevant content to user prompts. - - Open llms.txt for this site - +Open llms.txt for this site ## /llms-full.txt @@ -133,9 +131,7 @@ The `/llms-full.txt` file combines your entire documentation site into a single Every documentation site automatically hosts an `/llms-full.txt` file at the root. - - Open llms-full.txt for this site - +Open llms-full.txt for this site ## Generating Markdown versions of pages @@ -143,11 +139,9 @@ Markdown provides structured text that AI tools can process more efficiently tha ### .md extension -Add a `.md` to a page's URL to display a Markdown version of that page. +Add a `.md` to a page's URL to display a Markdown version of that page. - - Open quickstart.md - +Open quickstart.md ### Command \+ C shortcut