Skip to content

Commit a747001

Browse files
authored
Add a pretty JupyterLite button to docs (geojupyter#361)
1 parent 86bcb1e commit a747001

File tree

4 files changed

+26
-4
lines changed

4 files changed

+26
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ repos:
3737
rev: v6.2.4
3838
hooks:
3939
- id: rstcheck
40-
args: ['--ignore-directives=tabs,toctree,autoclass', '--report-level=warning']
40+
args: ['--ignore-directives=tabs,toctree,autoclass,cssclass', '--report-level=warning']

docs/assets/css/custom.css

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
.try-in-jupyterlite-button a {
2+
background-color: #f7dc1e;
3+
color: black;
4+
text-decoration: none;
5+
6+
border: none;
7+
padding: 5px 10px;
8+
border-radius: 15px;
9+
font-family: vibur;
10+
font-size: larger;
11+
box-shadow: 0 2px 5px rgba(108, 108, 108, 0.2);
12+
}
13+
14+
.try-in-jupyterlite-button a:hover {
15+
color: white;
16+
box-shadow: 0 2px 5px #f7dc1e;
17+
}

docs/conf.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
html_theme = "pydata_sphinx_theme"
66
html_theme_options = {"github_url": "https://github.com/geojupyter/jupytergis"}
77

8+
html_static_path = ["assets"]
9+
html_css_files = [
10+
"css/custom.css",
11+
]
12+
813
extensions = [
914
"jupyterlite_sphinx",
1015
"sphinx.ext.autodoc",

docs/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
JupyterGIS
33
==========
44

5-
.. image:: https://jupyterlite.rtfd.io/en/latest/_static/badge.svg
6-
:alt: Try JupyterGIS now in JupyterLite!
7-
:target: lite/
5+
.. cssclass:: try-in-jupyterlite-button
6+
7+
`Try it with JupyterLite! <lite/>`_
88

99
JupyterGIS is a JupyterLab extension for collaborative GIS (Geographical Information System). It is designed to
1010
allow multiple people to work on the same geospatial project simultaneously, facilitating discussion and collaboration

0 commit comments

Comments
 (0)