docs_no_sphinx_design
authorDebian Python Team <team+python@tracker.debian.org>
Fri, 27 Oct 2023 09:24:17 +0000 (11:24 +0200)
committerDrew Parsons <dparsons@debian.org>
Fri, 27 Oct 2023 09:24:17 +0000 (11:24 +0200)
===================================================================

Gbp-Pq: Name docs_no_sphinx_design.patch

doc/source/conf.py
doc/source/dev/contributor/building.rst
doc/source/dev/dev_quickstart.rst
doc/source/getting_started.rst
doc/source/index.rst

index 132f2fa4ba748a0686df59af713297ac1568a7a2..5127c065d5c9c918afbf40e9bab269415c74e5f9 100644 (file)
@@ -43,6 +43,7 @@ extensions = [
     'sphinx.ext.coverage',
     'sphinx.ext.mathjax',
     'numpydoc',
+    'sphinx_panels',
     'scipyoptdoc',
     'doi_role',
     'matplotlib.sphinxext.plot_directive',
@@ -148,6 +149,7 @@ for key in (
         r"OpenSSL\.rand is deprecated",  # OpenSSL package in linkcheck
         r"distutils Version",  # distutils
         r"the imp module is deprecated",  # invoke (via pooch)
+        r"open_text is deprecated",  # sphinx_panels
         ):
     warnings.filterwarnings(  # deal with other modules having bad imports
         'ignore', message=".*" + key, category=DeprecationWarning)
index ef3b80a0a1abf287903d7d876aab69fcaa8b3071..7a759b4cc87e3f6ba3d774fb17652c1611a90c00 100644 (file)
@@ -25,9 +25,9 @@ dependencies to build it on your system.
     You can skip these steps if you are using ``conda``, as these dependencies
     will be installed automatically.
 
-.. tab-set::
+.. note::
 
-  .. tab-item:: Linux
+  Linux
 
     If you want to use the system Python and ``pip``, you will need:
 
@@ -41,9 +41,9 @@ dependencies to build it on your system.
       `ATLAS <http://math-atlas.sourceforge.net/>`__ and
       `MKL <https://software.intel.com/en-us/intel-mkl>`__.
 
-    .. tab-set::
+    .. note::
 
-      .. tab-item:: Debian/Ubuntu Linux
+      Debian/Ubuntu Linux
 
         .. note::
 
@@ -67,7 +67,7 @@ dependencies to build it on your system.
         See also :ref:`ubuntu-guide`.
 
 
-      .. tab-item:: Fedora
+      Fedora
 
         To install SciPy build requirements, you can do::
 
@@ -81,7 +81,7 @@ dependencies to build it on your system.
         advantage that new dependencies or updates to required versions are
         handled by the package managers.
 
-      .. tab-item:: CentOS/RHEL
+      CentOS/RHEL
 
         To install SciPy build requirements, you can do::
 
@@ -95,7 +95,7 @@ dependencies to build it on your system.
         advantage that new dependencies or updates to required versions are
         handled by the package managers.
 
-      .. tab-item:: Arch
+      Arch
 
         To install SciPy build requirements, you can do::
 
@@ -115,7 +115,7 @@ dependencies to build it on your system.
     If you are using conda, these dependencies can be installed in the conda
     environment itself. See :ref:`conda-guide` for more details.
 
-  .. tab-item:: OSX
+  OSX
 
     Install Apple Developer Tools. An easy way to do this is to
     `open a terminal window <https://blog.teamtreehouse.com/introduction-to-the-mac-os-x-command-line>`_,
@@ -129,7 +129,7 @@ dependencies to build it on your system.
     `git <https://git-scm.com/>`_, the software we need to download and manage the
     SciPy source code. See also :ref:`build-osx`.
 
-  .. tab-item:: Windows
+  Windows
 
     See :ref:`build-windows`.
 
index 96f7bcae2701d07347e09bd7ba7df365d024910f..4b4570a3101032f75b62d6161347c6dff99f4995 100644 (file)
@@ -47,9 +47,9 @@ account and then create your local repository via::
 
 Next, set up your development environment.
 
-.. tab-set::
+.. note::
 
-    .. tab-item:: conda
+    conda
 
         With ``conda`` installed (through
         `Miniforge or Mambaforge <https://github.com/conda-forge/miniforge>`_,
@@ -66,7 +66,7 @@ Next, set up your development environment.
         Your command prompt now lists the name of your new environment, like so
         ``(scipy-dev)$``.
 
-    .. tab-item:: pip+venv
+    pip+venv
 
         **With** :ref:`system-level dependencies <system-level>` **installed**, execute
         the following commands at the terminal from the base directory of your
index 2d14da34c3196581919d9c13b3db27793c8e932b..c17ad50b444774f0ddfb571fc057a9192115210b 100644 (file)
@@ -7,47 +7,53 @@ Getting started
 Installation
 ------------
 
-.. grid:: 2
+.. panels::
+    :card: + install-card
+    :column: col-lg-6 col-md-6 col-sm-12 col-xs-12 p-3
 
-    .. grid-item-card::
+    Working with conda?
+    ^^^^^^^^^^^^^^^^^^^
 
-        Working with conda?
-        ^^^^^^^^^^^^^^^^^^^
+    SciPy is part of the `Anaconda <https://docs.continuum.io/anaconda/>`__
+    distribution and can be installed with Anaconda or Miniconda:
 
-        SciPy is part of the `Anaconda <https://docs.continuum.io/anaconda/>`__
-        distribution and can be installed with Anaconda or Miniconda:
+    ++++++++++++++++++++++
 
-        ++++++++++++++++++++++
+    .. code-block:: bash
 
-        .. code-block:: bash
+        conda install scipy
 
-            conda install scipy
+    ---
 
-    .. grid-item-card::
+    Prefer pip?
+    ^^^^^^^^^^^
 
-        Prefer pip?
-        ^^^^^^^^^^^
+    SciPy can be installed via pip from `PyPI <https://pypi.org/project/scipy>`__.
 
-        SciPy can be installed via pip from `PyPI <https://pypi.org/project/scipy>`__.
+    ++++
 
-        ++++
+    .. code-block:: bash
 
-        .. code-block:: bash
+        pip install scipy
 
-            pip install scipy
+    ---
+    :column: col-12 p-3
 
-    .. grid-item-card::
-        :columns: 12
+    In-depth instructions?
+    ^^^^^^^^^^^^^^^^^^^^^^
 
-        In-depth instructions?
-        ^^^^^^^^^^^^^^^^^^^^^^
+    Installing a specific version? Installing from source? Check the advanced
+    installation page.
 
-        Installing a specific version? Installing from source? Check the
-        installation page.
+    .. container:: custom-button
 
-        .. container:: custom-button
+        :ref:`Learn more <installing-upgrading>`
 
-            `Learn more <https://scipy.org/install/>`__
+.. toctree::
+   :maxdepth: 1
+   :hidden:
+
+   install_upgrade
 
 Tutorials
 ---------
index 98fb67d1052d9adfa09121448b97818b06541820..226fc9ab3c470370b7f25b482aaf292a945991e7 100644 (file)
@@ -20,81 +20,75 @@ SciPy documentation
 **SciPy** (pronounced "Sigh Pie") is an open-source software for mathematics,
 science, and engineering.
 
-.. grid:: 2
+.. panels::
+    :card: + intro-card text-center
+    :column: col-lg-6 col-md-6 col-sm-6 col-xs-12 d-flex
 
-    .. grid-item-card::
-        :img-top: _static/index_getting_started.png
+    ---
+    :img-top: _static/index_getting_started.png
 
-        Getting started
-        ^^^^^^^^^^^^^^^
+    Getting started
+    ^^^^^^^^^^^^^^^
 
-        New to *SciPy*? Check out the getting started guides. They contain an
-        introduction to *SciPy's* main concepts and links to additional tutorials.
+    New to *SciPy*? Check out the getting started guides. They contain an
+    introduction to *SciPy'* main concepts and links to additional tutorials.
 
-        +++
+    +++
 
-        .. button-ref:: getting_started_ref
-            :expand:
-            :color: secondary
-            :click-parent:
+    .. link-button:: getting_started_ref
+            :type: ref
+            :text: To the getting started guides
+            :classes: btn-block btn-secondary stretched-link
 
-            To the getting started guides
+    ---
+    :img-top: _static/index_user_guide.png
 
-    .. grid-item-card::
-        :img-top: _static/index_user_guide.png
+    User guide
+    ^^^^^^^^^^
 
-        User guide
-        ^^^^^^^^^^
+    The user guide provides in-depth information on the
+    key concepts of SciPy with useful background information and explanation.
 
-        The user guide provides in-depth information on the
-        key concepts of SciPy with useful background information and explanation.
+    +++
 
-        +++
+    .. link-button:: user_guide
+            :type: ref
+            :text: To the user guide
+            :classes: btn-block btn-secondary stretched-link
 
-        .. button-ref:: user_guide
-            :expand:
-            :color: secondary
-            :click-parent:
+    ---
+    :img-top: _static/index_api.png
 
-            To the user guide
+    API reference
+    ^^^^^^^^^^^^^
 
-    .. grid-item-card::
-        :img-top: _static/index_api.png
+    The reference guide contains a detailed description of
+    the SciPy API. The reference describes how the methods work and which parameters can
+    be used. It assumes that you have an understanding of the key concepts.
 
-        API reference
-        ^^^^^^^^^^^^^
+    +++
 
-        The reference guide contains a detailed description of
-        the SciPy API. The reference describes how the methods work and which parameters can
-        be used. It assumes that you have an understanding of the key concepts.
+    .. link-button:: scipy-api
+            :type: ref
+            :text: To the reference guide
+            :classes: btn-block btn-secondary stretched-link
 
-        +++
+    ---
+    :img-top: _static/index_contribute.png
 
-        .. button-ref:: scipy-api
-            :expand:
-            :color: secondary
-            :click-parent:
+    Developer guide
+    ^^^^^^^^^^^^^^^
 
-            To the reference guide
+    Saw a typo in the documentation? Want to improve
+    existing functionalities? The contributing guidelines will guide
+    you through the process of improving SciPy.
 
-    .. grid-item-card::
-        :img-top: _static/index_contribute.png
+    +++
 
-        Developer guide
-        ^^^^^^^^^^^^^^^
-
-        Saw a typo in the documentation? Want to improve
-        existing functionalities? The contributing guidelines will guide
-        you through the process of improving SciPy.
-
-        +++
-
-        .. button-ref:: scipy-development
-            :expand:
-            :color: secondary
-            :click-parent:
-
-            To the development guide
+    .. link-button:: scipy-development
+            :type: ref
+            :text: To the development guide
+            :classes: btn-block btn-secondary stretched-link
 
 .. toctree::
    :maxdepth: 1