You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3b85544
Browse filesBrowse the repository at this point in the historyBrowse files
fix: collapse doubled section prefix in docs .md cross-links (#3005)
Part of apify/apify-web#6665
`@signalwire/docusaurus-plugin-llms-txt@1.2.2` repeats the section
prefix in the `.md` files and `llms*.txt` it generates for sites served
under a sub-path, so roughly 6,700 links under `/sdk/{js,python}`,
`/api/client/{js,python}` and `/cli` 404.
Two changes at our edge:
- A 301 in `nginx.conf` collapsing the doubled prefix, so those links
resolve in one hop. Verified against the real GitHub Pages origins: 1
redirect, 200, correct `text/markdown`.
- The same substitution in `joinLlmsFiles.mjs`, so the root
`llms-full.txt` is correct in its own text. Verified against the real
production file: 6,664 doubled links to 0, nothing else touched.
`checkLlmsSize.mjs` now fails the build if any come back.
The sources are fixed separately in apify/apify-cli#1455,
apify/apify-sdk-js#737, apify/apify-sdk-python#1135,
apify/apify-client-js#1072 and apify/apify-client-python#1070. Drop the
`joinLlmsFiles.mjs` substitution once all five have deployed. Keep the
redirect: the doubled URLs stay in search indexes and agent caches long
after the sources are fixed.
It only collapses a repeated same-section prefix. The plugin also
prefixes cross-section links (`/sdk/js/cli/docs/...`), 5 of them in the
root `llms-full.txt`, which neither this nor the source fix addresses.
0 commit comments