Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding dynamic plots in documentation #2241

Draft
wants to merge 42 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
47549f4
maint: changing `pyproject.toml` and `conf.py`
clatapie Aug 11, 2023
4d82389
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Aug 11, 2023
e12f559
Merge branch 'main' into doc/add-dynamic-plots
clatapie Aug 14, 2023
2dbc00f
maint: updating `pyproject.toml`
clatapie Aug 14, 2023
d14efa2
Merge branch 'doc/add-dynamic-plots' of https://github.com/ansys/pyma…
clatapie Aug 14, 2023
9e70504
Merge branch 'main' into doc/add-dynamic-plots
clatapie Aug 16, 2023
41f948b
fix: `pyvista.BUILDING_GALLERY` set to True
clatapie Aug 16, 2023
20540dc
Merge branch 'main' into doc/add-dynamic-plots
clatapie Aug 17, 2023
52bde87
Merge branch 'main' into doc/add-dynamic-plots
clatapie Aug 18, 2023
fda24ca
Merge branch 'main' into doc/add-dynamic-plots
clatapie Aug 18, 2023
8093a59
Merge branch 'main' into doc/add-dynamic-plots
clatapie Aug 28, 2023
d3331d2
Merge branch 'main' into doc/add-dynamic-plots
clatapie Sep 6, 2023
e72e57e
Apply suggestions from code review
clatapie Sep 6, 2023
da94c2e
doc: cleaning the code
clatapie Sep 6, 2023
1cf1245
Merge branch 'main' into doc/add-dynamic-plots
clatapie Oct 5, 2023
4558229
doc: adding `trame` dependency
clatapie Oct 5, 2023
44f3aa2
Update the image cache
clatapie Oct 5, 2023
a307f99
Empty comment to trigger CICD
clatapie Oct 5, 2023
63e9e0a
Update the image cache
clatapie Oct 5, 2023
bb330e6
Empty comment to trigger CICD
clatapie Oct 6, 2023
59f46df
fix: `troubleshoot.rst`
clatapie Oct 6, 2023
dde9f96
Merge branch 'main' into doc/add-dynamic-plots
clatapie Oct 6, 2023
8b59c67
Merge branch 'main' into doc/add-dynamic-plots
clatapie Oct 9, 2023
69ab620
fix: temp cicd
clatapie Oct 9, 2023
44176c6
Merge branch 'main' into doc/add-dynamic-plots
clatapie Oct 9, 2023
77ef233
doc: fixing `troubleshoot.rst` file
clatapie Oct 9, 2023
2e4c772
Update the image cache
clatapie Oct 9, 2023
10d615c
maint: fixing doc build
clatapie Oct 9, 2023
8423843
doc: fixing internal links
clatapie Oct 9, 2023
fcb9a69
doc: fixing internal links
clatapie Oct 9, 2023
7238bd3
Update the image cache
clatapie Oct 9, 2023
85d5bf6
Merge branch 'main' into doc/add-dynamic-plots
clatapie Oct 13, 2023
ff8b254
Update pyproject.toml
clatapie Oct 27, 2023
f86d1b6
Merge branch 'main' into doc/add-dynamic-plots
clatapie Oct 27, 2023
b234f14
Merge branch 'main' into doc/add-dynamic-plots
germa89 Feb 15, 2024
aa5cfc9
Minimizing changes
germa89 Feb 15, 2024
4f5aa32
removing old file
germa89 Feb 15, 2024
4348efe
Merge branch 'main' into doc/add-dynamic-plots
clatapie Feb 19, 2024
a51f9bd
Merge branch 'main' into doc/add-dynamic-plots
clatapie Feb 21, 2024
2251e38
Merge branch 'main' into doc/add-dynamic-plots
clatapie Feb 21, 2024
ea2f9ea
chore: merge remote-tracking branch 'origin/main' into doc/add-dynami…
germa89 Nov 25, 2024
5482de7
chore: adding changelog file 2241.documentation.md [dependabot-skip]
pyansys-ci-bot Nov 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 22 additions & 3 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from ansys_sphinx_theme import ansys_favicon, get_version_match, pyansys_logo_black
import numpy as np
import pyvista
from pyvista.plotting.utilities.sphinx_gallery import DynamicScraper
from sphinx.application import Sphinx
from sphinx_gallery.sorting import FileNameSortKey

Expand All @@ -22,6 +23,18 @@
# must be less than or equal to the XVFB window size
try:
pyvista.global_theme.window_size = np.array([1024, 768])
# Manage errors
pyvista.set_error_output_file("errors.txt")
# Ensure that offscreen rendering is used for docs generation
pyvista.OFF_SCREEN = True # Not necessary - simply an insurance policy
# Preferred plotting style for documentation
pyvista.set_plot_theme("document")
pyvista.global_theme.font.size = 22
pyvista.global_theme.font.label_size = 22
pyvista.global_theme.font.title_size = 22
pyvista.global_theme.return_cpos = False
pyvista.set_jupyter_backend(None)

except AttributeError:
# for compatibility with pyvista < 0.40
pyvista.rcParams["window_size"] = np.array([1024, 768])
clatapie marked this conversation as resolved.
Show resolved Hide resolved
Expand Down Expand Up @@ -69,6 +82,7 @@
extensions = [
"jupyter_sphinx",
"numpydoc",
"pyvista.ext.viewer_directive",
"sphinx.ext.autodoc",
"sphinx.ext.autosummary",
"sphinx.ext.coverage",
Expand Down Expand Up @@ -237,9 +251,10 @@
"backreferences_dir": None,
# Modules for which function level galleries are created. In
"doc_module": "ansys-mapdl-core",
"image_scrapers": ("pyvista", "matplotlib"),
"ignore_pattern": "flycheck*",
"thumbnail_size": (350, 350),
"image_scrapers": (DynamicScraper(), "matplotlib"),
# "ignore_pattern": "flycheck*",
# "thumbnail_size": (350, 350),
"reset_modules_order": "both",
clatapie marked this conversation as resolved.
Show resolved Hide resolved
}
# ---

Expand Down Expand Up @@ -285,6 +300,10 @@
}
html_show_sourcelink = False

# If true, "Created using Sphinx" is shown in the HTML footer. Default is True.
html_show_sphinx = False


# -- Options for HTMLHelp output ---------------------------------------------

# Output file base name for HTML help builder.
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ doc = [
"pypandoc==1.11",
"pytest-sphinx==0.5.0",
"pythreejs==2.4.2",
"pyvista[trame]==0.41.1",
"pyvista[jupyter,trame]==0.41.1",
"sphinx-autobuild==2021.3.14",
"sphinx-autodoc-typehints==1.24.0",
"sphinx-copybutton==0.5.2",
Expand All @@ -98,6 +98,11 @@ doc = [
"sphinxemoji==0.2.0",
"sphinx-reredirects==0.1.2",
"vtk==9.2.6",
"sphinx-toolbox",
"sphinxcontrib-asciinema",
"sphinxcontrib-websupport",
"typed-ast",
"pydata-sphinx-theme",
clatapie marked this conversation as resolved.
Show resolved Hide resolved
]

[tool.flit.module]
Expand Down
Loading