Skip to content

Feat: docs site - #307

Open
lolaaimar wants to merge 8 commits into
mainfrom
feat/docs-site
Open

lolaaimar wants to merge 8 commits into
mainfrom
feat/docs-site

Conversation

@lolaaimar

@lolaaimar lolaaimar commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Publishes the repo's reader-facing Markdown as a static site at
https://txpipe.github.io/thoth/. The site holds no copy of the docs: it reads
them from the repo at build time.

Preview

image
site/                          # own npm project, not a root workspace
├── src/lib/docs.ts            # publish allowlist: which docs render
├── src/lib/rewrite-links.ts   # repo-relative links → base-prefixed routes
├── src/pages/                 # index, [...path], llms.txt
└── astro.config.ts            # site + base=/thoth, trailingSlash always

.github/workflows/site.yml
  on: push → main
  build:  npm ci --prefix site → check → build → upload site/dist
  deploy: actions/deploy-pages

Deployment goes through GitHub Actions, not "Deploy from a branch". GitHub
Pages' branch source only offers / or /docs and copies files as-is, so it
can't serve an Astro site. The workflow runs astro build and uploads
site/dist as the Pages artifact, so the published output is generated in CI.

The URL follows the repo owner: this is a project page, so site is the Pages
origin (https://txpipe.github.io) and base is the repo subpath (/thoth).

Pages reports build_type: workflow, so the first run after merge deploys with
no manual setup. Keep the source on GitHub Actions — the stale branch source
shown in settings is ignored while the build type is workflow.

Evidence

  • npm run check --prefix site → 0 errors, 0 warnings (11 files).
  • npm run build --prefix site → 14 pages built.
  • After merge: https://txpipe.github.io/thoth/ (workflow triggers on push
    to main).

Merge Danger

Door: two-way — reverting the workflow stops deploys, and the Pages source
can be switched back at any time.

Blast Radius: docs only — no package, contract or published API changes.

Follow-up: the package READMEs and docs/ still link to
github.com/txpipe-shop/thoth. This PR only updates the site's own chrome.

The Astro site renders the allowlisted repo Markdown at build time, rewrites repo-relative and GitHub doc links to site routes, and fails the build on an unresolved link or anchor. It publishes the two seeded policy examples, generates llms.txt from the same collection, and deploys to GitHub Pages on main.
@coderabbitai

coderabbitai Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 89e3e36d-1c5b-40a2-b62c-898d71bd6352
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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.

1 participant