From afb654d15287c5ca8b5bf6fa474be406f4d11e39 Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Thu, 26 Feb 2026 13:58:48 +1000 Subject: [PATCH 1/2] DOC-3373: Update ROOT url for where files are served. --- -scripts/README-llm-files.md | 6 +++--- -scripts/generate-llm-files.js | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/-scripts/README-llm-files.md b/-scripts/README-llm-files.md index 9d1b1c3387..c66c75e73e 100644 --- a/-scripts/README-llm-files.md +++ b/-scripts/README-llm-files.md @@ -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 diff --git a/-scripts/generate-llm-files.js b/-scripts/generate-llm-files.js index 014b307f11..5eafb7c8cc 100755 --- a/-scripts/generate-llm-files.js +++ b/-scripts/generate-llm-files.js @@ -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 @@ -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). `; } From a3fa97fba7862c84b8447b943aaed58c2d00d02e Mon Sep 17 00:00:00 2001 From: Karl Kemister-Sheppard Date: Thu, 26 Feb 2026 14:01:38 +1000 Subject: [PATCH 2/2] DOC-3373: update llms.txt generated file to point to server path. --- modules/ROOT/attachments/llms.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ROOT/attachments/llms.txt b/modules/ROOT/attachments/llms.txt index 7b81de7981..b1857d5fb3 100644 --- a/modules/ROOT/attachments/llms.txt +++ b/modules/ROOT/attachments/llms.txt @@ -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).