Installation Developer

Installation Developer#

To create a development environment, you have to make sure that the requirements from Installation are installed on your system.

First clone the repository to your system and change your current working directory inside the downloaded folder.

git clone https://github.com/i4s-htwk/sStatics.git
cd sStatics

Then create and activate a virtual environment.

py -3.11 -m venv venv
.\venv\Scripts\activate.bat

Finally install sStatics’s development dependencies and make the package editable.

pip install -e .[dev]
pre-commit install

Note

The pre-commit hooks automatically run code checks before each commit, helping to maintain consistent code style and catch common errors early.

Documentation#

To generate and edit the sStatics documentation locally, you need to have Pandoc installed. Pandoc is used to convert between different formats, which is especially important for including Jupyter notebooks in the Sphinx (.rst) documentation.

More information on installing and using Pandoc can be found here:

To build the documentation and start a live preview server:

on Windows:

cd doc
start make livehtml

on macOS:

cd doc
make livehtml

This command launches a live server that automatically rebuilds the documentation whenever you edit source files or notebooks, allowing you to see changes in real time.