Codeberg/Documentation: Codeberg Documentation – tutorials, how-to's and other Codeberg-specific resources for users. - Codeberg.org
Codeberg
Documentation
Fork
You've already forked Documentation
142
Code
Issues
73
Pull requests
16
Wiki
Activity
Codeberg Documentation – tutorials, how-to's and other Codeberg-specific resources for users.
codeberg
contributions-welcome
docs
docuthon
eleventy
668
commits
branches
tags
20
MiB
CSS
46.7%
Nunjucks
38.2%
JavaScript
12.3%
Dockerfile
2.2%
Shell
0.6%
Find a file
2026-04-21 23:35:59 +02:00
.forgejo
/ISSUE_TEMPLATE
feat: add contact links in issue template (
#596
2025-05-28 00:19:53 +02:00
.vscode
Add VS Code extension recommendations (
#464
2024-08-12 12:36:32 +00:00
.woodpecker
chore(deps): update mstruebing/editorconfig-checker docker tag to v3.6.1 (
#769
2026-04-18 15:34:16 +02:00
assets
Fix bottom margin in admonitions and card text + fix card margin on 'Donating to Codeberg' page (
#668
2025-08-23 01:52:48 +02:00
content
fix: added comma because the phrasing might be confusing without (
#779
2026-04-21 23:35:59 +02:00
.cspell.json
Make linters happy (
#723
2025-12-19 02:12:14 +01:00
.editorconfig
Add woodpecker ci & many linters (and their required fixes) (
#377
2024-06-11 07:51:22 +00:00
.editorconfig-checker.json
fix: linter file rename, ignore stackoverflow links
2025-06-11 22:42:52 +02:00
.gitignore
Fix the Dockerfile (
#630
2025-11-21 21:40:44 +01:00
.lycheeignore
chore(ci): update lychee to v0.22.0, add local link checking, fix some URLs (
#732
2026-01-16 18:40:09 +01:00
.markdownlint.yaml
Fix lint issues (
#629
2025-11-21 12:35:05 +01:00
.prettierignore
Fix the Dockerfile (
#630
2025-11-21 21:40:44 +01:00
.prettierrc.json
Add woodpecker ci & many linters (and their required fixes) (
#377
2024-06-11 07:51:22 +00:00
.yamllint.yaml
Add woodpecker ci & many linters (and their required fixes) (
#377
2024-06-11 07:51:22 +00:00
container-init.sh
Fix the Dockerfile (
#630
2025-11-21 21:40:44 +01:00
cspell.json
Add woodpecker ci & many linters (and their required fixes) (
#377
2024-06-11 07:51:22 +00:00
Dockerfile
chore(deps): update node.js to e8e2e91 (
#766
2026-03-12 01:25:08 +01:00
eleventy.config.mjs
Use Halfmoon v2 (
#655
2025-08-12 17:53:32 +02:00
LICENSE.md
Reduce line length limit and format content (
#623
2025-06-14 11:38:21 +02:00
package.json
chore(deps): update dependency cspell to v9.8.0 (
#770
2026-04-18 15:33:00 +02:00
pagefind.yml
Add search functionality (
#370
2023-11-30 21:33:22 +00:00
pnpm-lock.yaml
chore(deps): update dependency cspell to v9.8.0 (
#770
2026-04-18 15:33:00 +02:00
README.md
Update surge preview plugin link
2026-01-16 08:36:00 +01:00
renovate.json
chore: Configure Renovate (
#433
2024-06-11 07:47:06 +00:00
README.md
Codeberg Documentation
This repository contains the
documentation for Codeberg
, with some code to build it into
a static website.
Please have a look into it and consider to help writing the Documentation.
This is still very much work-in-progress, the more useful material we collect, the better we can later present it!
All contributions are very welcome!
For an introduction on contributing to Codeberg Documentation, please have a look
at
the section on improving the documentation
Usage
Local Development using nodejs
If you want to work on the documentation, for example by writing your own articles,
the easiest way to do so is to fork the documentation repository and develop locally.
To learn how to get
pnpm
see the
PNpm website
First, run
pnpm install
to install all dependencies (they will be installed only for this project, not globally).
You only have to do this once.
Then run
pnpm run dev
to start a development web server that by default is listening at
Now you can simply change, add or remove files, save them and the development server
should automatically reload all changed pages using the amazing Browsersync.
When you're done, commit your changes to your fork and write a pull request for
Codeberg/Documentation. We're happy about every contribution!
Local development using the Dockerfile
If you do not have nodejs installed or do not want to run the development web server directly on your host,
you can also use a docker container.
You must have a container-engine installed (docker, podman, etc.)
First build the container image:
docker build --tag codeberg-docs:dev .
You do not have to rebuild the image every time. Once you build the image you can always start the development
webserver using the container engine:
docker run --name
"codeberg-docs"
--rm --tty --interactive --volume
${
PWD
:/docs"
--publish
"127.0.0.1:8080:8080/tcp"
codeberg-docs:dev
Use the "External" URL the container outputs on startup to access your documentation.
Changes to files in the documentation are reflected in the browser as the server regularly updates the generated files.
Use
Ctrl-C
to exit / end the container.
The parameters are:
--rm
removes the container after it's use
--volume
mounts the current (documentation repository root) folder to
/docs
in the container.
codeberg-docs:dev
refers to the container image built in the first step (using
docker build
).
Build & Deployment
Like for local development, before building and deploying you first have to install
the dependencies (once):
pnpm install
To build the entire website to the
_site
directory run
pnpm run build
Instead, to directly publish the page to Codeberg pages, you can also run
pnpm run deploy
which includes a call to
pnpm run build
Check and fix formatting errors
Before you create a pull request with your changes, you should check and fix formatting errors.
Use the following command to fix formatting errors automatically:
pnpx prettier . -w
With the following command you can check if there are any formatting errors remaining:
pnpx prettier . -c
In addition you should also run the linter which is also used when checking pull requests:
pnpx cspell lint --no-progress --gitignore '{**,.*}/{*,.*}'
If this shows any errors, please fix them before committing your changes and creating a pull request.
Technical Information
This website uses
Eleventy
, a static site generator.
It's supplied as a dev-dependency in
package.json
and its dependencies are locked
with
package-lock.json
to try to ensure reproducible builds.
It also uses
PageFind
, a static search library.
Deployment previews are generated for every PR using
Surge.sh
through the corresponding
Woodpecker plugin
A spellchecker is used to check for spelling errors in the documentation.
To add exceptions to the spellchecker, add them to the
.cspell.json
file.
This project is deployed to Codeberg via
a cron job
executed on the Codeberg infrastructure.
License and Contributors
This website (excluding bundled fonts) is licensed under CC BY-SA 4.0. See the
LICENSE
file for details.
Please refer to the
commit log
for an exhaustive list of contributors to Codeberg Documentation.
US