mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-11-28 17:48:28 +01:00
Cleanup skipped every row flagged starred while starred import was off, so a deleted source behind one was never found. It now reads the star list for them and looks up the ones no longer starred: a deleted source counts as gone, an unstar alone does not. The destination switch on the Repository Cleanup card moves right under the action and is named after it. The Storage page says it counts only the mirrors gitea-mirror manages.
Gitea Mirror website
The source of https://gitea-mirror.raylabs.io: the landing page, the user documentation and the use case guides.
Developing locally
pnpm install
pnpm dev
The site runs at http://localhost:4321. Run bun scripts/check-docs-links.ts from the repository root before opening a pull request; CI runs it too.
Structure
src/pages/index.astro: the landing page, built from the components insrc/components/src/pages/docs/: the documentation, one MDX file per page, listed insrc/lib/docs-nav.tssrc/pages/use-cases/: the use case guides, listed insrc/lib/use-cases.tssrc/pages/comparison/: comparison pagespublic/assets/: screenshots and images
Adding a docs page
- Create
src/pages/docs/<slug>.mdxwithlayout: '../../layouts/DocsLayout.astro', atitleand adescription. - Add it to
src/lib/docs-nav.tsin the right section. - Link to it with its site path, such as
/docs/<slug>/.
Adding a use case
- Add a record to
src/lib/use-cases.ts. The landing page and the use case index read it. - Create
src/pages/use-cases/<slug>.mdxwithlayout: ../../layouts/UseCaseLayout.astro, atitle, adescriptionand acanonicalURL.
Deployment
The site is deployed on Cloudflare Pages. Keep pnpm-lock.yaml as the only lockfile here: with a bun.lock present, Cloudflare installs with Bun and the build fails.