Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
[#16] Few tweaks for the docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
playpauseandstop committed Nov 16, 2015
1 parent dd5198a commit f6b36a5
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,22 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import os
import re
import shlex
import sys


def rel(*parts):
return os.path.join(os.path.dirname(__file__), *parts)


with open(rel('..', 'bootstrapper.py')) as handler:
INIT_PY = handler.read()


VERSION = re.findall("__version__ = '([^']+)'", INIT_PY)[0]


# 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 All @@ -31,6 +44,7 @@
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom
# ones.
extensions = [
'alabaster',
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
'sphinx.ext.todo',
Expand Down Expand Up @@ -63,9 +77,9 @@
# built documents.
#
# The short X.Y version.
version = '1.0'
version = '.'.join(VERSION.split('.')[:2])
# The full version, including alpha/beta/rc tags.
release = '1.0.0b1'
release = VERSION

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down Expand Up @@ -121,7 +135,11 @@
# 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 = {
'github_user': 'playpauseandstop',
'github_repo': 'bootstrapper',
'github_banner': True,
}

# Add any paths that contain custom themes here, relative to this directory.
#html_theme_path = []
Expand Down Expand Up @@ -161,7 +179,12 @@
#html_use_smartypants = True

# Custom sidebar templates, maps document names to template names.
#html_sidebars = {}
html_sidebars = {
'**': [
'about.html',
'localtoc.html',
]
}

# Additional templates that should be rendered to pages, maps page names to
# template names.
Expand Down

0 comments on commit f6b36a5

Please sign in to comment.