Skip to content

Commit

Permalink
split examples folder
Browse files Browse the repository at this point in the history
  • Loading branch information
r-akemii committed Dec 12, 2024
1 parent f2a003f commit 5ea6c05
Show file tree
Hide file tree
Showing 42 changed files with 30 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
- name: Build documentation
run: |
jupyter nbconvert --to rst docs/source/useful_information/validation_benchmarking/IPF_benchmark.ipynb
jupyter nbconvert --to rst docs/source/traffic_assignment/validation_benchmarking/IPF_benchmark.ipynb
sphinx-build -M latexpdf docs/source docs/source/_static -D plot_gallery=False
sphinx-build -D plot_gallery=False -b html docs/source docs/build
python -m zipfile -c AequilibraE.zip docs/build
Expand Down
9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
_build
_static
_templates
docs/source/sg_execution_times.rst
docs/source/_auto_examples
docs/source/useful_links/_generated
docs/source/aequilibrae_project/project_database/data_model
docs/source/aequilibrae_project/transit_database/data_model
sg_execution_times.rst
_auto_examples
_generated
data_model

# User-specific stuff:
.idea/**/workspace.xml
Expand Down
2 changes: 2 additions & 0 deletions docs/source/aequilibrae_project/examples/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
AequilibraE Project
-------------------
25 changes: 12 additions & 13 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,21 +72,20 @@

# Change plot_gallery to True to start building examples again
sphinx_gallery_conf = {
"examples_dirs": ["examples"], # path to your example scripts
"gallery_dirs": ["_auto_examples"], # path to where to save gallery generated output
"examples_dirs": ["aequilibrae_project/examples",
"network_manipulation/examples",
"project_components/examples",
"route_choice/examples",
"traffic_assignment/examples",
"transit_assignment/examples"], # path to your example scripts
"gallery_dirs": ["aequilibrae_project/_auto_examples",
"network_manipulation/_auto_examples",
"project_components/_auto_examples",
"route_choice/_auto_examples",
"traffic_assignment/_auto_examples",
"transit_assignment/_auto_examples"], # path to where to save gallery generated output
"capture_repr": ("_repr_html_", "__repr__"),
"remove_config_comments": True,
"subsection_order": ExplicitOrder(
[
"examples/creating_models",
"examples/editing_networks",
"examples/skimming",
"examples/assignment_workflows",
"examples/aequilibrae_without_a_model",
"examples/visualization",
"examples/other_applications",
]
),
"plot_gallery": True,
}

Expand Down
2 changes: 0 additions & 2 deletions docs/source/examples/aequilibrae_without_a_model/readme.rst

This file was deleted.

2 changes: 0 additions & 2 deletions docs/source/examples/assignment_workflows/readme.rst

This file was deleted.

2 changes: 0 additions & 2 deletions docs/source/examples/creating_models/readme.rst

This file was deleted.

3 changes: 0 additions & 3 deletions docs/source/examples/editing_networks/readme.rst

This file was deleted.

2 changes: 0 additions & 2 deletions docs/source/examples/other_applications/readme.rst

This file was deleted.

4 changes: 0 additions & 4 deletions docs/source/examples/readme.rst

This file was deleted.

2 changes: 0 additions & 2 deletions docs/source/examples/skimming/readme.rst

This file was deleted.

3 changes: 0 additions & 3 deletions docs/source/examples/visualization/readme.rst

This file was deleted.

2 changes: 2 additions & 0 deletions docs/source/network_manipulation/examples/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Network Manipulation
--------------------
2 changes: 2 additions & 0 deletions docs/source/project_components/examples/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Project Components
------------------
2 changes: 2 additions & 0 deletions docs/source/route_choice/examples/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Route Choice
------------
2 changes: 2 additions & 0 deletions docs/source/traffic_assignment/examples/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Traffic Assignment
------------------
Binary file not shown.
2 changes: 2 additions & 0 deletions docs/source/transit_assignment/examples/index.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Transit Assignment
------------------
2 changes: 1 addition & 1 deletion docs/website/check_documentation_versions.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# We check if the reference to all existing versions were added by checking
# that the current version is referenced
with open(os.path.join(npth, "docs/source/useful_information/version_history.rst"), mode="r") as f:
with open(os.path.join(npth, "docs/source/useful_links/version_history.rst"), mode="r") as f:
txt = f.read()

print(f"python/V.{release_version}")
Expand Down

0 comments on commit 5ea6c05

Please sign in to comment.