Skip to content

Commit 46f2d53

Browse files
Fix nightly doc build (#638)
* fix nightly docbuild * add temp trigger to nightly doc build Co-authored-by: Alex Kaszynski <[email protected]>
1 parent 072fdda commit 46f2d53

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ jobs:
193193
- name: Install OS packages
194194
run: |
195195
sudo apt update
196-
sudo apt install zip pandoc libgl1-mesa-glx xvfb
196+
sudo apt install libgl1-mesa-glx xvfb
197197
198198
- name: Cache pip
199199
uses: actions/cache@v2

.github/workflows/nightly-doc-build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: Nightly Documentation Build
22

33
on:
4+
pull_request:
45
schedule: # UTC at 0400
56
- cron: '0 4 * * *'
67
workflow_dispatch:
@@ -20,22 +21,21 @@ jobs:
2021
- uses: actions/checkout@v2
2122

2223
- name: Setup Python
23-
uses: actions/setup-python@v2.1.4
24+
uses: actions/setup-python@v2
2425
with:
25-
python-version: 3.7
26+
python-version: 3.8
2627

27-
- name: Install, start, and test the virtual framebuffer
28+
- name: Install OS packages
2829
run: |
29-
.ci/setup_headless_display.sh
30-
pip install -r .ci/requirements_test_xvfb.txt
31-
python .ci/display_test.py
30+
sudo apt update
31+
sudo apt install libgl1-mesa-glx xvfb
3232
3333
- name: Install ansys-mapdl-core
3434
run: |
3535
pip install -r requirements_build.txt
3636
python setup.py bdist_wheel
3737
pip install dist/ansys*.whl
38-
python -c "from ansys.mapdl import core as pymapdl; print(pymapdl.Report())"
38+
xvfb-run python -c "from ansys.mapdl import core as pymapdl; print(pymapdl.Report())"
3939
4040
- name: Pull, launch, and validate MAPDL service
4141
run: |
@@ -53,7 +53,7 @@ jobs:
5353
run: |
5454
sudo apt install pandoc -qy
5555
pip install -r requirements_docs.txt
56-
make -C doc html
56+
xvfb-run make -C doc html
5757
5858
- name: Deploy
5959
uses: JamesIves/[email protected]

doc/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158

159159
# -- Options for HTML output -------------------------------------------------
160160
html_theme = "pyansys_sphinx_theme"
161-
html_logo = "https://docs.pyansys.com/_static/pyansys-logo-black-cropped.png"
161+
html_logo = os.path.join("_static", "pyansys-logo-black-cropped.png")
162162
html_theme_options = {
163163
"github_url": "https://github.com/pyansys/pymapdl",
164164
"show_prev_next": False,

requirements_docs.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ pypandoc>=1.5.0
22
matplotlib
33
imageio>=2.5.0
44
imageio-ffmpeg
5-
Sphinx==4.0.3
5+
Sphinx
66
sphinx-autobuild
77
sphinxcontrib-websupport
88
pytest-sphinx

0 commit comments

Comments
 (0)