Skip to content

Commit

Permalink
readthedocs configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
dioph committed Mar 30, 2020
1 parent 2dcb79a commit e3054b3
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 9 deletions.
14 changes: 14 additions & 0 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: 2

build:
image: latest

formats: all

python:
version: 3.6
install:
- requirements: requirements.txt
- requirements: docs/requirements.txt
- method: setuptools

3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
numpydoc
numpydoc
sphinx_rtd_theme
12 changes: 6 additions & 6 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#
import os
import sys
import sphinx_rtd_theme
sys.path.insert(0, os.path.abspath('../../'))

import elegant
Expand All @@ -24,7 +25,7 @@
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx.ext.mathjax',
'sphinx.ext.ifconfig',
'sphinx_rtd_theme',
'numpydoc',
]

Expand Down Expand Up @@ -71,17 +72,16 @@
# The name of the Pygments (syntax highlighting) style to use.
pygments_style = 'sphinx'

todo_include_todos = True
todo_include_todos = False


# -- Options for HTML output ----------------------------------------------

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
html_theme = 'neo_rtd_theme'
import sphinx_theme
html_theme_path = [sphinx_theme.get_html_theme_path()]
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
Expand Down Expand Up @@ -166,7 +166,7 @@



# intersphinx enables links to classes/functions in the packages defined here:
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {'python': ('https://docs.python.org/3/', None),
'numpy': ('https://docs.scipy.org/doc/numpy/', None),
'scipy': ('https://docs.scipy.org/doc/scipy/reference', None),
Expand Down
4 changes: 2 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
====
=======
elegant
====
=======

``elegant`` is a Pure Python Power Systems Simulator.
The latest development version can be found `here <https://github.com/dioph/aspy>`_.
Expand Down

0 comments on commit e3054b3

Please sign in to comment.