Skip to content

Commit

Permalink
Trying sphinx theme in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
hgrecco committed Jan 5, 2015
1 parent f522b08 commit 13d470d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 13 deletions.
28 changes: 17 additions & 11 deletions docs/conf.py
Expand Up @@ -115,24 +115,30 @@ def __getattr__(cls, name):
# A list of ignored prefixes for module index sorting.
modindex_common_prefix = ['lantz.']


import driversdoc
driversdoc.main()

# -- Options for HTML output ---------------------------------------------------
sys.path.append(os.path.abspath('_themes'))
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme = 'lantz'
html_theme = 'sphinx_rtd_theme'

on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if not on_rtd: # only import and set the theme if we're building docs locally
try:
import sphinx_rtd_theme
except ImportError:
print('\n\nTheme not found. Please install Sphinx Read The Docs Themes using:\n\n'
' pip install sphinx_rtd_theme\n')
sys.exit(1)
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
print(html_theme_path)

import driversdoc
driversdoc.main()

# 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
# documentation.
#html_theme_options = {}
html_theme_options = {'collapsiblesidebar': True}

# Add any paths that contain custom themes here, relative to this directory.
html_theme_path = ['_themes']
html_theme_options = {}

# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
Expand Down
5 changes: 3 additions & 2 deletions docs/index.rst
Expand Up @@ -22,12 +22,13 @@ When you use Lantz you get:
async capabilities and much more.

- On-the-fly GUI for testing purposes.
Without a line of code you get for **any** driver something like:
Without a line of code you get for **any** driver something like this
(click to enlarge):

.. thumbnail:: _static/ui-fungen.png
:width: 20%

- Tools to quickly build beautiful, responsive and correct applications.
- Tools to quickly build beautiful, responsive and composable applications.

- An awesome and supporting community.

Expand Down

0 comments on commit 13d470d

Please sign in to comment.