From b75d9b7e86bcaf80f4a830023d3748ecbe2f1421 Mon Sep 17 00:00:00 2001 From: Tiago Freitas Pereira <tiagofrepereira@gmail.com> Date: Thu, 12 Oct 2017 08:55:02 +0200 Subject: [PATCH] Script that dumps all the sphinx objects from the inventory URL --- nightlies/intersphinx_dump.py | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 nightlies/intersphinx_dump.py diff --git a/nightlies/intersphinx_dump.py b/nightlies/intersphinx_dump.py new file mode 100644 index 0000000..54e9153 --- /dev/null +++ b/nightlies/intersphinx_dump.py @@ -0,0 +1,34 @@ +#!/usr/bin/env python +# @author: Tiago de Freitas Pereira <tiago.pereira@idiap.ch> + +""" +Dump all the sphinx objects given an inventory URL. + +This script is useful when you are struggling to do proper links with other projects such as: + + - Matplotlib: http://matplotlib.org/objects.inv + - Python: https://docs.python.org/2.7/objects.inv + - Numpy: https://docs.scipy.org/doc/numpy-1.12.0/objects.inv + +Usage: + interphinx_dump.py <url> + interphinx_dump.py -h | --help + +Options: + -h --help Show this screen. +""" + +from sphinx.ext import intersphinx +from docopt import docopt +import warnings + + +def main(): + + args = docopt(__doc__) + + intersphinx.debug(['', args["<url>"]]) + + +if __name__=="__main__": + main() -- GitLab