Skip to content

Commit 200a11e

Browse files
committed
finalizing the documentation details to make it actually function
1 parent d14d6a0 commit 200a11e

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

.readthedocs-pre_install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ if [[ "${READTHEDOCS:-no}" == "no" ]]; then
1010
fi
1111

1212
# Try and fetch the shallow submodule
13-
git submodule update --init --depth=1
13+
git submodule update --init --depth=1 --single-branch
1414

1515
# Ensure we get a version that lets us use groups
1616
python3 -m pip install --upgrade pip

docs/conf.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@
9494
# This can be a pure HTML (for interaction), but that tends
9595
# to blow up file-sizes which isn't really suitable for
9696
# RTD.
97-
plotly_renderer = "notebook_connected"
98-
if on_rtd:
99-
plotly_renderer = "png"
97+
# For now, we retain the PNG as default.
98+
# This will limit the interaction, but
99+
# will make loading the page much faster!
100+
plotly_renderer = "png"
100101
plotly_renderer = os.environ.get("_SISL_DOC_PLOTLY", plotly_renderer)
101102

102103
if "iframe" in plotly_renderer:
@@ -488,6 +489,8 @@ def has_under(name: str):
488489
plot_include_source = True
489490
plot_formats = [("png", 90)]
490491
plot_pre_code = f"""\
492+
import logging
493+
logging.getLogger("nodify").setLevel(logging.WARNING)
491494
import numpy as np
492495
import matplotlib.pyplot as plt
493496
import sisl as si

docs/dev/index.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ Here is a short summary of how to do developments with `sisl`.
6868

6969
.. code:: bash
7070
71-
git clone git@github.com:<your-username>/sisl.git
71+
git clone git@github.com:<your-username>/sisl.git --single-branch
7272
7373
.. tab:: HTML
7474

7575
.. code:: bash
7676
77-
git clone https://github.com/<your-username>/sisl.git
77+
git clone https://github.com/<your-username>/sisl.git --single-branch
7878
7979
And move to the folder ``cd sisl``.
8080

@@ -199,8 +199,7 @@ To contribute to the documentation one needs to install `pandoc`_ first (see
199199

200200
.. code:: bash
201201
202-
git submodule init
203-
git submodule update
202+
git submodule update --init --single-branch
204203
205204
#. **OPTIONAL**
206205

docs/quickstart/install.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ using :code:`pip` or :code:`conda` methods:
4444

4545
.. code-block:: bash
4646
47-
git clone git+https://github.com/zerothi/sisl.git
47+
git clone git+https://github.com/zerothi/sisl.git --single-branch
4848
cd sisl
4949
python3 -m pip install -e .
5050
@@ -121,7 +121,7 @@ A basic procedure would be:
121121

122122
.. code-block:: bash
123123
124-
git clone https://github.com/zerothi/sisl-files.git
124+
git clone https://github.com/zerothi/sisl-files.git --single-branch
125125
SISL_FILES_TESTS=$(pwd)/sisl-files pytest --pyargs sisl
126126
127127

0 commit comments

Comments
 (0)