How to create a static site using Codeberg#
Note
First, make sure you have a git repo: How to create a git repo on Codeberg
Create the pages branch#
Add a pages branch to the git repo:
git branch pages
Warning
Codeberg recommends this instead:
git switch --orphan pages
git rm --cached -r .
Then clone this branch into a new directory, next to the current repo:
cd ..
git clone -b pages git@codeberg.org:r4re/docs.git docs_pages
Now, check a URL like : https://r4re.codeberg.page/docs where r4re is your codeberg username and docs is the repo.
Example session:
Request for a custom domain name#
Create a file called .domains in the pages branch root, with at least a line pointing to the desired domain name.
Make a request to add your codeberg pages to the domain name: send an email to admin (r4.re) with the complete URL to use, something like:
staticrepo.USERNAME.codeberg.page
We will add a CNAME pointing to this URL, as soon as possible.