Skip to content

Commit d4dcaf4

Browse files
authored
Merge pull request #2660 from mgeier/doc-changes
DOC: Clean up settings
2 parents 1f32fe7 + 2ebbf0c commit d4dcaf4

File tree

7 files changed

+14
-34
lines changed

7 files changed

+14
-34
lines changed

docs/environment.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ channels:
55
dependencies:
66
- ipykernel
77
- jinja2
8-
- jupyter_sphinx
98
- ipywidgets
109
- bqplot
1110
- numpy
@@ -19,5 +18,5 @@ dependencies:
1918
- python-dateutil
2019
- recommonmark
2120
- matplotlib
22-
- bqplot
23-
- numpy
21+
- ipyleaflet
22+
- pandas

docs/requirements.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ ipywidgets>=7.5.0
33
bqplot
44
numpy
55
jupyter_client
6-
jupyter_sphinx
76
nbsphinx>=0.2.13
87
recommonmark
98
sphinx>=1.4.6
109
sphinx_rtd_theme
1110
matplotlib
12-
numpy
13-
bqplot
11+
ipyleaflet
12+
pandas

docs/source/conf.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
11
#!/usr/bin/env python3
22
#
33

4-
import os
5-
import subprocess
6-
import sys
7-
8-
9-
# -- path -------------------------------------------------------
10-
11-
from os.path import dirname
12-
docs = dirname(dirname(__file__))
13-
root = dirname(docs)
14-
sys.path.insert(0, root)
15-
16-
17-
# -- bash utility function --------------------------------------
18-
def bash(filename):
19-
"""Runs a bash script in the local directory"""
20-
sys.stdout.flush()
21-
subprocess.call("bash {}".format(filename), shell=True)
22-
234

245
# -- source files and parsers -----------------------------------
256

@@ -37,7 +18,6 @@ def bash(filename):
3718
'sphinx.ext.intersphinx',
3819
'sphinx.ext.mathjax',
3920
'nbsphinx',
40-
'jupyter_sphinx.execute',
4121
'IPython.sphinxext.ipython_console_highlighting',
4222
'recommonmark',
4323
]
@@ -49,10 +29,7 @@ def bash(filename):
4929
'jupyter': ('https://jupyter.readthedocs.io/en/latest/', None),
5030
}
5131

52-
nbsphinx_allow_errors = True # exception ipstruct.py ipython_genutils
5332
nbsphinx_execute = 'always'
54-
# Disable including require.js because it is also included by jupyter_sphinx:
55-
nbsphinx_requirejs_path = ''
5633

5734
# -- General information -------
5835

docs/source/developer_docs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The Jupyter widgets packages are developed in the `https://github.com/jupyter-wi
77
Scope of ipywidgets
88
-------------------
99

10-
``ipywidgets`` is a framework to provide eventful python objects that have a representation in the browser (see :doc:`examples/Widget Basics.ipynb` for more on the definition of widgets). This requires two components:
10+
``ipywidgets`` is a framework to provide eventful python objects that have a representation in the browser (see :doc:`examples/Widget Basics` for more on the definition of widgets). This requires two components:
1111

1212
1. The framework for widget interactions between the widgets represented in the Python kernel and the (javascript) representation of the widgets in the browser.
1313
2. A basic, lightweight set of form controls that *use* this framework, based on standard HTML form controls. These included controls include a text area, text box, select and multiselect controls, checkbox, etc. A few more advanced controls that are very popular are also included, such as a slider and basic tab panels.

docs/source/examples/Layout Example.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@
310310
"version": "3.7.2"
311311
},
312312
"nbsphinx": {
313+
"execute": "never",
313314
"orphan": true
314315
}
315316
},

docs/source/examples/Output Widget.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,11 @@
153153
{
154154
"cell_type": "code",
155155
"execution_count": null,
156-
"metadata": {},
156+
"metadata": {
157+
"tags": [
158+
"raises-exception"
159+
]
160+
},
157161
"outputs": [],
158162
"source": [
159163
"@out.capture()\n",

docs/source/examples/Widget Styling.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
"source": [
1616
"You can jump directly to these sections:\n",
1717
"\n",
18-
"+ [The `layout` attribute](#The-layout-attribute)\n",
18+
"+ [The layout attribute](#The-layout-attribute)\n",
1919
"+ [The Flexbox layout](#The-Flexbox-layout)\n",
2020
"+ [Predefined styles](#Predefined-styles)\n",
21-
"+ [The `style` attribute](#The-style-attribute)\n",
21+
"+ [The style attribute](#The-style-attribute)\n",
2222
"+ [The Grid layout](#The-Grid-layout)\n",
23-
"+ [`Image` layout and sizing](#Image-layout-and-sizing)"
23+
"+ [Image layout and sizing](#Image-layout-and-sizing)"
2424
]
2525
},
2626
{

0 commit comments

Comments
 (0)