Skip to content

Commit

Permalink
docs: remove lavavu; no need for 3D vis for the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
AngRodrigues committed May 14, 2024
1 parent e19643d commit e8b1ada
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 17 deletions.
5 changes: 1 addition & 4 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,9 @@ RUN conda install -c conda-forge --file ./docs/requirements.txt -y

RUN pip install .

# RUN pip install lavavu-osmesa==1.8.45
ENV LD_LIBRARY_PATH=/opt/conda/lib/python3.10/site-packages/lavavu_osmesa.libs

ENV TINI_VERSION v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
# ENTRYPOINT ["/tini", "--"]
ENTRYPOINT ["/tini", "--"]

WORKDIR /
24 changes: 11 additions & 13 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,17 @@
# Sphinx gallery examples


try:
from LoopStructural.visualisation.sphinx_scraper import Scraper as LoopScraper
from sphinx_gallery.sorting import ExampleTitleSortKey

sphinx_gallery_conf = {
"examples_dirs": ["../examples/"],
"gallery_dirs": ["_auto_examples/"], # path to where to save gallery generated output
"image_scrapers": ("matplotlib", LoopScraper()),
"within_subsection_order": ExampleTitleSortKey,
"reference_url": {"LoopStructural": None},
}
except ImportError:
pass

# from LoopStructural.visualisation.sphinx_scraper import Scraper as LoopScraper
from sphinx_gallery.sorting import ExampleTitleSortKey

sphinx_gallery_conf = {
"examples_dirs": ["../examples/"],
"gallery_dirs": ["_auto_examples/"], # path to where to save gallery generated output
"image_scrapers": ("matplotlib"),
"within_subsection_order": ExampleTitleSortKey,
"reference_url": {"LoopStructural": None},
}

# def setup(app):
# app.add_stylesheet('custom.css')

0 comments on commit e8b1ada

Please sign in to comment.