Skip to content

Commit

Permalink
5 cleanup project structure and workflows (#8)
Browse files Browse the repository at this point in the history
* PYVISTA_OFF_SCREEN using env:

* change to build docs off main branch

* PYVISTA_OFF_SCREEN True as string

* removed autoclose in pv plots

* added pyvista/setup-headless-display-action

* passing tests

* headless for tests

* skipped a test

* skip examples test in ci-cd

* import fix

* install the project to fix doc version import issue
  • Loading branch information
elphick authored Jun 19, 2024
1 parent 8c692fa commit 2329403
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/poetry_sphinx_docs_to_gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ jobs:
run: |
poetry install --all-extras --no-interaction --no-root
- name: Install geometallurgy
run: |
poetry install
- name: Sphinx build
run: |
poetry run sphinx-build docs/source _build
Expand Down
10 changes: 6 additions & 4 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
#
# For the full list of built-in configuration values, see the documentation:
# https://www.sphinx-doc.org/en/master/usage/configuration.html
from pathlib import Path

import os
import sys

sys.path.insert(0, os.path.abspath('../..'))

from pathlib import Path


import numpy as np
import pyvista
import plotly
Expand All @@ -26,9 +31,6 @@
version = geomet.__version__


path = os.path.abspath("../..")
sys.path.insert(0, path)

# -- pyvista configuration ---------------------------------------------------

# Manage errors
Expand Down

0 comments on commit 2329403

Please sign in to comment.