From 6093e8df32d98873d0f464f0acdee1ff0f26c7cc Mon Sep 17 00:00:00 2001 From: Hazel Noack Date: Fri, 16 May 2025 17:06:31 +0200 Subject: [PATCH] feat: documented a bit better --- src/articles/documentation/de.md | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/src/articles/documentation/de.md b/src/articles/documentation/de.md index c6ed0a0..8b8dfc6 100644 --- a/src/articles/documentation/de.md +++ b/src/articles/documentation/de.md @@ -1,3 +1,36 @@ # Dokumentation Dies ist die Dokumentation von STSG. + +## Installation + +```sh +python3 -m venv .venv +source .venv/bin/activate +pip install -e . +``` + +## Programm ausführen + +Um einen lokalen http server zu starten kann folgender Befehl ausgeführt werden: + +``` +python3 -m http.server 1312 +``` + +Dann ist die Seite auf `localhost:1312` zu finden + +Man kann die Seite entweder normal bauen mit `stsg` oder mit `stsg_dev` einen hot reload server starten. + +## Favicon bauen + +Dies ist einfach nur ein hilfreiches Skript um favicons zu erstellen. Dies ist nicht unbedingt notwendig. Aber bei verwendung muss inkscape und imagemagick installiert sein. + +``` +cd src/static/assets +inkscape -w 16 -h 16 -o 16.png logo.svg +inkscape -w 32 -h 32 -o 32.png logo.svg +inkscape -w 48 -h 48 -o 48.png logo.svg + +convert 16.png 32.png 48.png ../icon.ico +```