1
0
Fork
You've already forked Codeberg_Documentation
0
Codeberg Documentation – tutorials, how-tos and other Codeberg-specific resources.
  • CSS 55.1%
  • Nunjucks 41.2%
  • Shell 2.3%
  • Dockerfile 1.2%
  • JavaScript 0.2%
egnun 3bd7c665c7 Updated paragraph "Telling Git about your SSH key" ( #470 )
I don't know, if it makes a difference, but for the "user.signingKey" option it should probably say "<PATH TO PUBLIC SSH KEY>".
The official git documenation says, that git expects a public key.
https://git-scm.com/docs/git-config#Documentation/git-config.txt-gpgsshdefaultKeyCommand
Also some other guides use the public key:
https://blog.dbrgn.ch/2021/11/16/git-ssh-signatures/
https://dev.to/ccoveille/git-the-complete-guide-to-sign-your-commits-with-an-ssh-key-35bg
So, I updated the paragraph accordingly.
Signed-off-by: egnun <egnun@mailbox.org>
Reviewed-on: Codeberg/Documentation#470
Reviewed-by: Panagiotis "Ivory" Vasilopoulos <git@n0toose.net>
Co-authored-by: egnun <egnun@mailbox.org>
Co-committed-by: egnun <egnun@mailbox.org>
2024年08月19日 22:39:01 +00: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.0.3 2024年07月13日 00:15:32 +00:00
assets feature: Add "Skip to main content" anchor ( #421 ) 2024年06月24日 20:41:05 +00:00
content Updated paragraph "Telling Git about your SSH key" ( #470 ) 2024年08月19日 22:39:01 +00:00
.cspell.json add spellchecker ( #439 ) 2024年06月12日 10:20:37 +00:00
.ecrc Add woodpecker ci & many linters (and their required fixes) ( #377 ) 2024年06月11日 07:51:22 +00:00
.editorconfig Add woodpecker ci & many linters (and their required fixes) ( #377 ) 2024年06月11日 07:51:22 +00:00
.eleventy.js Add woodpecker ci & many linters (and their required fixes) ( #377 ) 2024年06月11日 07:51:22 +00:00
.gitignore Update the .gitignore file ( #465 ) 2024年08月12日 12:32:37 +00:00
.lycheeignore lychee: ignore openclipart.org due to timeouts 2024年06月12日 10:50:26 +02:00
.markdownlint.yaml add spellchecker ( #439 ) 2024年06月12日 10:20:37 +00:00
.prettierignore prettier: ignore pnpm lock 2024年06月15日 10:39:12 +02: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
cspell.json Add woodpecker ci & many linters (and their required fixes) ( #377 ) 2024年06月11日 07:51:22 +00:00
deploy.sh Switch to pnpm ( #432 ) 2024年06月12日 08:44:42 +00:00
Dockerfile chore(deps): update node.js to v16 ( #442 ) 2024年06月18日 14:44:27 +00:00
LICENSE.md Add woodpecker ci & many linters (and their required fixes) ( #377 ) 2024年06月11日 07:51:22 +00:00
package.json chore(deps): update dependency markdown-it-anchor to v9 ( #440 ) 2024年06月20日 21:52:22 +00:00
pagefind.yml Add search functionality ( #370 ) 2023年11月30日 21:33:22 +00:00
pnpm-lock.yaml chore(deps): lock file maintenance 2024年08月13日 00:15:48 +00:00
README.md add spellchecker ( #439 ) 2024年06月12日 10:20:37 +00:00
renovate.json chore: Configure Renovate ( #433 ) 2024年06月11日 07:47:06 +00:00

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.

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.