• Astro 78.8%
  • TypeScript 16.9%
  • CSS 2.9%
  • JavaScript 1.4%
Find a file
forgejo-website 46c7b4680c
All checks were successful
push / publish (push) Successful in 1m21s
push / sync (push) Successful in 5s
publish
2026-02-24 07:10:34 +00:00
.forgejo Update https://data.forgejo.org/peter-evans/create-issue-from-file action to v6 2026-02-23 10:02:39 +01:00
.husky fix husky deprecation warning in pre-commit hook 2025-01-17 14:23:46 +01:00
.vscode refactor: fix typescript errors 2023-08-21 23:09:22 +01:00
forgejo-docs publish 2026-02-24 07:10:34 +00:00
public chore(security): update security.txt with new expiration date 2025-12-16 17:27:23 +01:00
src Add link to Windows Runner binaries back (#771) 2026-02-23 09:58:50 +01:00
.editorconfig reset theme to https://github.com/onwidget/astrowind 2022-12-01 18:04:49 +01:00
.gitignore [CI] do not try to lint .pnpm-store 2023-12-26 12:45:25 +01:00
.gitmodules chore(release): v14.0 docs (#674) 2025-12-19 12:18:23 +01:00
.lychee.toml fix: replace some redirects, ignore others (#750) 2026-02-17 17:21:26 +01:00
.npmrc reset theme to https://github.com/onwidget/astrowind 2022-12-01 18:04:49 +01:00
.prettierignore add docs to .prettierignore 2023-08-17 07:52:32 +02:00
.prettierrc add pre-commit hook to automatically format staged files (#80) 2023-02-02 09:26:59 +00:00
.typos.toml fix: typos is wrong: loosing instead of losing, here 2026-01-26 13:21:39 +01:00
astro.config.ts chore: update dependencies (#625) 2025-07-28 13:08:16 +02:00
caddyfile.tmLanguage.json add caddyfile syntax highlighting 2024-05-13 18:11:54 +02:00
eslint.config.mjs update eslint to v9.x 2024-08-04 22:57:34 +01:00
LICENSE Fix licensing problems 2023-03-02 23:44:11 -07:00
package.json Update dependency @iconify-json/tabler to v1.2.27 (#773) 2026-02-23 11:43:53 +01:00
pnpm-lock.yaml Update dependency @iconify-json/tabler to v1.2.27 (#773) 2026-02-23 11:43:53 +01:00
README.md docs: update readme 2026-01-07 17:33:17 +01:00
sandbox.config.json reset theme to https://github.com/onwidget/astrowind 2022-12-01 18:04:49 +01:00
tailwind.config.ts feat: use system fonts 2023-09-03 00:07:37 +01:00
tsconfig.json bump all dependancies 2024-05-12 22:13:14 +02:00

Website for Forgejo

This website is built with Astro and Tailwind CSS, and is based on the AstroWind template.

When a branch foobar is pushed to the repository, the content is rendered for preview at https://forgejo.codeberg.page/@foobar/.

When a PR is created, its content is rendered for preview at https://forgejo.codeberg.page/@pull_1234/ where 1234 is the number of the PR.

The forgejo-website user is dedicated to providing an application token set to websitetoken and allows for publishing the branch and CI previews in https://codeberg.org/forgejo/pages.

Hosting

The website is hosted at our Kubernetes cluster and the technical details on how this is done can be found in the CI configuration at .forgejo/workflows and the k8s-cluster repo.

Contributing

Format locally

docker run --rm -ti -v $(pwd):$(pwd) -w $(pwd) node:20 bash -c 'corepack enable ; pnpm install --frozen-lockfile ; pnpm run format'

Commands

All commands are run from the root of the project, from a terminal:

Command Action
pnpm install Installs dependencies
pnpm run prepare Install git pre-commit hook
pnpm run dev Starts local dev server at localhost:3000
pnpm run build Build your production site to ./dist/
pnpm run preview Preview your build locally, before deploying
pnpm run format Format codes with Prettier
pnpm run format-staged Format staged files with Prettier
pnpm run lint:eslint Run Eslint
pnpm run astro ... Run CLI commands like astro add, astro preview

See the AstroWind docs for more information.

Project structure

The following is the default structure of the AstroWind template:

/
├── data/
|   └── blog/
|       ├── post-slug-1.md
|       ├── post-slug-2.mdx
|       └── ...
├── public/
│   ├── robots.txt
│   └── favicon.ico
├── src/
│   ├── assets/
│   │   ├── images/
|   |   └── styles/
|   |       └── base.css
│   ├── components/
│   │   ├── atoms/
│   │   ├── blog/
│   │   ├── core/
|   |   └── widgets/
|   |       ├── Header.astro
|   |       ├── Footer.astro
|   |       └── ...
│   ├── layouts/
│   |   |── BaseLayout.astro
│   |   └── ...
│   ├── pages/
│   |   ├── [...blog]/
|   |   |   ├── [...page].astro
|   |   |   └── [slug].astro
│   |   ├── [...categories]/
|   |   |   └── [category]/
|   |   |       └── [...page].astro
│   |   ├── [...tags]/
|   |   |   └── [tag]/
|   |   |       └── [...page].astro
│   |   ├── index.astro
|   |   ├── 404.astro
|   |   └-- rss.xml.js
│   ├── utils/
│   └── config.ts
├── package.json
└── ...

Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.

There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

Any static assets, like images, can be placed in the public/ directory if they do not require any transformation or in the assets/ directory if they are imported directly.

Manual testing

When doing some dependency upgrade (e.g. using pnpm update), the following should be manually tested:

Note that ideally both the mobile (narrow) and desktop (wide) versions should be tested

  • visit the homepage
  • visit the rss.xml feed (⚠️ the menu button points to the main version: put the URL manually in case of a pull request with /@pull_XX prefix)
  • switch the theme (light/dark)
  • visit the FAQ
  • visit the Releases page (there should be one Stable and one LTS tag)
  • visit the News page
  • visit the News page for a given tag (report for instance)
  • visit the first News
  • visit the docs /latest
  • visit the docs /next
  • visit the docs /v11.0
  • visit the docs > Admin > Reverse proxy and check that all code blocks have syntax coloring
  • visit the docs > Admin > Configuration Cheat Sheet and check that the internal page navigation (on the right) behaves correctly (independently scrollable / click on item goes to the right place) only available on desktop for now
  • check the menu toggling only for mobile