diff --git a/docs/_static/extra.css b/docs/_static/extra.css index 6ddd64bfa..3022ad1e3 100644 --- a/docs/_static/extra.css +++ b/docs/_static/extra.css @@ -44,6 +44,13 @@ color: var(--md-accent-fg-color); } +/* Override announcement banner colors */ +.md-banner { + background: #FFE903; + color: rgba(0,0,0,.87); + --md-default-fg-color: rgba(0,0,0,.87); +} + /* Override version outdated banner colors */ [data-md-color-scheme="slate"] .md-banner--warning { background: var(--md-footer-bg-color); diff --git a/docs/_templates/base.html b/docs/_templates/base.html index 7ef325e1e..0985eb37e 100644 --- a/docs/_templates/base.html +++ b/docs/_templates/base.html @@ -1,5 +1,14 @@ {% extends "!base.html" %} +{% block announce %} +

+ Enjoying the library? Give us a + + on + GitHub. +

+{% endblock %} + {% block outdated %} You're not viewing the latest version. diff --git a/docs/conf.py b/docs/conf.py index 5cc72fdf2..02f91cc1f 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -152,6 +152,7 @@ "toc.follow", "toc.sticky", "content.tabs.link", + "announce.dismiss", ], "palette": [ { @@ -275,7 +276,7 @@ }, { "name": "star", - "icon": "octicons/star-fill-24", + "icon": "octicons/star-16", "color": (255, 233, 3), # Gold }, { diff --git a/docs/index.rst b/docs/index.rst index ef49ad4b4..45031eb6f 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -3,11 +3,6 @@ The :obj:`galois` library is a Python 3 package that extends NumPy arrays to operate over finite fields. -.. star:: Enjoying the library? Give us a :si-icon:`octicons/star-fill-24` on `GitHub `_! - :collapsible: - - Help others find this library too! - The user creates a :obj:`~galois.FieldArray` subclass using `GF = galois.GF(p**m)`. `GF` is a subclass of :obj:`numpy.ndarray` and its constructor `x = GF(array_like)` mimics the signature of :func:`numpy.array`. The :obj:`~galois.FieldArray` `x` is operated on like any other NumPy array except all arithmetic is performed in :math:`\mathrm{GF}(p^m)`, not :math:`\mathbb{R}`.