Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions -scripts/README-llm-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ The files are generated in `modules/ROOT/attachments/`:
- `llms.txt` - Simplified, curated documentation index (~105 lines)
- `llms-full.txt` - Complete documentation index with all pages (~700 lines)

**Post-build:** Files are moved to the root directory (handled in separate PR) and accessible at:
- `https://www.tiny.cloud/docs/tinymce/latest/llms.txt`
- `https://www.tiny.cloud/docs/tinymce/latest/llms-full.txt`
**Post-build:** A script copies the files to the site root, making them accessible at:
- `https://www.tiny.cloud/docs/llms.txt`
- `https://www.tiny.cloud/docs/llms-full.txt`

## How It Works

Expand Down
3 changes: 2 additions & 1 deletion -scripts/generate-llm-files.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const http = require('http');
const sanitizeHtml = require('sanitize-html');

const BASE_URL = 'https://www.tiny.cloud/docs/tinymce/latest';
const DOCS_ROOT_URL = 'https://www.tiny.cloud/docs';
const OUTPUT_DIR = path.join(__dirname, '../modules/ROOT/attachments');

// Fetch sitemap from URL or file
Expand Down Expand Up @@ -1187,7 +1188,7 @@ function App() {

## Complete Documentation

For a complete list of all ${urls.length} documentation pages, see [llms-full.txt](${BASE_URL}/llms-full.txt).
For a complete list of all ${urls.length} documentation pages, see [llms-full.txt](${DOCS_ROOT_URL}/llms-full.txt).

`;
}
Expand Down
2 changes: 1 addition & 1 deletion modules/ROOT/attachments/llms.txt
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,5 @@ function App() {

## Complete Documentation

For a complete list of all 395 documentation pages, see [llms-full.txt](https://www.tiny.cloud/docs/tinymce/latest/llms-full.txt).
For a complete list of all 395 documentation pages, see [llms-full.txt](https://www.tiny.cloud/docs/llms-full.txt).

Loading