|
14 | 14 |
|
15 | 15 | import sys, os |
16 | 16 | import re |
17 | | -from subprocess import call, Popen, PIPE |
| 17 | +from subprocess import Popen, PIPE |
18 | 18 | import shlex |
19 | 19 |
|
20 | 20 | # If extensions (or modules to document with autodoc) are in another directory, |
21 | 21 | # add these directories to sys.path here. If the directory is relative to the |
22 | 22 | # documentation root, use os.path.abspath to make it absolute, like shown here. |
23 | | -sys.path.insert(0, os.path.abspath('.')) |
| 23 | +sys.path.insert(0, os.path.abspath('..')) |
24 | 24 |
|
25 | 25 | from local_util import run_cmd_get_output, copy_if_modified |
26 | 26 |
|
|
30 | 30 |
|
31 | 31 | # Call Doxygen to get XML files from the header files |
32 | 32 | print "Calling Doxygen to generate latest XML files" |
33 | | -call('doxygen') |
| 33 | +os.system("doxygen ../Doxyfile") |
34 | 34 | # Doxygen has generated XML files in 'xml' directory. |
35 | 35 | # Copy them to 'xml_in', only touching the files which have changed. |
36 | 36 | copy_if_modified('xml/', 'xml_in/') |
37 | 37 |
|
38 | 38 | # Generate 'api_name.inc' files using the XML files by Doxygen |
39 | | -os.system('python gen-dxd.py') |
| 39 | +os.system('python ../gen-dxd.py') |
40 | 40 |
|
41 | 41 | # Generate 'kconfig.inc' file from components' Kconfig files |
42 | 42 | kconfig_inc_path = '{}/inc/kconfig.inc'.format(builddir) |
43 | | -os.system('python gen-kconfig-doc.py > ' + kconfig_inc_path + '.in') |
| 43 | +os.system('python ../gen-kconfig-doc.py > ' + kconfig_inc_path + '.in') |
44 | 44 | copy_if_modified(kconfig_inc_path + '.in', kconfig_inc_path) |
45 | 45 |
|
46 | 46 | # http://stackoverflow.com/questions/12772927/specifying-an-online-image-in-sphinx-restructuredtext-format |
|
66 | 66 | ] |
67 | 67 |
|
68 | 68 | # Set up font for blockdiag, nwdiag, rackdiag and packetdiag |
69 | | -blockdiag_fontpath = '_static/DejaVuSans.ttf' |
70 | | -seqdiag_fontpath = '_static/DejaVuSans.ttf' |
71 | | -actdiag_fontpath = '_static/DejaVuSans.ttf' |
72 | | -nwdiag_fontpath = '_static/DejaVuSans.ttf' |
73 | | -rackdiag_fontpath = '_static/DejaVuSans.ttf' |
74 | | -packetdiag_fontpath = '_static/DejaVuSans.ttf' |
| 69 | +blockdiag_fontpath = '../_static/DejaVuSans.ttf' |
| 70 | +seqdiag_fontpath = '../_static/DejaVuSans.ttf' |
| 71 | +actdiag_fontpath = '../_static/DejaVuSans.ttf' |
| 72 | +nwdiag_fontpath = '../_static/DejaVuSans.ttf' |
| 73 | +rackdiag_fontpath = '../_static/DejaVuSans.ttf' |
| 74 | +packetdiag_fontpath = '../_static/DejaVuSans.ttf' |
75 | 75 |
|
76 | 76 | # Breathe extension variables |
77 | 77 |
|
|
120 | 120 |
|
121 | 121 | # The language for content autogenerated by Sphinx. Refer to documentation |
122 | 122 | # for a list of supported languages. |
123 | | -#language = None |
| 123 | +language = 'en' |
124 | 124 |
|
125 | 125 | # There are two options for replacing |today|: either, you set today to some |
126 | 126 | # non-false value, then it is used: |
|
190 | 190 | # Add any paths that contain custom static files (such as style sheets) here, |
191 | 191 | # relative to this directory. They are copied after the builtin static files, |
192 | 192 | # so a file named "default.css" will overwrite the builtin "default.css". |
193 | | -html_static_path = ['_static'] |
| 193 | +#html_static_path = ['_static'] |
194 | 194 |
|
195 | 195 | # Add any extra paths that contain custom files (such as robots.txt or |
196 | 196 | # .htaccess) here, relative to this directory. These files are copied |
|
0 commit comments