- CSS 47.5%
- Nunjucks 38.9%
- JavaScript 12.5%
- Dockerfile 1.1%
|
mst
224d96e4a7
Fix bottom margin in admonitions and card text + fix card margin on 'Donating to Codeberg' page ( #668 )
**Before:**    **After:**    Reviewed-on: Codeberg/Documentation#668 Reviewed-by: Bastian Greshake Tzovaras <gedankenstuecke@noreply.codeberg.org> Co-authored-by: mst <oivan2401@gmail.com> Co-committed-by: mst <oivan2401@gmail.com> |
||
|---|---|---|
| .forgejo/ISSUE_TEMPLATE | feat: add contact links in issue template ( #596 ) | |
| .vscode | Add VS Code extension recommendations ( #464 ) | |
| .woodpecker | chore(deps): update docker.io/woodpeckerci/plugin-prettier docker tag to v1.3.1 ( #632 ) | |
| assets | Fix bottom margin in admonitions and card text + fix card margin on 'Donating to Codeberg' page ( #668 ) | |
| content | Fix bottom margin in admonitions and card text + fix card margin on 'Donating to Codeberg' page ( #668 ) | |
| .cspell.json | Security section: small additions ( #634 ) | |
| .editorconfig | Add woodpecker ci & many linters (and their required fixes) ( #377 ) | |
| .editorconfig-checker.json | fix: linter file rename, ignore stackoverflow links | |
| .gitignore | feat: use Eleventy's image plugin for image transformation ( #488 ) | |
| .lycheeignore | fix: linter file rename, ignore stackoverflow links | |
| .markdownlint.yaml | Lint the documentation ( #626 ) | |
| .prettierignore | prettier: ignore pnpm lock | |
| .prettierrc.json | Add woodpecker ci & many linters (and their required fixes) ( #377 ) | |
| .yamllint.yaml | Add woodpecker ci & many linters (and their required fixes) ( #377 ) | |
| cspell.json | Add woodpecker ci & many linters (and their required fixes) ( #377 ) | |
| Dockerfile | chore(deps): update node.js to v16 ( #442 ) | |
| eleventy.config.mjs | Use Halfmoon v2 ( #655 ) | |
| LICENSE.md | Reduce line length limit and format content ( #623 ) | |
| package.json | Use Halfmoon v2 ( #655 ) | |
| pagefind.yml | Add search functionality ( #370 ) | |
| pnpm-lock.yaml | chore(deps): lock file maintenance ( #665 ) | |
| README.md | Reduce line length limit and format content ( #623 ) | |
| renovate.json | chore: Configure Renovate ( #433 ) | |
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
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.
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 serve
to start a development web server that by default is listening at http://localhost:8080.
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 -t Codeberg/Documentation-server .
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 --rm -v $PWD:/opt/documentation Codeberg/Documentation-server:latest
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
-v mounts the current (documentation repository root) folder to /opt/documentation in the container.
Codeberg/Documentation-server:latest 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.
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.