From 4aac76c624fb6160cd2dd930f2fd7f5b119efd8a Mon Sep 17 00:00:00 2001 From: Aidan Feldman Date: Wed, 30 Dec 2020 19:05:57 -0500 Subject: [PATCH] DOC: fix includes - Added missing `.` to the `.. include`s - Put the includes in a folder to exclude from Sphinx, to avoid `:orphan:` being written to the HTML --- doc/source/conf.py | 7 ++++++- .../getting_started/intro_tutorials/02_read_write.rst | 2 +- .../getting_started/intro_tutorials/03_subset_data.rst | 2 +- doc/source/getting_started/intro_tutorials/04_plotting.rst | 2 +- .../getting_started/intro_tutorials/05_add_columns.rst | 2 +- .../intro_tutorials/06_calculate_statistics.rst | 2 +- .../intro_tutorials/07_reshape_table_layout.rst | 2 +- .../getting_started/intro_tutorials/10_text_data.rst | 2 +- .../intro_tutorials/{ => includes}/air_quality_no2.rst | 2 -- .../intro_tutorials/{ => includes}/titanic.rst | 2 -- 10 files changed, 13 insertions(+), 12 deletions(-) rename doc/source/getting_started/intro_tutorials/{ => includes}/air_quality_no2.rst (98%) rename doc/source/getting_started/intro_tutorials/{ => includes}/titanic.rst (99%) diff --git a/doc/source/conf.py b/doc/source/conf.py index 951a6d4043786..7f7309bae7031 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -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: diff --git a/doc/source/getting_started/intro_tutorials/02_read_write.rst b/doc/source/getting_started/intro_tutorials/02_read_write.rst index 3457ed142510b..d69a48def0287 100644 --- a/doc/source/getting_started/intro_tutorials/02_read_write.rst +++ b/doc/source/getting_started/intro_tutorials/02_read_write.rst @@ -17,7 +17,7 @@