Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9a7f94e

Browse files
Jeremy AndersonJeremy Anderson
Jeremy Anderson
authored and
Jeremy Anderson
committed
Made the html theme line in custom_look a code box and had to change ipython_directive to get doctest to work.
1 parent b45810b commit 9a7f94e

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

custom_look.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ moves the vertical navigation panels to the right side of the page::
5454
{% block sidebar2 %}{% endblock %}
5555

5656
Lastly, we need to modify the html theme in :file:`sampledoc/conf.py`::
57+
5758
html_theme = 'sphinxdoc'
5859

5960
Once you rebuild the site with a ``make html`` and reload the page in your browser, you should see a fancier site that looks like this

ipython_directive.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,16 @@ suppress the seed line so it doesn't show up in the rendered output
106106
@doctest
107107
In [3]: numpy.random.rand(10, 2)
108108
Out[3]:
109-
array([[0.64524308, 0.59943846],
110-
[0.47102322, 0.8715456 ],
111-
[0.29370834, 0.74776844],
112-
[0.99539577, 0.1313423 ],
113-
[0.16250302, 0.21103583],
114-
[0.81626524, 0.1312433 ],
115-
[0.67338089, 0.72302393],
116-
[0.7566368 , 0.07033696],
117-
[0.22591016, 0.77731835],
118-
[0.0072729 , 0.34273127]])
109+
array([[ 0.64524308, 0.59943846],
110+
[ 0.47102322, 0.8715456 ],
111+
[ 0.29370834, 0.74776844],
112+
[ 0.99539577, 0.1313423 ],
113+
[ 0.16250302, 0.21103583],
114+
[ 0.81626524, 0.1312433 ],
115+
[ 0.67338089, 0.72302393],
116+
[ 0.7566368 , 0.07033696],
117+
[ 0.22591016, 0.77731835],
118+
[ 0.0072729 , 0.34273127]])
119119

120120
Another demonstration of multi-line input and output
121121

0 commit comments

Comments
 (0)