Show More
@@ -24,7 +24,14 b' if ON_RTD:' | |||
|
24 | 24 | # see |
|
25 | 25 | # http://read-the-docs.readthedocs.org/en/latest/faq.html |
|
26 | 26 | tags.add('rtd') |
|
27 | ||
|
27 | ||
|
28 | # RTD doesn't use the Makefile, so re-run autogen_{things}.py here. | |
|
29 | for name in ('config', 'api', 'magics'): | |
|
30 | fname = 'autogen_{}.py'.format(name) | |
|
31 | fpath = os.path.abspath(os.path.join('..', fname)) | |
|
32 | with open(fpath) as f: | |
|
33 | exec(compile(f.read(), fname, 'exec'), {'__file__': fpath}) | |
|
34 | ||
|
28 | 35 | # If your extensions are in another directory, add it here. If the directory |
|
29 | 36 | # is relative to the documentation root, use os.path.abspath to make it |
|
30 | 37 | # absolute, like shown here. |
General Comments 0
You need to be logged in to leave comments.
Login now