Repository navigation
Use ReadMe page slugs in sitemap.xml - #88
Merged
Merged
Conversation
ReadMe appends -1, -2, ... to the slug when an operationId exists in more than one API definition (e.g. deleteBase). The sitemap assumed the slug is always the lowercase operationId, so 16 URLs returned 404 and 65 pages were missing. generate.py now reads the actual slugs from the sidebar data embedded in the public reference page (operationId + API definition ID -> slug) and falls back to the lowercase operationId with a warning if that fails. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
Problem
custom-domain/generate.pybuilds sitemap URLs as/reference/<operationId lowercased>. ReadMe appends-1,-2, … to the slug when the same operationId exists in more than one API definition (e.g.deleteBasein user, team admin and system admin operations).Result for the deployed v6.2 sitemap (checked 2026-10-05):
/reference/listcolumns, real page:/reference/listcolumns-1)…-1,…-2) are missing from the sitemapFix
The public reference page embeds the full sidebar as JSON (
<script id="ssr-props">). Each endpoint entry contains the slug, the operationId (sync_unique) and the API definition ID (apiSetting), which matches the IDs in.github/readme-ids.json.generate.pynow uses this mapping to get the actual slug per operation.readme-ids.jsonllms.txtandllms-full.txtare unchangedTested (v6.2)
listcolumns-1,appendcolumns-1,deletebase-2,listgroups-2,sendtoastnotification-1Merging into
v6.2(default branch) runs the publish workflow and redeploys the corrected sitemap. The change should also go intov7.0once that version is set up in ReadMe.🤖 Generated with Claude Code