Commit 919bdfbf3326e4caa26f4967d2590b088857ee85
1 parent
e9a16438
Remove exts folder and rawfiles
Showing
3 changed files
with
6 additions
and
39 deletions
doc/source/conf.py
| ... | ... | @@ -36,22 +36,21 @@ except: |
| 36 | 36 | 'WARNING: https://pypi.python.org/pypi/sphinxcontrib-doxylink\n') |
| 37 | 37 | |
| 38 | 38 | # http://sphinx-doc.org/extensions.html#where-to-put-your-own-extensions |
| 39 | -sys.path.append(os.path.abspath('exts')) | |
| 39 | +#sys.path.append(os.path.abspath('exts')) | |
| 40 | 40 | |
| 41 | 41 | # We bundled the `rawfiles` sphinx extension to copy over files on sphinx build |
| 42 | 42 | # https://pypi.python.org/pypi/sphinxcontrib-rawfiles |
| 43 | -extensions += ['rawfiles'] | |
| 43 | +#extensions += ['rawfiles'] | |
| 44 | 44 | |
| 45 | 45 | # You can list any files or folders here that should be copied 1:1 to the html |
| 46 | 46 | # output directory by sphinx-build |
| 47 | -rawfiles = ['fhelp'] | |
| 47 | +#rawfiles = ['fhelp'] | |
| 48 | 48 | |
| 49 | 49 | # This makes it possible to cross-link to the GammaLib Sphinx docs |
| 50 | 50 | # see http://sphinx-doc.org/ext/intersphinx.html |
| 51 | 51 | intersphinx_mapping = dict() |
| 52 | 52 | intersphinx_mapping['gammalib'] = ('http://gammalib.sourceforge.net/', None) |
| 53 | 53 | |
| 54 | - | |
| 55 | 54 | # Add any paths that contain templates here, relative to this directory. |
| 56 | 55 | templates_path = ['_templates'] |
| 57 | 56 | ... | ... |
doc/source/exts/rawfiles.py deleted
| 1 | -# -*- coding: utf-8 -*- | |
| 2 | -# Copied from https://bitbucket.org/birkenfeld/sphinx-contrib/ | |
| 3 | -import os | |
| 4 | -import shutil | |
| 5 | - | |
| 6 | -def on_html_collect_pages(app): | |
| 7 | - for f in app.builder.config.rawfiles: | |
| 8 | - src = os.path.join(app.srcdir, f) | |
| 9 | - dst = os.path.join(app.builder.outdir, f) | |
| 10 | - # cleanup | |
| 11 | - if os.path.exists(dst): | |
| 12 | - if os.path.isdir(dst): | |
| 13 | - shutil.rmtree(dst) | |
| 14 | - elif os.path.isfile(dst): | |
| 15 | - os.remove(dst) | |
| 16 | - # copy file | |
| 17 | - if os.path.exists(src): | |
| 18 | - if os.path.isdir(src): | |
| 19 | - shutil.copytree(src, dst) | |
| 20 | - elif os.path.isfile(src): | |
| 21 | - shutil.copy(src, dst) | |
| 22 | - else: | |
| 23 | - msg = ('rawfiles target is not directory or file "%s".' % src) | |
| 24 | - app.builder.warn(msg) | |
| 25 | - else: | |
| 26 | - msg = ('rawfiles can not find "%s".' % src) | |
| 27 | - app.builder.warn(msg) | |
| 28 | - | |
| 29 | - return () | |
| 30 | - | |
| 31 | -def setup(app): | |
| 32 | - app.add_config_value('rawfiles', [], 'html') | |
| 33 | - app.connect("html-collect-pages", on_html_collect_pages) | |
| 34 | 0 | \ No newline at end of file |
doc/source/reference_manual/index.rst
| 1 | -ctools reference manual | |
| 2 | -======================= | |
| 1 | +Reference Manual | |
| 2 | +================ | |
| 3 | 3 | |
| 4 | +This manual provides reference information for all ctools and csripts. | |
| 4 | 5 | General information on ctools usage can be found `here <usage.html>`__. |
| 5 | 6 | |
| 6 | 7 | Below you find links to the command line reference for the tools and scripts | ... | ... |