mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-01 03:00:13 -04:00
Does this finally fix #463
This commit is contained in:
57
Web/conf.py
57
Web/conf.py
@@ -12,6 +12,43 @@
|
||||
# All configuration values have a default; values that are commented out
|
||||
# serve to show the default.
|
||||
|
||||
|
||||
# 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.
|
||||
#
|
||||
import CoolProp
|
||||
ver = CoolProp.__version__
|
||||
# The short X.Y version.
|
||||
version = ver.rsplit('.',1)[0]
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = ver
|
||||
|
||||
# Some hacking to determine release or nightly build
|
||||
if ver[-2]=="." and ver[-1].isdigit()>=0 and ver[-3].isdigit()>=0:
|
||||
isRelease = True
|
||||
else:
|
||||
isRelease = False
|
||||
|
||||
print("------------ Project information ------------")
|
||||
print("Detected version: "+version)
|
||||
print("Detected release: "+release)
|
||||
print("Public release : "+ ("True" if isRelease else "False") )
|
||||
print(" ")
|
||||
|
||||
if isRelease:
|
||||
extlinks = {'sfdownloads': ('http://sourceforge.net/projects/coolprop/files/CoolProp/'+release+'/%s',''),
|
||||
'sfnightly' : ('http://sourceforge.net/projects/coolprop/files/CoolProp/nightly/%s',''),
|
||||
#'bbbinaries' : ('http://www.coolprop.dreamhosters.com:8010/binaries/%s',''),
|
||||
#'bbsphinx' : ('http://www.coolprop.dreamhosters.com:8010/sphinx/%s','')
|
||||
}
|
||||
else:
|
||||
extlinks = {'sfdownloads': ('http://sourceforge.net/projects/coolprop/files/CoolProp/'+release+'/%s',''),
|
||||
'sfnightly' : ('http://www.coolprop.dreamhosters.com:8010/binaries/%s',''),
|
||||
#'bbbinaries' : ('http://www.coolprop.dreamhosters.com:8010/binaries/%s',''),
|
||||
#'bbsphinx' : ('http://www.coolprop.dreamhosters.com:8010/sphinx/%s','')
|
||||
}
|
||||
|
||||
import sys, os, datetime
|
||||
|
||||
#~ # If your extensions are in another directory, add it here. If the directory
|
||||
@@ -26,9 +63,7 @@ except ImportError:
|
||||
|
||||
print('Unable to import sphinxcontrib.doxylink; try to run "pip install sphinxcontrib-doxylink"')
|
||||
|
||||
Release = tags.has('Release') or tags.has('release')
|
||||
|
||||
if Release:
|
||||
if isRelease:
|
||||
doxylink = {
|
||||
'cpapi' : ('_static/doxygen/CoolPropDoxyLink.tag', 'http://www.coolprop.org/_static/doxygen/html')
|
||||
}
|
||||
@@ -94,22 +129,6 @@ d = datetime.datetime.today()
|
||||
project = u'CoolProp'
|
||||
copyright = u'2010-{0}, Ian H. Bell and the CoolProp Team'.format(d.year)
|
||||
|
||||
# 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.
|
||||
#
|
||||
import CoolProp
|
||||
ver = CoolProp.__version__
|
||||
# The short X.Y version.
|
||||
version = ver.rsplit('.',1)[0]
|
||||
# The full version, including alpha/beta/rc tags.
|
||||
release = ver
|
||||
|
||||
extlinks = {'sfdownloads': ('http://sourceforge.net/projects/coolprop/files/CoolProp/'+release+'/%s',''),
|
||||
'sfnightly': ('http://sourceforge.net/projects/coolprop/files/CoolProp/nightly/%s',''),
|
||||
'bbbinaries': ('http://www.coolprop.dreamhosters.com:8010/binaries/%s',''),
|
||||
'bbsphinx': ('http://www.coolprop.dreamhosters.com:8010/sphinx/%s','')}
|
||||
|
||||
# The language for content autogenerated by Sphinx. Refer to documentation
|
||||
# for a list of supported languages.
|
||||
#language = None
|
||||
|
||||
@@ -11,7 +11,7 @@ Doxygen formatted documentation of the source files
|
||||
---------------------------------------------------
|
||||
|
||||
Builds of the `doxygen <http://www.stack.nl/~dimitri/doxygen/>`_ formatted HTML outputs for the
|
||||
current version are `hosted online <http://www.coolprop.org/_static/doxygen/html/>`_
|
||||
current version are , :cpapi:`CoolProp`.
|
||||
|
||||
More information
|
||||
----------------
|
||||
|
||||
Reference in New Issue
Block a user