Skip to content

Commit f2e33b6

Browse files
committed
[skip ci] TVB-3135. Generate online help.
1 parent 9b05fb7 commit f2e33b6

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/build-docker-image.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,13 @@ jobs:
6565
- name: Prepare TVB online help
6666
run: |
6767
python3 -m pip install sphinx
68-
cd tvb_build
68+
cd tvb_library
69+
python3 -m pip install -e .
70+
cd ../tvb_bin
71+
python3 -m pip install -e .
72+
cd ../tvb_build
6973
python3 build_step1.py ${{ github.ref_name }} True
70-
ls tvb_build/docker
74+
ls docker/step1/TVB_Distribution
7175
7276
- name: Build Docker image
7377
uses: docker/build-push-action@v6

tvb_build/build_step1.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
import requests
4545

4646
import tvb_bin
47-
import tvb_data
4847
from subprocess import Popen, PIPE
4948

5049
# source paths
@@ -53,7 +52,6 @@
5352
FW_FOLDER = os.path.join(TVB_ROOT, 'tvb_framework')
5453
LICENSE_PATH = os.path.join(FW_FOLDER, 'LICENSE')
5554
RELEASE_NOTES_PATH = os.path.join(TVB_ROOT, 'tvb_documentation', 'RELEASE_NOTES')
56-
DATA_SRC_FOLDER = os.path.dirname(tvb_data.__file__)
5755
DEMOS_MATLAB_FOLDER = os.path.join(TVB_ROOT, 'tvb_documentation', 'matlab')
5856

5957
# dest paths
@@ -117,6 +115,9 @@
117115

118116

119117
def _copy_dataset(dataset_files, dataset_destination):
118+
import tvb_data
119+
DATA_SRC_FOLDER = os.path.dirname(tvb_data.__file__)
120+
120121
for pth in dataset_files:
121122
rel_pth = pth.split('/')
122123
origin = os.path.join(DATA_SRC_FOLDER, *rel_pth)
@@ -263,5 +264,5 @@ def build_step1(only_online_help=False):
263264
# ensure_tvb_current_revision(branch, token)
264265
only_online_help = False
265266
if len(sys.argv) > 2:
266-
only_online_help = bool(sys.argv[3])
267+
only_online_help = bool(sys.argv[2])
267268
build_step1(only_online_help)

0 commit comments

Comments
 (0)