Skip to content

feat: move docs to repo root for GitHub navigation#2770

Draft
zastrowm wants to merge 3 commits into
strands-agents:mainfrom
zastrowm:add-a-symlink
Draft

feat: move docs to repo root for GitHub navigation#2770
zastrowm wants to merge 3 commits into
strands-agents:mainfrom
zastrowm:add-a-symlink

Conversation

@zastrowm

Copy link
Copy Markdown
Member

Description

Move site/src/content/docs/ to the top-level docs/ directory so it appears as a navigable folder on GitHub. A reverse symlink at the original location (site/src/content/docs -> ../../../docs) ensures Astro/Starlight continues to find the content without changes to the build pipeline.

Added preserveSymlinks: true to the Vite config so module resolution uses the symlink path (inside site/) rather than the resolved real path, which fixes @astrojs/starlight/components import resolution.

Related Issues

N/A

Documentation PR

N/A — this restructures where docs live, no content changes.

Type of Change

Other (please describe): Developer experience — docs are now browsable directly from the GitHub repo root.

Testing

  • Verified npx astro build completes without module resolution errors

  • Verified npx astro dev starts cleanly

  • Broken link checker failures are pre-existing (missing generated API docs)

  • I ran hatch run prepare

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

zastrowm added 3 commits June 12, 2026 15:53
GitHub renders symlink-to-directory as a file entry rather than a
folder. Use a real docs/ directory containing symlinks to each
subdirectory so it appears as a folder in the GitHub tree view.
Move site/src/content/docs/ to the top-level docs/ directory so it
appears as a navigable folder on GitHub. A symlink at the original
location points back so Astro/Starlight continues to find the content.

Added preserveSymlinks to the Vite config so module resolution uses the
symlink path (inside site/) rather than the real path (repo root).
@github-actions github-actions Bot added chore Maintenance tasks, dependency updates, CI changes, refactoring with no user-facing impact documentation Documentation changes, improvements, additions, content updates, site improvements, examples, guides area-devx Developer experience improvements labels Jun 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-devx Developer experience improvements chore Maintenance tasks, dependency updates, CI changes, refactoring with no user-facing impact documentation Documentation changes, improvements, additions, content updates, site improvements, examples, guides size/xs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant