Skip to content

Commit

Permalink
flatten structure
Browse files Browse the repository at this point in the history
  • Loading branch information
StFroese committed Sep 8, 2023
1 parent 1753542 commit 23136dc
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 18 deletions.
8 changes: 3 additions & 5 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ help:

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile examples tutorials
%: Makefile examples
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

examples:
mkdir user-guide/examples

tutorials:
mkdir user-guide/tutorials
mkdir -p user-guide/examples

clean:
rm -rf api
rm -rf user-guide/examples
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)


Expand Down
14 changes: 11 additions & 3 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,16 +144,24 @@ def setup(app):
]

# Sphinx gallery config
from sphinx_gallery.sorting import ExplicitOrder, FileNameSortKey
sphinx_gallery_conf = {
"examples_dirs": [
"../examples/examples",
"../examples/tutorials",
], # path to your example scripts
"gallery_dirs": [
"user-guide/examples",
"user-guide/tutorials",
], # path to where to save gallery generated output
"nested_sections": True,
'subsection_order': ExplicitOrder(
[
'../examples/examples/algorithms',
'../examples/examples/core',
'../examples/examples/visualization',
'../examples/examples/tutorials'
]
),
"within_subsection_order": FileNameSortKey,
"nested_sections": False,
"copyfile_regex": r"index.rst|.*\.png|.*\.json",
"filename_pattern": r".*\.py",
"promote_jupyter_magic": True,
Expand Down
1 change: 0 additions & 1 deletion docs/user-guide/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@ User Guide
getting-started
tools
data_models/index
tutorials/index
examples/index
FAQ
9 changes: 0 additions & 9 deletions examples/examples/index.rst

This file was deleted.

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

0 comments on commit 23136dc

Please sign in to comment.