Ejemplo n.º 1
0
def test_copy_javascript_into_static_path():
    copybutton.copy_javascript_into_static_path("_static", 
        copybutton.get_copybutton_path())
    copybutton.copy_javascript_into_static_path("_static", 
        copybutton.get_copybutton_path())
    import os 
    os.remove("_static/copybutton.js")
    os.rmdir("_static")
Ejemplo n.º 2
0
def test_copy_javascript_into_static_path():
    copybutton.copy_javascript_into_static_path(
        "_static", copybutton.get_copybutton_path())
    copybutton.copy_javascript_into_static_path(
        "_static", copybutton.get_copybutton_path())
    import os
    os.remove("_static/copybutton.js")
    os.rmdir("_static")
Ejemplo n.º 3
0
    'easydev.copybutton',
    'matplotlib.sphinxext.plot_directive',
    #'sphinx_gallery.gen_gallery'
]

# note that the numpy directives is buggy. Example: class and init are not recognised as two entities for the autoclass_content=both here below

graphviz_output_format = 'png'
graphviz_dot_args = ['-Gsize=15,15', '-Nfontsize=34']

todo_include_todos = True
jscopybutton_path = "copybutton.js"
try:
    from easydev.copybutton import get_copybutton_path
    from easydev.copybutton import copy_javascript_into_static_path
    copy_javascript_into_static_path("_static", get_copybutton_path())
except Exception:
    print("could not copy the copybutton javascript")

autoclass_content = 'both'

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# The suffix of source filenames.
source_suffix = '.rst'

# The encoding of source files.
# source_encoding = 'utf-8-sig'

# The master toctree document.
Ejemplo n.º 4
0
    'sphinx.ext.pngmath']

# note that the numpy directives is buggy. Example: class and init are not recognised as two entities for the autoclass_content=both here below

plot_formats = [("png", 150), ("pdf", 150)]

graphviz_output_format = 'png'
graphviz_dot_args = ['-Gsize=15,15', '-Nfontsize=34']


todo_include_todos=True
jscopybutton_path = "copybutton.js"
try:
    from easydev.copybutton import get_copybutton_path 
    from easydev.copybutton import copy_javascript_into_static_path
    copy_javascript_into_static_path("_static", get_copybutton_path())
except:
    print("could not copy the copybutton javascript")


autoclass_content = 'both'

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

# The suffix of source filenames.
source_suffix = '.rst'

# The encoding of source files.
#source_encoding = 'utf-8-sig'
Ejemplo n.º 5
0
Archivo: conf.py Proyecto: jccosta/vcs
    'sphinx.ext.viewcode',
    'sphinx.ext.extlinks',
    'sphinx.ext.doctest',
    'sphinx.ext.intersphinx',
    'sphinx.ext.graphviz',
    'sphinx.ext.napoleon',
    'nbsphinx',
    'sphinx.ext.mathjax',
]

jscopybutton_path = "copybutton.js"

try:
    from easydev.copybutton import get_copybutton_path
    from easydev.copybutton import copy_javascript_into_static_path
    copy_javascript_into_static_path("_build/html/_static",
                                     get_copybutton_path())
except Exception:
    print("could not copy the copybutton javascript")

# turn off doctests of autodoc included files (these are tested elsewhere)
# doctest_test_doctest_blocks = None
doctest_path = sys.path

# Not currently doctesting VCS with sphinx due to some conflicting name errors across tests
# in the same python instance.
# Setup and cleanup might be able to fix it, but I couldn't get it to work
doctest_global_setup = """
import vcs, cdms2, os
ex = ex1 = ex2 = None
__examples = [ex, ex1, ex2]
# Copy vcs.elements so we can do a diff later.