You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Documentation pages are content rich and can be a great source of information for LLMs for AI tools.
16
-
17
-
Today, you can use your documentation to fine-tune a chatbot, answer questions about your product, or use it to generate code.
18
-
19
-
## Supported Shortcuts
20
-
21
-
We support a variety of shortcuts and configurations to make it easier to use your documentation in AI tools.
15
+
Mintlify generates optimized formats and provides shortcuts that help users get faster, more accurate responses when using your documentation as context for LLMs and AI tools.
16
+
17
+
## Contextual menu
18
+
19
+
Provide quick access to AI-optimized content and direct integrations with popular AI tools from a contextual menu on your pages.
20
+
21
+
***Copy page**: Copies the current page as Markdown for pasting as context into AI tools.
22
+
***View as Markdown**: Opens the current page as Markdown.
23
+
***Open in ChatGPT**: Creates a ChatGPT conversation with the current page as context.
24
+
***Open in Claude**: Creates a Claude conversation with the current page as context.
alt="The expanded contextual menu showing the Copy page, View as Markdown, Open in ChatGPT, and Open in Claude menu items."
35
+
className="hidden dark:block"
36
+
/>
37
+
</Frame>
38
+
39
+
### Enabling the contextual menu
40
+
41
+
Add the `contextual` field to your `docs.json` and specify which options you want to include in your menu.
42
+
43
+
```json
44
+
{
45
+
"contextual": {
46
+
"options": [
47
+
"copy",
48
+
"view",
49
+
"chatgpt",
50
+
"claude"
51
+
]
52
+
}
53
+
}
54
+
```
22
55
23
-
###/llms.txt
56
+
## /llms.txt
24
57
25
-
An [industry standard](https://llmstxt.org) that helps general-purpose LLMs index more efficiently (e.g. a sitemap for AI).
58
+
The [/llms.txt file](https://llmstxt.org)is an industry standard that helps general-purpose LLMs index more efficiently, similar to how a sitemap helps search engines.
26
59
27
-
Every documentation site automatically hosts a **/llms.txt** file at the root that lists all available pages in your documentation.
60
+
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.
28
61
29
62
<PreviewButtonhref="https://mintlify.com/docs/llms.txt">Open llms.txt for this site</PreviewButton>
30
63
31
-
###/llms-full.txt
64
+
## /llms-full.txt
32
65
33
-
A markdown file of all your content is automatically available at **/llms-full.txt**.
66
+
The `/llms-full.txt` file combines your entire documentation site into a single file as context for AI tools.
34
67
35
-
llms-full.txt contains the entire content of your docs, and is a great way to provide a complete context to AI tools.
68
+
Every documentation site automatically hosts an `/llms-full.txt` file at the root.
36
69
37
70
<PreviewButtonhref="https://mintlify.com/docs/llms-full.txt">Open llms-full.txt for this site</PreviewButton>
38
71
39
-
### .md extension
72
+
##Generating Markdown versions of pages
40
73
41
-
Add **.md** to an individual docs page to see a markdown version of that page. Helps load individual pages into AI tools with better token efficiency & inference time.
74
+
Markdown provides structured text that AI tools can process more efficiently than HTML, which results in better response times and lower token usage.
Add a `.md` to a page's URL to display a Markdown version of that page.
46
79
47
-
You can enable a [contextual menu](settings#param-contextual) to allow users to copy markdown source, view markdown source, or open ChatGPT with the page content.
0 commit comments