forked from fmtlib/fmt
Add string.h to the docs
This commit is contained in:
11
doc/build.py
11
doc/build.py
@@ -9,11 +9,6 @@ from distutils.version import LooseVersion
|
|||||||
def pip_install(package, commit=None, **kwargs):
|
def pip_install(package, commit=None, **kwargs):
|
||||||
"Install package using pip."
|
"Install package using pip."
|
||||||
if commit:
|
if commit:
|
||||||
check_version = kwargs.get('check_version', '')
|
|
||||||
#output = check_output(['pip', 'show', package.split('/')[1]])
|
|
||||||
#if check_version in output:
|
|
||||||
# print('{} already installed'.format(package))
|
|
||||||
# return
|
|
||||||
package = 'git+git://github.com/{0}.git@{1}'.format(package, commit)
|
package = 'git+git://github.com/{0}.git@{1}'.format(package, commit)
|
||||||
print('Installing {}'.format(package))
|
print('Installing {}'.format(package))
|
||||||
check_call(['pip', 'install', '--upgrade', package])
|
check_call(['pip', 'install', '--upgrade', package])
|
||||||
@@ -49,7 +44,7 @@ def create_build_env():
|
|||||||
'12dde8afdb0a7bb5576e2656692c3478c69d8cc3',
|
'12dde8afdb0a7bb5576e2656692c3478c69d8cc3',
|
||||||
check_version='1.4a0.dev-20151013')
|
check_version='1.4a0.dev-20151013')
|
||||||
pip_install('michaeljones/breathe',
|
pip_install('michaeljones/breathe',
|
||||||
'1c9d7f80378a92cffa755084823a78bb38ee4acc')
|
'6b1c5bb7a1866f15fc328b8716258354b10c1daa')
|
||||||
|
|
||||||
def build_docs(version='dev', **kwargs):
|
def build_docs(version='dev', **kwargs):
|
||||||
doc_dir = kwargs.get('doc_dir', os.path.dirname(os.path.realpath(__file__)))
|
doc_dir = kwargs.get('doc_dir', os.path.dirname(os.path.realpath(__file__)))
|
||||||
@@ -63,7 +58,7 @@ def build_docs(version='dev', **kwargs):
|
|||||||
GENERATE_MAN = NO
|
GENERATE_MAN = NO
|
||||||
GENERATE_RTF = NO
|
GENERATE_RTF = NO
|
||||||
CASE_SENSE_NAMES = NO
|
CASE_SENSE_NAMES = NO
|
||||||
INPUT = {0}/format.h {0}/ostream.h
|
INPUT = {0}/format.h {0}/ostream.h {0}/string.h
|
||||||
QUIET = YES
|
QUIET = YES
|
||||||
JAVADOC_AUTOBRIEF = YES
|
JAVADOC_AUTOBRIEF = YES
|
||||||
AUTOLINK_SUPPORT = NO
|
AUTOLINK_SUPPORT = NO
|
||||||
@@ -87,7 +82,7 @@ def build_docs(version='dev', **kwargs):
|
|||||||
'-Dversion=' + version, '-Drelease=' + version, '-Aversion=' + version,
|
'-Dversion=' + version, '-Drelease=' + version, '-Aversion=' + version,
|
||||||
'-b', 'html', doc_dir, 'html'])
|
'-b', 'html', doc_dir, 'html'])
|
||||||
try:
|
try:
|
||||||
check_call(['lessc', '--clean-css',
|
check_call(['lessc', #'--clean-css',
|
||||||
'--include-path=' + os.path.join(doc_dir, 'bootstrap'),
|
'--include-path=' + os.path.join(doc_dir, 'bootstrap'),
|
||||||
os.path.join(doc_dir, 'fmt.less'),
|
os.path.join(doc_dir, 'fmt.less'),
|
||||||
'html/_static/fmt.css'])
|
'html/_static/fmt.css'])
|
||||||
|
Reference in New Issue
Block a user