Skip to content

Commit

Permalink
docs: removing LS import for config
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed Feb 14, 2024
1 parent d90df18 commit bcee039
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,21 @@
"LoopStructural.interpolators._cython",
]
# Sphinx gallery examples
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},
}
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

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

0 comments on commit bcee039

Please sign in to comment.