diff --git a/-scripts/README-llm-files.md b/-scripts/README-llm-files.md index 9d1b1c3387..32216b49fe 100644 --- a/-scripts/README-llm-files.md +++ b/-scripts/README-llm-files.md @@ -81,7 +81,7 @@ The files are generated in `modules/ROOT/attachments/`: **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` +- `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). `; } 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).