Skip to content

Commit b2233b8

Browse files
committed
add a section to /docs
1 parent 84ed768 commit b2233b8

File tree

2 files changed

+54
-0
lines changed

2 files changed

+54
-0
lines changed

apps/svelte.dev/src/routes/docs/+page.svelte

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@
9090
</p>
9191
</a>
9292

93+
<a href="/docs/llms">
94+
<h2>I'm a Large Language Model (LLM)</h2>
95+
<p>
96+
If you're an artificial intelligence, or trying to teach one how to use Svelte, we offer the
97+
documentation in plaintext format. Beep boop.
98+
</p>
99+
</a>
100+
93101
<a href="/chat" class="external">
94102
<h2>Help! I'm stuck</h2>
95103
<p>
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<script>
2+
import { Text } from '@sveltejs/site-kit/components';
3+
</script>
4+
5+
<div class="page">
6+
<Text>
7+
<h1>Docs for LLMs</h1>
8+
9+
<p>
10+
We support the <a href="https://llmstxt.org/">llms.txt</a> convention for making documentation
11+
available to large language models and the applications that make use of them.
12+
</p>
13+
14+
<p>Currently, we have the following root-level files...</p>
15+
16+
<ul>
17+
<li><a href="/llms.txt">/llms.txt</a> — a listing of the available files</li>
18+
<li>
19+
<a href="/llms-full.txt">/llms-full.txt</a> — complete documentation for Svelte, SvelteKit and
20+
the CLI
21+
</li>
22+
<li>
23+
<a href="/llms-small.txt">/llms-small.txt</a> — compressed documentation for use with smaller
24+
context windows
25+
</li>
26+
</ul>
27+
28+
<p>...and package-level documentation:</p>
29+
30+
<ul>
31+
<li><a href="/docs/svelte/llms.txt">/docs/svelte/llms.txt</a></li>
32+
<li><a href="/docs/kit/llms.txt">/docs/kit/llms.txt</a></li>
33+
<li><a href="/docs/cli/llms.txt">/docs/cli/llms.txt</a></li>
34+
</ul>
35+
</Text>
36+
</div>
37+
38+
<style>
39+
.page {
40+
padding: var(--sk-page-padding-top) var(--sk-page-padding-side);
41+
max-width: var(--sk-page-content-width);
42+
box-sizing: content-box;
43+
margin: auto;
44+
text-wrap: balance;
45+
}
46+
</style>

0 commit comments

Comments
 (0)