Skip to content

Commit

Permalink
Merge pull request #3094 from willingc/7.x-docs
Browse files Browse the repository at this point in the history
Align doc requirements for 7.x branch with master
  • Loading branch information
willingc authored Feb 7, 2021
2 parents 5532c91 + 84153d4 commit 368fc01
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 59 deletions.
23 changes: 0 additions & 23 deletions docs/environment.yml

This file was deleted.

13 changes: 5 additions & 8 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
ipykernel
ipywidgets>=7.5.0
bqplot
numpy
ipykernel
ipyleaflet
jupyter_client
jupyter_sphinx
nbsphinx>=0.2.13
matplotlib
nbsphinx>=0.5
numpy
recommonmark
sphinx>=1.4.6
sphinx_rtd_theme
matplotlib
numpy
bqplot
25 changes: 0 additions & 25 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,5 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#

import os
import subprocess
import sys


# -- path -------------------------------------------------------

from os.path import dirname
docs = dirname(dirname(__file__))
root = dirname(docs)
sys.path.insert(0, root)


# -- bash utility function --------------------------------------
def bash(filename):
"""Runs a bash script in the local directory"""
sys.stdout.flush()
subprocess.call("bash {}".format(filename), shell=True)


# -- source files and parsers -----------------------------------

Expand All @@ -38,7 +17,6 @@ def bash(filename):
'sphinx.ext.intersphinx',
'sphinx.ext.mathjax',
'nbsphinx',
'jupyter_sphinx',
'IPython.sphinxext.ipython_console_highlighting',
'recommonmark',
]
Expand All @@ -50,10 +28,7 @@ def bash(filename):
'jupyter': ('https://jupyter.readthedocs.io/en/latest/', None),
}

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

# -- General information -------

Expand Down
9 changes: 6 additions & 3 deletions readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
conda:
file: docs/environment.yml
version: 2
python:
version: 3
version: 3.7
install:
- method: setuptools
path: .
- requirements: docs/requirements.txt

0 comments on commit 368fc01

Please sign in to comment.