Skip to content

Commit

Permalink
Rename _examples to examples for more legible URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-sadeghi committed Sep 7, 2022
1 parent def255b commit 7a2b598
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public/

# Sphinx docs
**/generated
docs/_examples
docs/examples
openpnm/core/.DS_Store
*/.DS_Store
*.DS_Store
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Applications
:maxdepth: 1
:glob:

../_examples/applications/*
../examples/applications/*
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ Reference
:maxdepth: 1
:glob:

../_examples/reference/**
../examples/reference/**
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@
:maxdepth: 1
:glob:

../_examples/tutorials/*
../examples/tutorials/*
2 changes: 1 addition & 1 deletion docs/basic_usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,4 @@ later.
Now you can run ``geo.show_hist(['pore.old_diameter', 'pore.diameter'])``
to get a quick glance at the histograms of the two distributions.

More complex tasks are explained in the :doc:`examples <../examples/index>` page.
More complex tasks are explained in the :doc:`examples <../_examples/index>` page.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

# Copy examples folder from OpenPNM root to docs folder
import shutil
shutil.copytree('../examples', '_examples', dirs_exist_ok=True)
shutil.copytree('../examples', 'examples', dirs_exist_ok=True)

#------------------------------------------------------------------------#
# General config #
Expand Down
36 changes: 0 additions & 36 deletions docs/examples/index_old.rst

This file was deleted.

1 change: 0 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ simulations.
basic_usage
modules/index
examples/index
examples/index_old

----

Expand Down

0 comments on commit 7a2b598

Please sign in to comment.