Skip to content

Commit

Permalink
html: Fix the search
Browse files Browse the repository at this point in the history
Compound bug in the sphinx_rtd_theme
and special chars in release variable.

Fixes #14.
  • Loading branch information
rakhimov committed Feb 9, 2017
1 parent 51d3444 commit d40f019
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Package Minimum Version
==================== ===============
Python 2.7 or 3.4
Sphinx 1.5
sphinx_rtd_theme 0.1.8
sphinx_rtd_theme 0.1.10
LaTeX
Inkscape
git
Expand Down
6 changes: 4 additions & 2 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ def open(filename):
# built documents.
#
git_log = check_output(['git', 'log', '-n', '1', '--format=format:%H.%cd',
'--date=short', 'mef/']).decode()
'--date=short', 'mef/']).strip().decode()
commit_hash, commit_date = git_log.split('.')
# commit_hash, commit_date = '89', '2017'
# The full version, including alpha/beta/rc tags.
release = check_output(['git', 'describe', '--tags', commit_hash]).decode()
release = check_output(['git', 'describe', '--tags',
commit_hash]).strip().decode()
# The short X.Y version.
version = release.rsplit('.', 1)[0]
version_date = '2007-08-1'
Expand Down

0 comments on commit d40f019

Please sign in to comment.