File: index.rst

package info (click to toggle)
sunpy-sphinx-theme 2.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 852 kB
  • sloc: python: 663; javascript: 457; makefile: 6
file content (65 lines) | stat: -rw-r--r-- 2,240 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
sunpy-sphinx-theme
==================

The ``sunpy-sphinx-theme`` is a `sphinx` theme designed for the needs of the SunPy Project's main website and subproject documentation pages.
It's primary goals are:

* To provide a consistent look and feel over all the separate documentation sites for the project.
* To give all documentation pages maintained a consistent branded appearance.
* To provide a global navigation bar over all these sites so that it is possible to navigate between the sunpy.org site and all the documentation.

Version 2 of this package achieves this by being a sub-theme of the `pydata-sphinx-theme` with a heavily modified header bar.
The core changes between this theme and the `pydata-sphinx-theme` are:

* Remove the toctree navigation from the header bar and place it all in the sidebar (in the same manner as sphinx-book-theme).
* Add links to the header bar which are specified as theme config variables, so they are the same over all sites.
* Add a center element to the footer bar.
* Restyled the theme for SunPy colors.
* Added optional support for analytics though `goatcounter.com <https://www.goatcounter.com/>`__ which defaults to on for sunpy.org domains.
* Added optional support for a multi-project Read the Docs search interface.

The theme is highly configurable, although the defaults are for the SunPy project, this theme can be used for other organisations where they have multiple documentation sites and want a unified user experience.
For information on how to configure this theme for your site see :ref:`customizing`.

.. grid:: 1 2 2 2
   :gutter: 3

   .. grid-item-card::
      :class-card: card

      Documentation
      ^^^^^^^^^^^^^

      .. toctree::
            :maxdepth: 1

            customizing
            colors
            web-components
            cards

   .. grid-item-card::
      :class-card: card

      Examples
      ^^^^^^^^

      .. toctree::
            :maxdepth: 1

            generated/gallery/index
            code_ref/index

   .. grid-item-card::
      :class-card: card
      :link: subsections
      :link-type: ref

      Conventions
      ^^^^^^^^^^^

      .. toctree::
            :maxdepth: 1

            subsections
            subsections_toc