diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4ba8ce13a55d4906b8f2623f9877c9cfab48410f..2a1cdb21d246d3dbaff1b6531449fe3b08354a1f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -113,6 +113,10 @@ build-developers-doc: - ./build.sh # Create html documentation - cd ../../src + - python3 -m venv doc-venv + - . doc-venv/bin/activate + - pip3 install -U -r ../requirements.txt + - pip3 install -U pdoc3 - pdoc --html . # Create archive - tar cf html.tar ./html diff --git a/requirements.txt b/requirements.txt index 2f9bcc4aeebbed35ef1b113f47c7c74c48eca37d..6c710e21e493b7d43c1d94cdc099d99882071f2f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,6 +2,7 @@ PyQt5==5.15.4 PyQt5-Qt5==5.15.2 PyQt5-sip==12.12.2 #PyQtWebEngine==5.15.6 +QsciScintilla==2.14.1 pyqtgraph>=0.12.1 matplotlib>=3.4.1 numpy>=1.24.2 diff --git a/src/View/Tools/PamhyrPythonEditor.py b/src/View/Tools/PamhyrPythonEditor.py index b162bb9cb75f1b6568718e9c84e14f609ec2f3ec..2cc1680c98ca0015fc427fdf778bc5a36097032e 100644 --- a/src/View/Tools/PamhyrPythonEditor.py +++ b/src/View/Tools/PamhyrPythonEditor.py @@ -23,6 +23,7 @@ from PyQt5.Qsci import QsciScintilla, QsciLexerPython logger = logging.getLogger() + class PamhyrPythonEditor(QsciScintilla): def __init__(self, parent=None): super(PamhyrPythonEditor, self).__init__(parent)