提交 0f296ee7 authored 作者: lamblinp@lgcm's avatar lamblinp@lgcm

Fix generation of links to glossary

上级 4e6fd916
......@@ -101,9 +101,12 @@ if __name__ == '__main__':
sys.path[0:0] = throot
#Generate HTML doc
#os.system("epydoc --config doc/api/epydoc.conf -o html/api")
sys.argv[:] = ['', '--config', '%s/doc/api/epydoc.conf' % throot, '-o', 'api']
cli()
## This causes problems with the subsequent generation of sphinx doc
#sys.argv[:] = ['', '--config', '%s/doc/api/epydoc.conf' % throot, '-o', 'api']
#cli()
## So we use this instead
os.system("epydoc --config %s/doc/api/epydoc.conf -o api" % throot)
# Generate PDF doc
# TODO
......@@ -120,16 +123,14 @@ if __name__ == '__main__':
sphinx.main(['', '-E', '-b', 'latex',
os.path.join(throot, 'doc'), workdir])
# Compile to PDF
currentdir = os.getcwd()
os.chdir(workdir)
os.system('make')
try:
shutil.copy(os.path.join(workdir, 'theano.pdf'), currentdir)
os.chdir(currentdir)
os.chdir(outdir)
shutil.rmtree(workdir)
except OSError, e:
print 'OSError:', e
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论