Conversation
Contributor
|
✅ Preview for this PR (commit |
marekh19
force-pushed
the
fix/doubled-section-paths-md
branch
from
September 21, 2026 12:06
d78ab62 to
26fc404
Compare
marekh19
requested review from
webrdaniel
and removed request for
marcel-rbro
September 21, 2026 12:11
B4nan
approved these changes
Sep 22, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of apify/apify-web#6665
@signalwire/docusaurus-plugin-llms-txt@1.2.2repeats the section prefix in the.mdfiles andllms*.txtit generates for sites served under a sub-path, so roughly 6,700 links under/sdk/{js,python},/api/client/{js,python}and/cli404.Two changes at our edge:
nginx.confcollapsing the doubled prefix, so those links resolve in one hop. Verified against the real GitHub Pages origins: 1 redirect, 200, correcttext/markdown.joinLlmsFiles.mjs, so the rootllms-full.txtis correct in its own text. Verified against the real production file: 6,664 doubled links to 0, nothing else touched.checkLlmsSize.mjsnow 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.mjssubstitution 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 rootllms-full.txt, which neither this nor the source fix addresses.