Skip to content

Commit

Permalink
edit version info of conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsam committed Mar 8, 2018
1 parent ea4dcc4 commit f75f92a
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,21 +50,23 @@ def setup(sphinx):

# General information about the project.
project = 'Solidity'
copyright = '2016-2017, Ethereum'
copyright = '2016-2018, Ethereum, Solidity Korea'

# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
# built documents.
#
# The short X.Y version.
with open('../CMakeLists.txt', 'r') as f:
version = re.search('PROJECT_VERSION "([^"]+)"', f.read()).group(1)
# with open('../CMakeLists.txt', 'r') as f:
# version = re.search('PROJECT_VERSION "([^"]+)"', f.read()).group(1)
# The full version, including alpha/beta/rc tags.
if os.path.isfile('../prerelease.txt') != True or os.path.getsize('../prerelease.txt') == 0:
release = version
else:
# This is a prerelease version
release = version + '-develop'
# if os.path.isfile('../prerelease.txt') != True or os.path.getsize('../prerelease.txt') == 0:
# release = version
# else:
# # This is a prerelease version
# release = version + '-develop'
version = '0.4.20'
release = version

# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
Expand Down

0 comments on commit f75f92a

Please sign in to comment.