My Personal Homepage https://stephan.hadan.de
Find a file
Stephan Hadan 711301ea94
All checks were successful
ci / deploy (push) Successful in 1m18s
updated searchengine blogpost
2025-03-14 20:21:25 +01:00
.github/workflows added develop build pipeline for preview builds 2025-01-24 15:11:51 +01:00
.vscode # neuer Blogartikel begonnen. 2025-02-10 23:43:34 +01:00
docs updated searchengine blogpost 2025-03-14 20:21:05 +01:00
macros Added many changes and bug fixes 2024-12-03 09:52:11 +01:00
overrides fixed cv link on main-page, added some more content 2025-03-13 23:10:54 +01:00
resources first commit 2024-12-02 14:12:33 +01:00
.gitignore Added many changes and bug fixes 2024-12-02 21:51:50 +01:00
CHANGELOG updated searchengine blogpost 2025-03-14 20:21:25 +01:00
LICENSE * fixed badges in README.md 2025-01-23 16:20:25 +01:00
mkdocs.yml fixed cv link on main-page, added some more content 2025-03-13 23:10:54 +01:00
README.md Merge branch 'develop' of ssh://git.hadan-it.com:222/web/stephan.hadan.de into develop 2025-01-24 15:15:33 +01:00
renovate.json cleanup, removed gh-pages dependencies, added renovate-bot config 2025-01-06 15:47:30 +01:00
requirements.txt Merge pull request 'Update dependency mkdocstrings to ~=0.29.0' (#37) from renovate/mkdocstrings-0.x into develop 2025-03-13 23:12:41 +01:00

Stephan Hadan

Stephan Hadan's  private Website

Build

Built with Material for MkDocs

Sites

Environment URL
Staging https://stephan.preview.hadan.de
Production https://stephan.hadan.de

Participate

  1. Make sure you are already have an account at https://git.hadan-it.com. If not pls be so kind to contact support@hadan-it.com.
  2. Contact support@hadan-it.com to be granted access to the stephan.hadan.de-repository.

Development

Checkout this project:

git clone ssh://git@git.hadan-it.com:222/web/stephan.hadan.de.git

Install Python 3.12 with brew:

brew install python@3.12

Create a virtual environment at the project root - this is used to isolate project packages from the global packages.

$ python3.12 -m venv venv

Activate the environment.

$ source venv/bin/activate

Install mkdocs - this is covered in the project requirements file. Make sure you are at projects root.

$ make install

From time to time it is necessary to run the last command to update your mkdocs environment. Just run make install at regular intervals to stay up-to-date.

Upgrade to Python 3.12

Delete your venv folder inside your already existing checked out repository:

rm -rf venv

After that, close your terminal session, create a new one, navigate to your repository again. Then: please continue with "Install Python 3.12 with brew" in the above paragraph and update your environment

Folder structure

.
├── CHANGELOG
├── LICENSE
├── README.md
├── docs
├── macros
│   └── __init__.py
├── mkdocs.yml
├── overrides
├── renovate.json
├── requirements.txt
├── resources
└── venv

Install dependencies for optimization function

macOS

$ brew install cairo freetype libffi libjpeg libpng zlib pngquant

Linux

$ apt-get install libcairo2-dev libfreetype6-dev libffi-dev libjpeg-dev libpng-dev libz-dev pngquant

Install WeasyPrint dependencies

macOS

The easiest way to install WeasyPrint on macOS is to use Homebrew.

When Homebrew is installed, install Python, Pango and libffi:

$ brew install python pango libffi rust jpeg

Generate and preview full documentation locally

In the root of the checked out repository just use the following command to serve the documentation:

$ mkdocs serve

This will spin up your instance on port 8000 reacting on any changes you make until you stop the service with Ctrl+C

Contribute code/documentation

To ensure a reasonable joint development of the documentation, it is necessary to derive each change reasonably into a separately named branch. The following prefixes are available for this purpose:

  • feat/ for new features/documentation
  • hotfix/ for changes to existing documentation

Examples:

  • feat/new-blog-post
  • hotfix/translation-of-blog-entry

After the development of the branch has been completed and extensively tested locally, a corresponding merge request is created in the develop branch and approved by a colleague. This ensures a high quality of the documentation and the necessary review.

Once the request has been approved, it can be merged into the develop branch. An automatic build pipeline builds the new devel status on https://stephan.preview.hadan.de for reasons of overview, the source branch should be deleted accordingly during the merge.

A merge from Devel to Main and a deployment via a build pipeline to https://stephan.hadan.de takes place at regular intervals. This merge is only carried out after consultation.