Skip to content

Commit

Permalink
Move examples back out of docs tree
Browse files Browse the repository at this point in the history
This interfered with doctests collection, running
the examples during the collection,
which, since they are not modules but scripts, blocked it.

Also added git and sphinx build dirs to pytest ignore directories.
  • Loading branch information
maxnoe committed Sep 11, 2023
1 parent 1c56a3e commit d0af02a
Show file tree
Hide file tree
Showing 27 changed files with 10 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,14 +150,14 @@ def setup(app):

sphinx_gallery_conf = {
"examples_dirs": [
"user-guide/examples",
"../examples",
], # path to your example scripts
"subsection_order": ExplicitOrder(
[
"user-guide/examples/tutorials",
"user-guide/examples/algorithms",
"user-guide/examples/core",
"user-guide/examples/visualization",
"../examples/tutorials",
"../examples/algorithms",
"../examples/core",
"../examples/visualization",
]
),
"within_subsection_order": FileNameSortKey,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ filterwarnings = [
"error::astropy.utils.exceptions.AstropyDeprecationWarning",
"error::ctapipe.utils.deprecation.CTAPipeDeprecationWarning",
]
norecursedirs = [
".git",
"_build",
"auto_examples",
]

[tool.towncrier]
package = "ctapipe"
Expand Down

0 comments on commit d0af02a

Please sign in to comment.