The Codeberg Documentation website is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
It bundles third-party font software licensed under a different license. Please look at the LICENSE file for details.
Changes to the original versions of the article as well as its individual authors can be looked up in this article's commit history
Codeberg and the Codeberg Logo are trademarks of Codeberg e.V.
Codeberg Pages allows you to easily publish static websites with a human-friendly address ({username}.codeberg.page
) via Git on Codeberg.
Follow these simple steps below to get started, or check out the advanced usage below.
index.html
.{username}.codeberg.page
.This project is developed "in-house" by Codeberg. You can find the source code here.
See also:
Find out more in this section: |
---|
Using Custom Domains |
Troubleshooting |
Example: Docs as Code with Sphinx |
Pushing output from SSGs into Codeberg Pages |
Redirects |
The Codeberg Pages server responds to four different URLs:
https://raw.codeberg.page/username/reponame/
: raw content, uses correct MIME types (HTML is forbidden though) and is accessible with CORS.https://username.codeberg.page
: user page, points the default branch of a user's or organization's pages
repositoryhttps://username.codeberg.page/reponame/
: repo page, points to the pages
branch of the repositoryhttps://example.org
: custom domain, points to a repo of choice as outlined belowIn all cases, you can append a branch using an @
(e.g. https://username.codeberg.page/@develop/README.md
). If the branch name contains a slash (/
), they need to be replaced with a tilde (~
) (e.g. the branch docs/develop
can be accessed via https://username.codeberg.page/@docs~develop/README.md
).
The source code for Codeberg Pages is maintained over at the Pages Server repository; feel free to head there to provide some feedback, suggestions, bug reports or even patches. If you need general community support or have questions, Codeberg/Community is a better place to ask, as more people will be watching there to help you out! We really appreciate your contribution.
Codeberg Pages works with any Forgejo host out there. So if you are running your own Forgejo, you can absolutely run it yourself and help with the development. Check out the Pages Server repository for more information.
Hey there! 👋 Thank you for reading this article!
Is there something missing, or do you have an idea on how to improve the documentation? Do you want to write your own article?
You're invited to contribute to the Codeberg Documentation at its source code repository, for example, by adding a pull request or joining in on the discussion in the issue tracker.
For an introduction on contributing to Codeberg Documentation, please have a look at the Contributor FAQ.
© Codeberg Docs Contributors. See LICENSE