예제 #1
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)
예제 #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
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
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)