From ca59b0a18f7f034557f40a7002506e47441ddaaf Mon Sep 17 00:00:00 2001 From: Jakob Gerhard Martinussen <10655778+JakobGM@users.noreply.github.com> Date: Tue, 20 Dec 2022 13:00:39 +0100 Subject: [PATCH] Reorganize navtree --- docs/_static/css/custom.css | 6 +++++ docs/api/patito/DataFrame/index.rst | 4 +-- docs/api/patito/Database/index.rst | 4 +-- docs/api/patito/Model/index.rst | 25 ++++++------------- docs/api/patito/Relation/index.rst | 21 +++++----------- docs/api/patito/sources/QuerySource/index.rst | 4 +-- docs/conf.py | 2 +- docs/index.rst | 1 + 8 files changed, 25 insertions(+), 42 deletions(-) diff --git a/docs/_static/css/custom.css b/docs/_static/css/custom.css index ba973bf..2825667 100644 --- a/docs/_static/css/custom.css +++ b/docs/_static/css/custom.css @@ -126,3 +126,9 @@ h1 { .wy-side-nav-search a:visited { color: white !important; } + +/* Decrease the vertical padding between menu items in the navbar */ +.wy-menu-vertical li.toctree-l3 a { + padding-top: 0.2vh !important; + padding-bottom: 0.2vh !important; +} diff --git a/docs/api/patito/DataFrame/index.rst b/docs/api/patito/DataFrame/index.rst index d0810ff..1d97be9 100644 --- a/docs/api/patito/DataFrame/index.rst +++ b/docs/api/patito/DataFrame/index.rst @@ -5,10 +5,8 @@ .. autoclass:: DataFrame -Methods -------- - .. toctree:: + :caption: Methods :maxdepth: 1 cast diff --git a/docs/api/patito/Database/index.rst b/docs/api/patito/Database/index.rst index f2e09dc..87ad26e 100644 --- a/docs/api/patito/Database/index.rst +++ b/docs/api/patito/Database/index.rst @@ -7,10 +7,8 @@ patito.Database .. automethod:: Database.__init__ -Methods -------- - .. toctree:: + :caption: Methods :maxdepth: 1 create_enum_types diff --git a/docs/api/patito/Model/index.rst b/docs/api/patito/Model/index.rst index 0b29035..3ecd10c 100644 --- a/docs/api/patito/Model/index.rst +++ b/docs/api/patito/Model/index.rst @@ -7,40 +7,31 @@ patito.Model .. autoclass:: Model -Class properties ----------------- - .. toctree:: + :caption: Class methods & properties :maxdepth: 1 DataFrame LazyFrame columns defaults - dtypes - non_nullable_columns - nullable_columns - sql_types - unique_columns - valid_dtypes - valid_sql_types - -Class methods -------------- - -.. toctree:: - :maxdepth: 1 - drop + dtypes example example_value examples from_row join + non_nullable_columns + nullable_columns pandas_examples prefix rename select rename + select