def setup(app): """Sphinx setup function.""" from cylc.sphinx_ext import register_static app.add_directive('practical', Practical) app.add_directive('practical-extension', PracticalExtension) app.add_directive('spoiler', Spoiler) app.add_javascript('js/spoiler.js') # self-hiding node. register_static(app, __name__) return {'version': __version__, 'parallel_read_safe': True}
def setup(app): """Sphinx setup function.""" from cylc.sphinx_ext import register_static app.add_directive('practical', Practical) app.add_directive('practical-extension', PracticalExtension) app.add_directive('spoiler', Spoiler) app.add_directive('tutorial', Tutorial) register_static(app, __name__) return {'version': __version__, 'parallel_read_safe': True}
def setup(app): """Sphinx plugin setup function.""" from cylc.sphinx_ext import register_static app.add_node(MiniCylc, html=(MiniCylc.visit_html, None), latex=(latex_visit_graphviz, None), texinfo=(texinfo_visit_graphviz, None), text=(text_visit_graphviz, None), man=(man_visit_graphviz, None)) app.add_directive('minicylc', MiniCylcDirective) register_static(app, __name__) return {'version': __version__, 'parallel_read_safe': True}
def test_register_static(): app = Mock() app.config = Mock() app.config.html_static_path = [] register_static(app, 'cylc.sphinx_ext.foo') assert app.config.html_static_path[0].endswith( 'cylc/sphinx_ext/foo/_static' ) register_static(app, 'cylc.sphinx_ext.foo.bar') assert app.config.html_static_path[1].endswith( 'cylc/sphinx_ext/foo/bar/_static' )
def setup(app): """Sphinx plugin setup function.""" register_static(app, __name__) return {'version': __version__, 'parallel_read_safe': True}
def setup(app): """Sphinx plugin setup function.""" app.add_css_file('css/hieroglyph_theme_addons.css') register_static(app, __name__) return {'version': __version__, 'parallel_read_safe': True}
def setup(app): """Sphinx plugin setup function.""" app.add_css_file('css/diff_selector.css') app.add_js_file('js/diff_selector.js') register_static(app, __name__) return {'version': __version__, 'parallel_read_safe': True}
def setup(app): """Sphinx plugin setup function.""" app.add_css_file('css/grid_table.css') register_static(app, __name__) return {'version': __version__, 'parallel_read_safe': True}