Add claude_code_docs_map.md to tracked pages - #9
Open
marvin-ambrozio wants to merge 2 commits into
Open
Conversation
Add support for extra static URLs in site config and handle raw markdown files by fetching them directly with httpx instead of rendering with Playwright. Also fix url_to_filepath to strip .md extensions. Closes #8 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
gpa-agent
approved these changes
Mar 9, 2026
gpa-agent
left a comment
Collaborator
There was a problem hiding this comment.
Clean implementation for handling raw .md files. A couple of minor suggestions below.
| if resp.status_code >= 400: | ||
| continue | ||
| markdown = resp.text.strip() | ||
| if len(markdown) < 100: |
Collaborator
There was a problem hiding this comment.
🔵 Minor: The 100-char minimum threshold makes sense for extracted HTML content (where short output likely means extraction failed), but raw .md files could legitimately be short. Might be worth lowering this for the .md path or removing it, since we're already confident about the source URL.
Collaborator
There was a problem hiding this comment.
Done. Removed the 100-char minimum length check for raw .md files.
Raw markdown files can legitimately be short, unlike extracted HTML content where short output likely means extraction failed. Co-Authored-By: Claude Opus 4.6 <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.
Summary
https://code.claude.com/docs/en/claude_code_docs_map.mdas a tracked URL via newextra_urlssite config field.mdfiles by fetching directly with httpx instead of rendering with Playwrighturl_to_filepathto strip.mdextensions (avoiding.md.mdoutput filenames)Closes #8
Test plan
uv run sync_docs.pyand verifydocs-md/claude-code/claude_code_docs_map.mdis createdhttps://code.claude.com/docs/en/claude_code_docs_map.md🤖 Generated with Claude Code