コード例 #1
0
ファイル: plugin.py プロジェクト: OzanCKN/OpenMDAO-Framework
def plugin_docs(options):
    """A command line script (plugin docs) points to this. It brings up
    the Sphinx documentation for the named plugin in a browser.
    """
    if options.plugin_dist_name is None:
        view_docs(options.browser)
    else:
        _plugin_docs(options.plugin_dist_name, options.browser)
コード例 #2
0
def plugin_docs(options):
    """A command line script (plugin docs) points to this. It brings up
    the Sphinx documentation for the named plugin in a browser.
    """
    if options.plugin_dist_name is None:
        view_docs(options.browser)
    else:
        _plugin_docs(options.plugin_dist_name, options.browser)
コード例 #3
0
ファイル: plugin.py プロジェクト: ts1mps0n/OpenMDAO-Framework
def plugin_docs(parser, options, args=None):
    """A command line script (plugin docs) points to this. It brings up
    the Sphinx documentation for the named plugin in a browser.
    """
    if args:
        print_sub_help(parser, 'docs')
        return -1
    
    if options.plugin_dist_name is None:
        view_docs(options.browser)
    else:
        _plugin_docs(options.plugin_dist_name, options.browser)
コード例 #4
0
def plugin_docs(parser, options, args=None):  # pragma no cover
    """A command line script (plugin docs) points to this. It brings up
    the Sphinx documentation for the named plugin in a browser.
    """
    if args:
        print_sub_help(parser, 'docs')
        return -1

    if options.plugin_dist_name is None:
        view_docs(options.browser)
    else:
        url = find_docs_url(options.plugin_dist_name)
        wb = webbrowser.get(options.browser)
        wb.open(url)
コード例 #5
0
ファイル: plugin.py プロジェクト: fzahle/OpenMDAO-Framework
def plugin_docs(parser, options, args=None):  # pragma no cover
    """A command line script (plugin docs) points to this. It brings up
    the Sphinx documentation for the named plugin in a browser.
    """
    if args:
        print_sub_help(parser, 'docs')
        return -1
    
    if options.plugin_dist_name is None:
        view_docs(options.browser)
    else:
        url = _plugin_docs(options.plugin_dist_name)
        wb = webbrowser.get(options.browser)
        wb.open(url)