Skip to content

Commit

Permalink
Display version in doc sidebar below icon (#149) (#150)
Browse files Browse the repository at this point in the history
Signed-off-by: Håkon Wiik Ånes <hwaanes@gmail.com>
  • Loading branch information
hakonanes committed Feb 11, 2020
1 parent 90e287a commit 9aad111
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions doc/conf.py
Expand Up @@ -7,7 +7,7 @@
import sys
from datetime import datetime

from kikuchipy import release
from kikuchipy import release as kp_release

# 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 @@ -16,9 +16,10 @@

# Project information
project = "KikuchiPy"
copyright = "2019-" + str(datetime.now().year) + ", " + release.author + "."
author = release.author
release = release.version
copyright = "2019-" + str(datetime.now().year) + ", " + kp_release.author + "."
author = kp_release.author
version = kp_release.version
release = kp_release.version

master_doc = "index"

Expand Down Expand Up @@ -77,3 +78,8 @@
# Logo
html_logo = "_static/icon/icon_v0.1.0.svg"
html_favicon = "_static/icon/icon_v0.1.0.png"

# Read the Docs theme options
html_theme_options = {
"display_version": True,
}

0 comments on commit 9aad111

Please sign in to comment.