diff --git a/.github/workflows/testing-and-deployment.yml b/.github/workflows/testing-and-deployment.yml index 67d4cf7a..b246524d 100644 --- a/.github/workflows/testing-and-deployment.yml +++ b/.github/workflows/testing-and-deployment.yml @@ -44,6 +44,7 @@ jobs: - name: Install XVFB run: | + sudo apt update sudo apt-get install libgl1-mesa-glx xvfb pip install pyvista xvfb-run python -c "import pyvista; print(pyvista.Report())" @@ -167,6 +168,7 @@ jobs: - name: Install XVFB on Linux if: ${{ runner.os == 'Linux' }} run: | + sudo apt update sudo apt-get install libgl1-mesa-glx xvfb xvfb-run python -c "import pyvista; print(pyvista.Report())" diff --git a/doc/source/_static/pyansys-logo-black-cropped.png b/doc/source/_static/pyansys-logo-black-cropped.png new file mode 100644 index 00000000..c3b671cf Binary files /dev/null and b/doc/source/_static/pyansys-logo-black-cropped.png differ diff --git a/doc/source/conf.py b/doc/source/conf.py index 54f86c76..446b5ac4 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -1,3 +1,4 @@ +from sphinx_gallery.sorting import FileNameSortKey import warnings import os @@ -15,7 +16,8 @@ # pyvista.set_plot_theme('document') pyvista.global_theme.window_size = (1024, 768) # Save figures in specified directory -pyvista.FIGURE_PATH = os.path.join(os.path.abspath('./images/'), 'auto-generated/') +pyvista.FIGURE_PATH = os.path.join( + os.path.abspath('./images/'), 'auto-generated/') if not os.path.exists(pyvista.FIGURE_PATH): os.makedirs(pyvista.FIGURE_PATH) @@ -99,7 +101,6 @@ # -- Sphinx Gallery Options -from sphinx_gallery.sorting import FileNameSortKey sphinx_gallery_conf = { 'pypandoc': True, # convert rst to md for ipynb @@ -134,12 +135,13 @@ } - # -- Options for HTML output ------------------------------------------------- html_theme = 'pyansys_sphinx_theme' -html_logo = 'https://docs.pyansys.com/_static/pyansys-logo-black-cropped.png' +html_logo = os.path.join("_static", "pyansys-logo-black-cropped.png") html_theme_options = { - "github_url": "https://github.com/pyansys/PyMAPDL", + "github_url": "https://github.com/pyansys/pymapdl-reader", + "show_prev_next": False, + "logo_link": "https://readerdocs.pyansys.com/" # navigate to the main page } # -- Options for HTMLHelp output ------------------------------------------