Contribution Guide

We are looking forward to every conbtirbution you possibly can bring in.

If you encounter serious errors while using eventula and you are not able to fix them, feel free to open issues on https://github.com/Lan2Play/eventula-manager/issues

If you plan to add a feature to eventula, please open an issue as well so no one has to do work when someone already working on something.

You can also join our discord to get in contact with us and the other contributors:

https://discordapp.com/api/guilds/748086853449810013/widget.png?style=banner3

Documentation

This documentation is written in restructured text and its build using sphinx and the read the docs theme. The source can be found in our main repository in the docs/ subfolder (https://github.com/Lan2Play/eventula-manager/tree/master/src). Feel free to PR corrections or expansions of the documentation at any time!

To build the documentation locally to the docs/build subfolder you have two options:

  • Building with docker and the make file (recommended)

  • Building with docker

  • Building manually with the sphinx make file

Building with docker and the make file

Makefile & docker - Windows

Prereqirements:

Warning

If you are using git, consider cloning the repository within your wsl distro instead of with git for windows to get around line ending problems!

To build the documentation just enter yor wsl2 distribution and follow the Linux part below!

Makefile & docker -Linux

Prereqirements:

In order to build the documentation run

make docs-html

Building with docker

Docker Windows

Prereqirements:

Warning

If you are using git, consider cloning the repository within your wsl distro instead of with git for windows to get around line ending problems!

To build the documentation just enter yor wsl2 distribution and follow the Linux part below!

Docker Linux

Prereqirements:

In order to build the documentation run the following command inside the root of the cloned repository

docker run --rm -v $PWD/docs:/docs lan2play/docker-sphinxbuild:latest

Building manually with the sphinx make file

Manual Windows

Prereqirements:

open a cmd or powershell and change your folder to the docs/ subfolder and run

CMD

make.bat html

Psh

./make.bat html

Manual Linux

Prereqirements:

open your favorite shell and change your folder to the docs/ subfolder and run

make html

Localisation

We try to implement the software and the documentation localable, but we currently can only do german and english translations, therefore any help is appreciated!

Documentation localisation

Todo!

Eventula localisation

translation status

Translation status

translate with weblate

You can find the client translation on our Weblate project

translate without weblate

You can find the localisation files in src/resources/lang/. If you want to fix mistakes, you can find the files for every translated language in the corresponding subfolder. If you want to add a whole language, copy the whole en folder and rename it to the Language code you want to add. The language files are Key - Value pair files, just edit the Value in there.

The localisations could be accessed in the PHP code with (example whoeweare from src/resources/lang/de/about.php):

__('about.whoeweare')

or within blade files (Views):

@lang('about.whoeweare')

Code

If you want to get into coding for eventula, check out the Getting Started developer documentation, there you can find an introduction into how to setup your development environment and some specific parts of eventula where we would love to see adaption for more usecases.

Some things you should think of before starting out implementing new features:

  • Can another feature thats already implemented be expanded? yes? then go for that instead of Building complete new stuff!

  • Does the addition / change might affect other usecases than your own? Build your changes with legacy support in mind!

  • Try to follow the coding Style which is used within eventula, just look around in our features to see which case is handled mostly in which manner

  • Why i shouldn’t join the eventula discord developer channel for discussion?

To start a new code contribution please:

  • open an issue to announce that you are working on a feature/change to get thoughts from the other developers and to prevent incompatibillities

  • make your fork PugSharp (if you are not already a acknowledged developer who can create branches on our repository)

  • make a new branch based on dev with the Name feature/examplefeature

  • as soon as you have code, please open a draft pull request against the dev branch.

Before you want to PR changes you should ask yourself some questions:

  • Have i tried to update a running version from eventula with data to the one with my changes? Are the changes update proof?

  • Have i changed the admin documentation on the affected parts?

  • Have i implemented all strings with localized variables? See Localisation!

  • Have i changed the developer documentation on the affected parts?

  • Have i changed the readme.md on the affected parts?

  • Does my pull request have a good speaking name that represents my changes in the changelog?

  • Do i have merged the current dev branch into my feature branch?

Note

Please open your pull requests against our dev branch. We will not merge to master directly!

What will happen after you have converted to the finalized pull request:

  • Someone of the core developer team will review your code and will help you to find missing things or bugs.

  • As soon as the review is done, your code will be merged to dev (where can be tested for a few days) and will get merged to main as soon as possible. Currently we make releases in a rolling manner.