Repository navigation
Stop publishing the checkout's absolute path with the docs - #14
Merged
Merged
Conversation
metadata.json (and so index.html, which embeds it) recorded generation_info.repo_path as an absolute path; update records and the metadata's update history did too, and a full-build fallback recorded the absolute path of the docs backup. Published with the docs, that reveals where each user keeps the checkout (C:/Users/<name>/...). They are now recorded relative to the docs folder (usually ".."), and history entries from older versions are rewritten when read back. serve, which uses the recorded path to find the repo, resolves it against the docs folder; old absolute values keep working. Found by publishing a test GitHub Pages site. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CXRqeijND7XPq2srGHndRd
dandydarshan
force-pushed
the
fix/no-local-paths-in-docs
branch
from
November 7, 2026 01:53
ad4e38d to
3e11b81
Compare
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
Every generated docs site published the absolute path of the user's checkout, e.g.
C:/Users/<name>/projects/app. It was found by publishing a test GitHub Pages site.serveuses the recorded path to find the repo, so it now resolves a relative value against the docs folder. Old absolute values keep working. On Windows, when the docs and the repo are on different drives no relative path exists; then nothing is recorded andservefalls back to the docs folder's parent, as before.The dependency graph's absolute
file_paths are fixed separately in #13, which starts committing the graph.Evidence
metadata.json,index.htmlandupdate_record.jsoneach contained the scratch checkout path.After: real CLI against a scripted LLM (generate, code change,
--update): no file underdocs/(outsidetemp/) contains the checkout path, andmetadata.jsonholds"repo_path": ".."in all three places.test_serve_finds_the_repo_from_a_relative_or_an_old_absolute_path: docs copied away from the repo, recorded../../repo. On the old coderepo_pathisNone; now it finds the repo, and an old absolute value still works.test_repo_path_is_recorded_relative_to_the_docs:..,../.., andNoneacross Windows drives.Merge Danger
Door: two-way
Blast Radius: metadata
Existing published sites keep their absolute path until the next
generate/--updaterewritesmetadata.jsonandindex.html, and older commits keep it in git history. Anything external that parsedgeneration_info.repo_pathas an absolute path would now get a relative one; nothing in CodeWiki does.🤖 Generated with Claude Code
https://claude.ai/code/session_01CXRqeijND7XPq2srGHndRd