Skip to content

Commit

Permalink
Simplify some of the reST markup
Browse files Browse the repository at this point in the history
  • Loading branch information
QuLogic committed Aug 20, 2024
1 parent 9d3a064 commit 498d523
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 44 deletions.
10 changes: 5 additions & 5 deletions docs/_static/css/landing.css
Original file line number Diff line number Diff line change
Expand Up @@ -208,35 +208,35 @@ a.link-offsite::after, div.link-offsite a::after {
min-height: 280px;
}

.tabs-tab[for="sd-tab-item-0"] {
.sd-tab-label[for="sd-tab-item-0"] {
--sd-color-tabs-underline-active: var(--dark-purple);
--sd-color-tabs-underline-hover: var(--dark-purple);
--sd-color-tabs-label-active: var(--dark-purple);
--sd-color-tabs-label-hover: var(--dark-purple);
}

.tabs-tab[for="sd-tab-item-1"] {
.sd-tab-label[for="sd-tab-item-1"] {
--sd-color-tabs-underline-active: var(--purple);
--sd-color-tabs-underline-hover: var(--purple);
--sd-color-tabs-label-active: var(--purple);
--sd-color-tabs-label-hover: var(--purple);
}

.tabs-tab[for="sd-tab-item-2"] {
.sd-tab-label[for="sd-tab-item-2"] {
--sd-color-tabs-underline-active: var(--blue);
--sd-color-tabs-underline-hover: var(--blue);
--sd-color-tabs-label-active: var(--blue);
--sd-color-tabs-label-hover: var(--blue);
}

.tabs-tab[for="sd-tab-item-3"] {
.sd-tab-label[for="sd-tab-item-3"] {
--sd-color-tabs-underline-active: var(--teal);
--sd-color-tabs-underline-hover: var(--teal);
--sd-color-tabs-label-active: var(--teal);
--sd-color-tabs-label-hover: var(--teal);
}

.tabs-tab[for="sd-tab-item-4"] {
.sd-tab-label[for="sd-tab-item-4"] {
--sd-color-tabs-underline-active: var(--green);
--sd-color-tabs-underline-hover: var(--green);
--sd-color-tabs-label-active: var(--green);
Expand Down
11 changes: 10 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,14 @@
"shadow": "none",
"text-align": "center",
},
}
},
"project-card": {
"inherit": "card",
"options": {
"class-card": "sd-border-0",
"class-header": "mpl-card-title",
"class-footer": "link-offsite",
"shadow": "none",
},
},
}
43 changes: 5 additions & 38 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@
.. div::
:name: image-rotator

.. empty:
.. grid::

.. quicklink::
Expand Down Expand Up @@ -80,8 +78,6 @@

.. div:: rule rule-viridis

.. empty:
.. grid::
:gutter: 1

Expand Down Expand Up @@ -159,8 +155,6 @@

.. div:: rule rule-viridis

.. empty:
.. grid::
:gutter: 1

Expand All @@ -183,14 +177,9 @@
:class: tabs tools

.. tab-item:: seaborn
:class-label: tabs-tab
:selected:

.. card::
:class-card: sd-border-0
:class-header: mpl-card-title
:class-footer: link-offsite
:shadow: none
.. project-card::

seaborn is a high level interface for drawing statistical graphics with
Matplotlib. It aims to make visualization a central part of exploring and
Expand All @@ -199,27 +188,17 @@
`statistical data visualization <https://seaborn.pydata.org/>`__

.. tab-item:: Cartopy
:class-label: tabs-tab

.. card::
:class-card: sd-border-0
:class-header: mpl-card-title
:class-footer: link-offsite
:shadow: none
.. project-card::

Cartopy is a Python package designed for geospatial data processing in
order to produce maps and other geospatial data analyses.
+++
`Cartopy <https://scitools.org.uk/cartopy/docs/latest/>`__

.. tab-item:: DNA Features Viewer
:class-label: tabs-tab

.. card::
:class-card: sd-border-0
:class-header: mpl-card-title
:class-footer: link-offsite
:shadow: none
.. project-card::

DNA Features Viewer is a Python library to visualize DNA features, e.g.
from GenBank or Gff files, or Biopython SeqRecords.
Expand All @@ -228,13 +207,8 @@
<https://github.com/Edinburgh-Genome-Foundry/DnaFeaturesViewer>`__

.. tab-item:: plotnine
:class-label: tabs-tab

.. card::
:class-card: sd-border-0
:class-header: mpl-card-title
:class-footer: link-offsite
:shadow: none
.. project-card::

plotnine is an implementation of a grammar of graphics in Python. The
grammar allows users to compose plots by explicitly mapping data to the
Expand All @@ -243,13 +217,8 @@
`plotnine <https://plotnine.readthedocs.io/en/stable/>`__

.. tab-item:: WCS Axes
:class-label: tabs-tab

.. card::
:class-card: sd-border-0
:class-header: mpl-card-title
:class-footer: link-offsite
:shadow: none
.. project-card::

WCSAxes is a framework for making plots of Astronomical data in
Matplotlib.
Expand All @@ -258,8 +227,6 @@

.. div:: rule rule-viridis

.. empty
.. grid::

.. grid-item-card:: Support Matplotlib
Expand Down

0 comments on commit 498d523

Please sign in to comment.