Skip to content

DOC [PST] tune toctree-related styles #28408

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions doc/common_pitfalls.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
.. Places parent toc into the sidebar

:parenttoc: True

.. include:: includes/big_toc_css.rst

.. _common_pitfalls:

=========================================
Expand Down
6 changes: 0 additions & 6 deletions doc/computing.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
.. Places parent toc into the sidebar

:parenttoc: True

============================
Computing with scikit-learn
============================

.. include:: includes/big_toc_css.rst

.. toctree::
:maxdepth: 2

Expand Down
4 changes: 0 additions & 4 deletions doc/computing/computational_performance.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.. Places parent toc into the sidebar

:parenttoc: True

.. _computational_performance:

.. currentmodule:: sklearn
Expand Down
4 changes: 0 additions & 4 deletions doc/computing/parallelism.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.. Places parent toc into the sidebar

:parenttoc: True

Parallelism, resource management, and configuration
===================================================

Expand Down
4 changes: 0 additions & 4 deletions doc/computing/scaling_strategies.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.. Places parent toc into the sidebar

:parenttoc: True

.. _scaling_strategies:

Strategies to scale computationally: bigger data
Expand Down
6 changes: 0 additions & 6 deletions doc/data_transforms.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
.. Places parent toc into the sidebar

:parenttoc: True

.. include:: includes/big_toc_css.rst

.. _data-transforms:

Dataset transformations
Expand Down
6 changes: 0 additions & 6 deletions doc/datasets.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
.. Places parent toc into the sidebar

:parenttoc: True

.. include:: includes/big_toc_css.rst

.. _datasets:

=========================
Expand Down
4 changes: 0 additions & 4 deletions doc/datasets/loading_other_datasets.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.. Places parent toc into the sidebar

:parenttoc: True

.. _loading_other_datasets:

Loading other datasets
Expand Down
4 changes: 0 additions & 4 deletions doc/datasets/real_world.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.. Places parent toc into the sidebar

:parenttoc: True

.. _real_world_datasets:

Real world datasets
Expand Down
4 changes: 0 additions & 4 deletions doc/datasets/sample_generators.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.. Places parent toc into the sidebar

:parenttoc: True

.. _sample_generators:

Generated datasets
Expand Down
4 changes: 0 additions & 4 deletions doc/datasets/toy_dataset.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.. Places parent toc into the sidebar

:parenttoc: True

.. _toy_datasets:

Toy datasets
Expand Down
7 changes: 0 additions & 7 deletions doc/developers/index.rst
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
.. Places parent toc into the sidebar

:parenttoc: True

.. _developers_guide:

=================
Developer's Guide
=================

.. include:: ../includes/big_toc_css.rst
.. include:: ../tune_toc.rst

.. toctree::

contributing
Expand Down
6 changes: 0 additions & 6 deletions doc/dispatching.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
.. Places parent toc into the sidebar

:parenttoc: True

.. include:: includes/big_toc_css.rst

===========
Dispatching
===========
Expand Down
40 changes: 0 additions & 40 deletions doc/includes/big_toc_css.rst

This file was deleted.

60 changes: 0 additions & 60 deletions doc/includes/bigger_toc_css.rst

This file was deleted.

6 changes: 0 additions & 6 deletions doc/inspection.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
.. Places parent toc into the sidebar

:parenttoc: True

.. include:: includes/big_toc_css.rst

.. _inspection:

Inspection
Expand Down
4 changes: 0 additions & 4 deletions doc/model_persistence.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.. Places parent toc into the sidebar

:parenttoc: True

.. _model_persistence:

=================
Expand Down
6 changes: 0 additions & 6 deletions doc/model_selection.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
.. Places parent toc into the sidebar

:parenttoc: True

.. include:: includes/big_toc_css.rst

.. _model_selection:

Model selection and evaluation
Expand Down
4 changes: 0 additions & 4 deletions doc/modules/array_api.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
.. Places parent toc into the sidebar

:parenttoc: True

.. _array_api:

================================
Expand Down
16 changes: 16 additions & 0 deletions doc/scss/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,22 @@ code.literal {
padding: 1%;
}

// Resize table of contents to make the top few levels of headings more visible
li.toctree-l1 {
padding-bottom: 0.5em;

> a {
font-size: 150%;
font-weight: bold;
}
}

li.toctree-l2,
li.toctree-l3,
li.toctree-l4 {
margin-left: 15px;
}

// Override the pydata-sphinx-theme styling of .. topic:: directives
div.topic,
aside.topic {
Expand Down
6 changes: 0 additions & 6 deletions doc/supervised_learning.rst
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
.. Places parent toc into the sidebar

:parenttoc: True

.. include:: includes/big_toc_css.rst

.. _supervised-learning:

Supervised learning
Expand Down
Loading