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

Fix generation of links to glossary

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