Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Commit

Permalink
fix the issues indicated by quantifiedcode
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Böck committed Jan 19, 2016
1 parent 6fb4a27 commit f10b714
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

import sys
import os
import pkg_resources

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down Expand Up @@ -66,7 +67,6 @@
# built documents.
#
# The short X.Y version.
import pkg_resources
version = pkg_resources.get_distribution("madmom").version
# The full version, including alpha/beta/rc tags.
release = version
Expand Down Expand Up @@ -117,18 +117,11 @@

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

# Read the docs style:
# only import and set the theme if we're building docs locally
if os.environ.get('READTHEDOCS') != 'True':
try:
import sphinx_rtd_theme
except ImportError:
pass # assume we have sphinx >= 1.3
else:
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'

def setup(app):
app.add_stylesheet("fix_rtd.css")
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
Expand Down

0 comments on commit f10b714

Please sign in to comment.