Skip to content

Commit

Permalink
updated changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
adwilson10 committed Sep 25, 2015
1 parent 1017dc3 commit fa9fda6
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Trep Changelog
==============

v1.0.2 (2015-09-25)
-------------------
* Renamed src/ folder to trep/ following convention [#33](https://github.com/MurpheyLab/trep/issues/33)
* Updated documentation theme to RTD template

v1.0.1 (2015-05-04)
-------------------
* Method added to get trep include path [#31](https://github.com/MurpheyLab/trep/issues/31)
Expand Down
18 changes: 13 additions & 5 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
# If your documentation needs a minimal Sphinx version, state it here.
#needs_sphinx = '1.0'

# on_rtd is whether we are on readthedocs.org
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = [
Expand Down Expand Up @@ -60,7 +63,12 @@ class GitError(StandardError): pass

def get_version_from_git():
try:
p = subprocess.Popen(["git", "describe", "--dirty", "--always"],
if on_rtd:
p = subprocess.Popen(["git", "describe", "--always"],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
else:
p = subprocess.Popen(["git", "describe", "--dirty", "--always"],
stdout=subprocess.PIPE,
stderr=subprocess.PIPE)
except EnvironmentError as e:
Expand Down Expand Up @@ -150,12 +158,12 @@ def get_commit_date():

# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
# on_rtd is whether we are on readthedocs.org
import os
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'

if not on_rtd: # only import and set the theme if we're building docs locally
import sphinx_rtd_theme
try:
import sphinx_rtd_theme
except ImportError:
print "\033[93mPlease install sphinx_rtd_theme from pip!\033[0m"
html_theme = 'sphinx_rtd_theme'
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
else:
Expand Down
2 changes: 1 addition & 1 deletion doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ If you have any questions or suggestions, please head over to our
.. toctree::
:hidden:

Project Homepage <http://nxr.northwestern.edu/trep>
Project Homepage <http://murpheylab.github.io/trep/>

.. _api-ref:

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def get_approx_version():
cmd_class['build_sphinx'] = BuildDoc
# See docstring for BuildDoc on how to set default options here.
except ImportError:
pass
print "Note: Sphinx must be installed to build documentation"

ext_modules = []

Expand Down

0 comments on commit fa9fda6

Please sign in to comment.