8
2
Fork
You've already forked documentation
4
Global Documentation of GNU Health, including: Hospital Information System (HIS), MyGNUHealth - Personal Health Record, Thalamus - GNU Health Federation & Ansible - Automatic Deployment
  • Python 46.7%
  • HTML 30.1%
  • Shell 14.6%
  • Makefile 6.9%
  • CSS 1.7%
Luis Falcon aceff59ca0
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Update GNU Health embedded installation for RaspiOS - HIS 5.0 series
2025年10月24日 10:22:59 +01:00
ansible Mark Ansible as community effort external to official package 2025年09月30日 12:55:23 +02:00
css Add develop branch with docs Welcome Page 2024年03月14日 10:40:26 +01:00
his Update GNU Health embedded installation for RaspiOS - HIS 5.0 series 2025年10月24日 10:22:59 +01:00
img Update top level index.html 2024年03月14日 14:47:31 +01:00
mygnuhealth Issue #40 . Update screenshots 2024年06月30日 18:44:43 +00:00
thalamus Update to 0.9.16. Reduce the size of Thalamus banner 2024年03月26日 18:46:52 +00:00
.gitignore Add .woodpecker.yaml with build step 2024年03月14日 12:01:01 +01:00
.woodpecker.yaml Add warning to future docs as well 2024年03月27日 22:29:08 +01:00
add_warning_to_html.sh Put warning to Ansible docs on test branch as well 2024年03月27日 22:21:48 +01:00
domains-main Add .domains for main 2024年03月15日 19:01:18 +01:00
index.html Modify commit message, update global index.html again 2024年03月14日 15:34:13 +01:00
LICENSE Add README & LICENSE, reduce mv commands 2024年03月14日 17:33:52 +01:00
README.md Update README 2024年03月15日 19:36:51 +01:00

GNU Health Documentation

Welcome to the GNU Health Documentation!

Source and Build repositories

We are gathering the source for the documentations of all subprojects here:

https://codeberg.org/gnuhealth/documentation

Additionally this repository contains a top level index.html with links to the subprojects.

Currently the source of the test branch gets deployed automatically into this repository:

https://codeberg.org/gnuhealth/testpages

The result can be viewed here:

https://gnuhealth.codeberg.page/testpages/

The main branch gets deployed into the top level pages repository. This is used by our official documentation on https://docs.gnuhealth.org:

https://codeberg.org/gnuhealth/pages

https://gnuhealth.codeberg.page/

Finally we also have a future branch to document upcoming functionality and that one also gets deployed:

https://codeberg.org/gnuhealth/futurepages

https://gnuhealth.codeberg.page/futurepages/

Editing the documentation

From Browser

The new approach allows to edit files from browser and see the results without building the documentation locally. This makes it much easier to contribute to the documentation for people without technical background.

You need to log in to Codeberg and get access permissions for the source repository. You can even log in using GitLab or GitHub.

Building locally

For major changes it is recommended to edit and rebuild locally before committing. For the Hospital Information System (HIS) you can find instructions how to build the documentation and conventions to follow here:

https://gnuhealth.codeberg.page/testpages/his/techguide/contributing.html#writing-the-documentation

How to setup the automatic builds?

First of all we had to ask for CI resources:

Codeberg-e.V./requests#195

Having them granted we could enable the source repository on https://ci.codeberg.org.

Codeberg Pages serves HTML files of our main branch of our global pages repository on https://codeberg.org/gnuhealth/pages. Besides any other repository can have a branch pages that will be accessible on https://codeberg.org/gnuhealth/pages/<repository_name>.

Inside the source repository we define a pipeline in a file called .woodpecker.yaml. This gets triggered on every commit. It creates a Docker containers for every defined step. That's where all the magic happens: We run the build commands and set up the desired directory structure. Depending on the branch we push the results in the desired build directory.

To be able to push we use a deploy key. For this we first have to create a local SSH key pair. The public key is placed on the target build directories as deploy key (inside the repository click Settings -> Deploy Keys -> Add Deploy Key). The private key is placed on the enabled repository section on ci.codeberg.org (Click on enabled repo -> Settings -> Secrets -> Add Secret). Make sure not to destroy the formatting and to have a blank line in the end when pasting. Besides the name of the secret has to match the usage in woodpecker.yaml.