1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
Author: Nilesh Patra <npatra974@gmail.com>
Description: Fix sphinx conf.py
Last-Update: Sun Sep 26 20:56:19 2021 +0530
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -75,9 +75,9 @@
# Undocumented trick: if we def setup here in conf.py, it gets called just
# like an extension's setup function.
def setup(app):
- app.add_javascript("show-code.js")
- app.add_javascript("facebox.js")
- app.add_stylesheet("facebox.css")
+ app.add_js_file("show-code.js")
+ app.add_js_file("facebox.js")
+ app.add_css_file("facebox.css")
# Add any paths that contain templates here, relative to this directory.
--- a/doc/spline-regression.rst
+++ b/doc/spline-regression.rst
@@ -180,7 +180,7 @@
....: {"x1": x1.ravel(), "x2": x2.ravel(), "df": df})
....:
- In [80]: print y.shape
+ In [80]: print(y.shape)
In [90]: fig = plt.figure()
|