Skip to content

Commit

Permalink
Switch the docs theme to RTD default one, add RTD badge to README
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanovich committed May 11, 2015
1 parent cc172a6 commit fc6a7a1
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 17 deletions.
4 changes: 4 additions & 0 deletions README.rst
Expand Up @@ -9,6 +9,10 @@ JSL
:target: https://coveralls.io/r/aromanovich/jsl?branch=master
:alt: Coverage

.. image:: https://readthedocs.org/projects/jsl/badge/?version=latest
:target: https://readthedocs.org/projects/docs/
:alt: Documentation

.. image:: http://img.shields.io/pypi/v/jsl.svg
:target: https://pypi.python.org/pypi/jsl
:alt: PyPI Version
Expand Down
19 changes: 9 additions & 10 deletions docs/source/conf.py
Expand Up @@ -2,16 +2,16 @@
import sys
import os

import alabaster
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
if not on_rtd:
import sphinx_rtd_theme

sys.path.insert(0, os.path.abspath('../..'))
import jsl


extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.viewcode',
'alabaster',
]

templates_path = ['_templates']
Expand All @@ -30,13 +30,9 @@

# Options for HTML output

html_theme = 'alabaster'
html_theme_path = [alabaster.get_path()]
html_theme_options = {
'github_user': 'aromanovich',
'github_repo': 'jsl',
'travis_button': True,
}
if not on_rtd:
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
html_static_path = ['_static']
htmlhelp_basename = 'JSLdoc'
html_sidebars = {
Expand All @@ -51,3 +47,6 @@
('index', 'jsl', u'JSL Documentation', [u'Anton Romanovich'], 1),
]




4 changes: 0 additions & 4 deletions docs/source/index.rst
Expand Up @@ -16,10 +16,6 @@ For an overview of JSL's basic functionality, please see the :doc:`tutorial`.

tutorial


API Documentation
-----------------

.. toctree::
:caption: API Documentation
:name: api-documentation
Expand Down
2 changes: 0 additions & 2 deletions docs/source/tutorial.rst
Expand Up @@ -40,8 +40,6 @@ It encourages the decomposition of large schemas into smaller readable pieces
and makes schemas extendable using class inheritance. It enables the autocompleme
feature or IDEs and makes any mistype in a JSON schema keyword cause a RuntimeError.

Let's take a look at examples.

.. links
.. _Python implementation: https://python-jsonschema.readthedocs.org/en/latest/
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Expand Up @@ -3,5 +3,5 @@ coverage==3.7.1
pytest==2.6.4
pytest-cov==1.8.0
Sphinx==1.3.1
alabaster==0.7.4
sphinx-rtd-theme==0.1.8
mock==1.0.1

0 comments on commit fc6a7a1

Please sign in to comment.