Skip to content

Commit

Permalink
DOC: fix includes (#38839)
Browse files Browse the repository at this point in the history
  • Loading branch information
afeld authored Dec 31, 2020
1 parent fd5422f commit 784de76
Show file tree
Hide file tree
Showing 10 changed files with 13 additions and 12 deletions.
7 changes: 6 additions & 1 deletion doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,12 @@
"contributors", # custom pandas extension
]

exclude_patterns = ["**.ipynb_checkpoints"]
exclude_patterns = [
"**.ipynb_checkpoints",
# to ensure that include files (partial pages) aren't built, exclude them
# https://github.com/sphinx-doc/sphinx/issues/1965#issuecomment-124732907
"**/includes/**",
]
try:
import nbconvert
except ImportError:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<ul class="list-group list-group-flush">
<li class="list-group-item">

.. include:: titanic.rst
.. include:: includes/titanic.rst

.. raw:: html

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<ul class="list-group list-group-flush">
<li class="list-group-item">

.. include:: titanic.rst
.. include:: includes/titanic.rst

.. ipython:: python
Expand Down
2 changes: 1 addition & 1 deletion doc/source/getting_started/intro_tutorials/04_plotting.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<ul class="list-group list-group-flush">
<li class="list-group-item">

. include:: air_quality_no2.rst
.. include:: includes/air_quality_no2.rst

.. ipython:: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<ul class="list-group list-group-flush">
<li class="list-group-item">

. include:: air_quality_no2.rst
.. include:: includes/air_quality_no2.rst

.. ipython:: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<ul class="list-group list-group-flush">
<li class="list-group-item">

.. include:: titanic.rst
.. include:: includes/titanic.rst

.. ipython:: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<ul class="list-group list-group-flush">
<li class="list-group-item">

.. include:: titanic.rst
.. include:: includes/titanic.rst

.. ipython:: python
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">
.. include:: titanic.rst
.. include:: includes/titanic.rst

.. ipython:: python
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
:orphan:

.. raw:: html

<div data-toggle="collapse" href="#collapsedata" role="button" aria-expanded="false" aria-controls="collapsedata">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
:orphan:

.. raw:: html

<div data-toggle="collapse" href="#collapsedata" role="button" aria-expanded="false" aria-controls="collapsedata">
Expand Down

0 comments on commit 784de76

Please sign in to comment.