This repository contains the documentation for LabPlot - a FREE, open source and cross-platform Data Visualization and Analysis software accessible to everyone and trusted by professionals. Read this guide to better understand how to contribute to the documentation.
This documentation is written using reStructuredText
and build with Sphinx. Check out their website to become familiar with it. The benefit of this sort of documentation is that multiple people can work simultaneously on the text. The text will be compiled into the final documentation afterwards.
If you have any problems, have a look into FAQ.
This section will describe the installation process of all applications required to work with this documentation. It contains information for Linux, Windows and MacOS. If you encounter a section that is not for your OS, just skip it.
Git is a version control program used to track all changes made to the documentation. You need it to be able to download this repository (the folder with the documentation) and to modify it.
To have an clearer overview, a graphical user interface can be used to work with Git:
VSCodium is an extensible text editor. It is not required, but can be used to write the documentation and to display live previews of the changes without the need to compile the documentation manually all the time.
The application can be downloaded from:
- Windows: https://vscodium.com/
- Linux: https://flathub.org/apps/com.vscodium.codium
- MacOS: TODO
The reStructuredText
plugin for VSCodium can be used to make it easier to write the documentation. The Esbonio
plugin enables displaying live previews of the documentation. To install these plugins, search for them in the Extensions
section in VSCodium and then install them.
See the image below and follow the same steps for both plugins.
Follow these steps to install the required Python libraries globally on your system.
- On Ubuntu:
sudo apt install python3-sphinx python3-sphinx-rtd-theme
sudo apt install python3-pip
pip install sphinxcontrib-youtube
- On Fedora / RHEL:
sudo dnf install python3-sphinx python3-sphinx_rtd_theme
sudo dnf install python3-pip
pip install sphinxcontrib-youtube
If you don't want to install these libraries globally on your system, you can also install them locally in VSCodium using a virtual environment
.
To do it, open the Command Palette
(Ctrl+Shift+P), search for the Python: Create Environment command
, and select it.
Then install the necessary Python packages by writing the following command in the VScode's terminal:
pip install sphinx sphinx-rtd-theme sphinxcontrib-youtube
In order to contribute to the documentation, whether you are an active KDE member or not, you have to download the documentation first.
Perform the steps below provided for a non-KDE member, except that you don't have to fork the repository.
Also, use the following SSH link to clone the repository instead of the URL link provided below:
[email protected]:marmsoler/labplotdocumentation.git
.
- Register on https://invent.kde.org
- Fork the project (make a copy of the documentation)
- Use Gittyup to clone (create a local copy of the repository):
- Open Gittyup.
File -> Clone Repository
.- Enter the documentation URL:
https://invent.kde.org/marmsoler/labplotdocumentation.git
. - Follow the instructions indicated in the dialog.
As mentioned before, editing of the documentation can be done in VSCodium. There is also a live preview available with the restructuredText
and Ebonio
plugins. So you don't have to compile manually the whole documentation each time you want to display the changes you have made.
To update the HTML version of the documentation execute the following command:
- On Windows:
make.bat
. - On Linux / MacOs:
make html
.
The generated HTML file is located in: build/html/index.html
. Open it in your browser to see the compiled documentation.
To publish your changes online, you have to create a merge request (to merge your changes with the changes which have been already published online). For this create a new branch (because you are not allowed to push your changes directly to the master branch).
In Gittyup just right click on the most recent commit in the commit history and select New Branch
. Choose a name for this branch. Now you are ready to publish your changes to the world by pushing your changes upstream :)
Now, the last step is required to get your changes into the common code:
- Go to the merge request site: https://invent.kde.org/marmsoler/labplotdocumentation/-/merge_requests.
- Create a new merge request with the corresponding button.
- Choose your pushed branch and continue.
- Add a description that explains what you want to achieve with your merge request and then finally create the merge request. Now you have to wait until the continuous integration (an automated test to check that everything is fine) finishes its job. If everything is OK, the corresponding pipeline circle becomes green. However, if it is red, just check what's the problem, fix it offline and push the changes again. When everything is as expected, a maintainer of the repository will merge the code and your changes will be applied to the online version of the documentation.
To check if there are any issues with your local version of the documentation that need to be dealt with, you can execute the followings tests on your computer.
Tests:
- On Windows:
make.bat test
. - On Linux / MacOS:
make test
.
URL checker:
- Windows:
make.bat linkcheck
. - Linux / MacOs:
make linkcheck
.