Skip to content

Commit a19abb1

Browse files
committed
fix: update configuration for LLMs.txt detection
1 parent bc1b14d commit a19abb1

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

docs/.vitepress/config.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ export default async () => {
1818
const version = await getLatestVersion()
1919

2020
return defineConfig({
21+
outDir: '.vitepress/dist',
22+
publicDir: 'public',
2123
base: '/tokenly/',
2224
title: "Tokenly",
2325
description: "Advanced JWT Token Management",
@@ -33,8 +35,8 @@ export default async () => {
3335

3436
// Configuración para archivos llms.txt
3537
rewrites: {
36-
'^/tokenly/llms\\.txt$': '/llms.txt',
37-
'^/tokenly/llms-full\\.txt$': '/llms-full.txt'
38+
'llms.txt': '/llms.txt',
39+
'llms-full.txt': '/llms-full.txt'
3840
},
3941

4042
head: [
@@ -49,6 +51,8 @@ export default async () => {
4951
['meta', { property: 'og:description', content: 'Advanced JWT Token Management with Device Fingerprinting' }],
5052
['meta', { 'http-equiv': 'Access-Control-Allow-Origin', content: '*' }],
5153
['meta', { 'http-equiv': 'Content-Type', content: 'text/plain; charset=utf-8' }],
54+
['link', { rel: 'alternate', type: 'text/plain', href: '/tokenly/llms.txt', title: 'LLMs.txt' }],
55+
['link', { rel: 'alternate', type: 'text/plain', href: '/tokenly/llms-full.txt', title: 'LLMs-full.txt' }],
5256
['style', {}, `
5357
:root {
5458
--vp-layout-max-width: 1440px;

docs/public/index.html

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Tokenly Documentation</title>
6+
<meta http-equiv="refresh" content="0;url=/tokenly/">
7+
<link rel="canonical" href="/tokenly/">
8+
<!-- LLMs.txt detection -->
9+
<link rel="alternate" type="text/plain" href="/tokenly/llms.txt" title="LLMs.txt">
10+
<link rel="alternate" type="text/plain" href="/tokenly/llms-full.txt" title="LLMs-full.txt">
11+
<!-- Headers for LLMs.txt -->
12+
<meta http-equiv="Access-Control-Allow-Origin" content="*">
13+
<meta http-equiv="Content-Type" content="text/plain; charset=utf-8">
14+
</head>
15+
<body>
16+
<p>Redirecting to <a href="/tokenly/">/tokenly/</a>...</p>
17+
</body>
18+
</html>

0 commit comments

Comments
 (0)