Skip to content

Commit 0f54db5

Browse files
committed
Ensures correct PYTHONPATH for documentation build
1 parent 9b4fe0a commit 0f54db5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/build-docs.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,9 @@ jobs:
106106
# The following step is needed to avoid the following message during the build:
107107
# "Matplotlib is building the font cache; this may take a moment"
108108
- name: Pre-build site step
109-
run: PYTHONPATH=$(pwd)/src python -c "import easydiffraction"
109+
run: |
110+
export PYTHONPATH=$(pwd)/src:$PYTHONPATH
111+
python -c "import easydiffraction"
110112
111113
# Create the mkdocs.yml configuration file
112114
# The file is created by merging two files:
@@ -121,6 +123,7 @@ jobs:
121123
- name: Build site with MkDocs
122124
run: |
123125
export JUPYTER_PLATFORM_DIRS=1
126+
export PYTHONPATH=$(pwd)/src:$PYTHONPATH
124127
mkdocs build
125128
126129
# Set up the Pages action to configure the static files to be deployed

0 commit comments

Comments
 (0)