Skip to content

Conversation

@BYK
Copy link
Member

@BYK BYK commented Dec 24, 2025

Implement an Astro + Starlight documentation site to replace the old placeholder and improve the documentation experience.

This PR introduces a new Astro + Starlight documentation site, migrating content from README.md and CONTRIBUTING.md into a structured, searchable, and responsive format. It cleans up legacy documentation artifacts, updates the CI build workflow to generate the new site, and adds convenient development scripts. The existing gh-pages Craft target is retained for deployment simplicity.


Open in Cursor Open in Web

This commit introduces the Starlight documentation site, replacing the old static HTML. It includes configuration, package updates, and necessary file additions/removals for the new documentation build process.

Co-authored-by: burak.kaya <burak.kaya@sentry.io>
@cursor
Copy link
Contributor

cursor bot commented Dec 24, 2025

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

cursoragent and others added 2 commits December 24, 2025 01:27
Co-authored-by: burak.kaya <burak.kaya@sentry.io>
Co-authored-by: burak.kaya <burak.kaya@sentry.io>
@github-actions
Copy link
Contributor

github-actions bot commented Dec 24, 2025

PR Preview Action v1.6.3

🚀 View preview at
https://getsentry.github.io/craft/pr-preview/pr-668/

Built to branch gh-pages at 2025-12-24 11:10 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

The --base CLI flag wasn't working correctly with Starlight.
Using an environment variable (DOCS_BASE_PATH) in astro.config.mjs
ensures CSS and other assets load correctly in PR previews.
GitHub Pages uses Jekyll by default, which ignores files/folders
starting with underscore. The .nojekyll file disables Jekyll
processing so the _astro folder is served correctly.
The .nojekyll file needs to be at the root of the gh-pages branch,
not just in the preview subdirectory, to disable Jekyll processing
for the entire site including PR previews.
Simpler approach - place .nojekyll at repo root and copy it to
docs/dist/ during build. Both the main build workflow and the
PR preview workflow now copy this file to the output.
The .nojekyll file must be at the root of the gh-pages branch
for GitHub Pages to disable Jekyll processing. This step checks
if it exists and adds it if missing before deploying the preview.
Changed hardcoded /craft/ paths to relative paths so links work
correctly with both production and PR preview base paths.
Document the workspace discovery feature including:
- workspaces, includeWorkspaces, excludeWorkspaces options
- artifactTemplate for custom artifact naming
- Dependency ordering, private package filtering, validation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants