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)
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)
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)
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)