Skip to content

Commit 57b7d38

Browse files
committed
Merge upstream/main
2 parents 86893af + d340c41 commit 57b7d38

File tree

6 files changed

+211
-139
lines changed

6 files changed

+211
-139
lines changed

src/components/Layout/Feedback.tsx

Lines changed: 0 additions & 105 deletions
This file was deleted.

src/components/Layout/SidebarNav/SidebarNav.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import {Suspense} from 'react';
1313
import * as React from 'react';
1414
import cn from 'classnames';
15-
import {Feedback} from '../Feedback';
1615
import {SidebarRouteTree} from '../Sidebar/SidebarRouteTree';
1716
import type {RouteItem} from '../getRouteMeta';
1817

@@ -63,9 +62,6 @@ export default function SidebarNav({
6362
</Suspense>
6463
<div className="h-20" />
6564
</nav>
66-
<div className="fixed bottom-0 hidden lg:block">
67-
<Feedback />
68-
</div>
6965
</aside>
7066
</div>
7167
</div>

src/components/Layout/TopNav/TopNav.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ import {IconHamburger} from 'components/Icon/IconHamburger';
2929
import {IconSearch} from 'components/Icon/IconSearch';
3030
import {Search} from 'components/Search';
3131
import {Logo} from '../../Logo';
32-
import {Feedback} from '../Feedback';
3332
import {SidebarRouteTree} from '../Sidebar';
3433
import type {RouteItem} from '../getRouteMeta';
3534
import {siteConfig} from 'siteConfig';
@@ -448,9 +447,6 @@ export default function TopNav({
448447
</Suspense>
449448
<div className="h-16" />
450449
</nav>
451-
<div className="fixed bottom-0 hidden lg:block">
452-
<Feedback />
453-
</div>
454450
</aside>
455451
</div>
456452
)}

src/pages/api/md/[...path].ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,14 @@ import visit from 'unist-util-visit';
1515
const CONTENT_ROOT = path.join(process.cwd(), 'src/content');
1616
const NOOP_ORIGIN = 'https://noop';
1717

18+
const FOOTER = `
19+
---
20+
21+
## Sitemap
22+
23+
[Overview of all docs pages](/llms.txt)
24+
`;
25+
1826
function rewriteInternalLinks(markdown: string): string {
1927
const processor = remark().use(() => (tree) => {
2028
visit(tree, 'link', (node: unknown) => {
@@ -86,7 +94,7 @@ export default function handler(req: NextApiRequest, res: NextApiResponse) {
8694
const content = rewriteInternalLinks(raw);
8795
res.setHeader('Content-Type', 'text/plain; charset=utf-8');
8896
res.setHeader('Cache-Control', 'public, max-age=3600');
89-
return res.status(200).send(content);
97+
return res.status(200).send(content + FOOTER);
9098
} catch {
9199
// Try next candidate
92100
}

0 commit comments

Comments
 (0)