/[escript]/trunk/doc/sphinx_api/SConscript
ViewVC logotype

Contents of /trunk/doc/sphinx_api/SConscript

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6949 - (show annotations)
Thu Feb 6 02:36:07 2020 UTC (15 months, 1 week ago) by uqaeller
File size: 1769 byte(s)
Release version 5.5
1
2 ##############################################################################
3 #
4 # Copyright (c) 2012-2018 by The University of Queensland
5 # http://www.uq.edu.au
6 #
7 # Primary Business: Queensland, Australia
8 # Licensed under the Apache License, version 2.0
9 # http://www.apache.org/licenses/LICENSE-2.0
10 #
11 # Development until 2012 by Earth Systems Science Computational Center (ESSCC)
12 # Development 2012-2013 by School of Earth Sciences
13 # Development from 2014 by Centre for Geoscience Computing (GeoComp)
14 #
15 ##############################################################################
16
17 import os
18 Import('*')
19
20 local=env.Clone()
21
22 epy_dir=os.path.join(release_dir, 'sphinx_api')
23 local.Command(epy_dir, [], [Mkdir(epy_dir)])
24
25 int_dir=os.path.join(env['BUILD_DIR'], 'sphinx_int')
26 local.Command(int_dir, [], [Mkdir(int_dir)])
27 local['ENV']['LD_LIBRARY_PATH']+=(os.path.pathsep+os.path.join(local['prefix'],'lib'))
28
29 #env.Alias(os.path.join(int_dir,'index.rst'),[env['pyinstall'], int_dir],'doc/sphinx_api/genrst.py ./esys esys '+int_dir)
30
31 mjpath=''
32 if env['mathjax_path']!='default':
33 mjpath='-D mathjax_path='+env['mathjax_path']
34
35 sphinxstuff=local.Command('stuff', [epy_dir, int_dir, env['pyinstall']], env['pythoncmd'] + ' doc/sphinx_api/genrst.py '+env['prefix']+' esys '+int_dir+" && sphinx-build -v -E --color -b html -d "+int_dir+"/tree -c doc/sphinx_api "+mjpath+" "+int_dir+" "+epy_dir)
36
37 env.Alias('sphinxdoc', sphinxstuff)
38 #env.Alias('sphinxdoc', [epy_dir, int_dir], 'doc/sphinx_api/genrst.py '+env['prefix']+' esys '+int_dir+" && sphinx-build -b html -d "+int_dir+"/tree -c doc/sphinx_api "+int_dir+" "+epy_dir)
39
40 # This will need to be here at least until the output of api_epydoc properly
41 # depends on the libraries it uses as input
42 env.AlwaysBuild('sphinxdoc')
43

  ViewVC Help
Powered by ViewVC 1.1.26