File tree Expand file tree Collapse file tree 4 files changed +12
-10
lines changed
Expand file tree Collapse file tree 4 files changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ if [[ "${READTHEDOCS:-no}" == "no" ]]; then
1010fi
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
1616python3 -m pip install --upgrade pip
Original file line number Diff line number Diff line change 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"
100101plotly_renderer = os .environ .get ("_SISL_DOC_PLOTLY" , plotly_renderer )
101102
102103if "iframe" in plotly_renderer :
@@ -488,6 +489,8 @@ def has_under(name: str):
488489plot_include_source = True
489490plot_formats = [("png" , 90 )]
490491plot_pre_code = f"""\
492+ import logging
493+ logging.getLogger("nodify").setLevel(logging.WARNING)
491494import numpy as np
492495import matplotlib.pyplot as plt
493496import sisl as si
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments