Closed prjemian closed 2 years ago
In local builds, the documentation is not missing, on-line is missing. Check the most recent build log on GitHub:
Summary: Failed to import
lots of parts, thus documentation is missing.
act
is a great tool for testing GitHub Actions workflows. First problem it finds:
[Publish Sphinx Docs to GitHub Pages/build-docs] 🐳 docker exec cmd=[bash --noprofile --norc -e -o pipefail /var/run/act/workflow/1] user= workdir=
| /var/run/act/workflow/1: line 2: pip: command not found
With pip
installed, the next problem:
[Publish Sphinx Docs to GitHub Pages/build-docs] ❓ ::group:: Running Sphinx builder
| Running Sphinx v5.1.1
|
| Configuration error:
| There is a programmable error in your configuration file:
|
| Traceback (most recent call last):
| File "/usr/local/lib/python3.8/dist-packages/sphinx/config.py", line 347, in eval_config_file
| exec(code, namespace)
| File "/home/zorinvm/Documents/projects/prjemian/spec2nexus/docs/source/conf.py", line 13, in <module>
| import spec2nexus
| ModuleNotFoundError: No module named 'spec2nexus'
|
| Error: Invalid status code: 2
Note the workflow uses sphinx-notes/pages@master
which is not the latest sphinx-notes/pages@v2
With the workflow action update, the next problem is:
| ERROR: Could not find a version that satisfies the requirement matplotlib-base (from -r /home/zorinvm/Documents/projects/prjemian/spec2nexus/././requirements.txt (line 3)) (from versions: none)
| ERROR: No matching distribution found for matplotlib-base (from -r /home/zorinvm/Documents/projects/prjemian/spec2nexus/././requirements.txt (line 3))
That's true so change to matplotlib
.
This error again:
[Publish Sphinx Docs to GitHub Pages/build-docs] ❓ ::group:: Running Sphinx builder
| Running Sphinx v5.1.1
|
| Configuration error:
| There is a programmable error in your configuration file:
|
| Traceback (most recent call last):
| File "/usr/local/lib/python3.8/dist-packages/sphinx/config.py", line 347, in eval_config_file
| exec(code, namespace)
| File "/home/zorinvm/Documents/projects/prjemian/spec2nexus/docs/source/conf.py", line 13, in <module>
| import spec2nexus
| ModuleNotFoundError: No module named 'spec2nexus'
|
The root cause was the source file rearrangement of src/spec2nexus
-> spec2nexus
.
This page has no content: https://prjemian.github.io/spec2nexus/supplied_plugins/spec_common.html