Skip to content

Commit

Permalink
things
Browse files Browse the repository at this point in the history
  • Loading branch information
leliel12 committed Aug 14, 2017
1 parent 93e7b3c commit 75b693a
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 37 deletions.
1 change: 0 additions & 1 deletion doc/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
docutils==0.14
mock==2.0.0
numpydoc==0.7.0
sphinx-rtd-theme==0.2.4
six
nbsphinx
Empty file added doc/source/None0000000.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/source/_static/logo_medium.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 13 additions & 5 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
'numpydoc',
'nbsphinx']

exclude_patterns = ['_build', 'source/.ipynb_checkpoints/*']

numpydoc_class_members_toctree = False

nbsphinx_execute = 'never'
Expand Down Expand Up @@ -103,7 +105,16 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#
#~ html_theme = 'alabaster'
html_theme = 'alabaster'

html_theme_options = {
'fixed_sidebar': True,
'logo': 'logo_medium.png',
'github_user': 'bitprophet',
'github_repo': 'alabaster',
'page_width': "80%",
'logo_name': False
}

if on_rtd:
from mock import Mock as MagicMock
Expand All @@ -112,10 +123,7 @@ class Mock(MagicMock):
def __getattr__(cls, name):
return Mock()
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
else: # only import and set the theme if we're building docs locally
import sphinx_rtd_theme
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
65 changes: 35 additions & 30 deletions doc/source/index.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/source/tutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ def macho_video():


def macho_example11():
picture = Image(filename='res/curvas_ejemplos11.jpg')
picture = Image(filename='_static/curvas_ejemplos11.jpg')
picture.size = (100, 100)
return picture

0 comments on commit 75b693a

Please sign in to comment.