Skip to content

Commit

Permalink
Merge pull request #71 from Loop3D/fix-docs-examples-pages
Browse files Browse the repository at this point in the history
Fix docs config so that examples tab appears
  • Loading branch information
AngRodrigues authored May 14, 2024
2 parents e19643d + 89fd60f commit 7f3b392
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 21 deletions.
8 changes: 0 additions & 8 deletions docs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,4 @@ 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", "--"]

WORKDIR /
23 changes: 10 additions & 13 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,19 +105,16 @@
# 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 7f3b392

Please sign in to comment.