r47222 - changes

hawkowl-TA+aISz0psMTMxyoc4vAAJOcrHinNvQL0E9HWUfgJXw@public.gmane.org Wed, 13 Apr 2016 09:44:15 -0600 (MDT)
Newsgroups gmane.comp.python.twisted.commits
Message-ID <[email protected]>
Author: hawkowl
Date: Wed Apr 13 09:44:10 2016
New Revision: 47222

Added:
   branches/apidocs-intersphinx-8290/twisted/topfiles/8290.misc
Modified:
   branches/apidocs-intersphinx-8290/twisted/python/_release.py

Log:
changes

Modified: branches/apidocs-intersphinx-8290/twisted/python/_release.py
==============================================================================
--- branches/apidocs-intersphinx-8290/twisted/python/_release.py	(original)
+++ branches/apidocs-intersphinx-8290/twisted/python/_release.py	Wed Apr 13 09:44:10 2016
@@ -30,6 +30,11 @@
 # The offset between a year and the corresponding major version number.
 VERSION_OFFSET = 2000
 
+intersphinxURLs = [
+    "https://docs.python.org/2/objects.inv",
+    "https://pyopenssl.readthedocs.org/en/stable/objects.inv",
+]
+
 
 def runCommand(args, cwd=None):
     """
@@ -577,6 +582,12 @@
         @param outputPath: An existing directory to which the generated API
             documentation will be written.
         """
+        intersphinxes = []
+
+        for intersphinx in intersphinxURLs:
+            intersphinxes.append("--intersphinx")
+            intersphinxes.append(intersphinx)
+
         from pydoctor.driver import main
         main(
             ["--project-name", projectName,
@@ -586,7 +597,8 @@
              "--html-viewsource-base", sourceURL,
              "--add-package", packagePath.path,
              "--html-output", outputPath.path,
-             "--html-write-function-pages", "--quiet", "--make-html"])
+             "--html-write-function-pages", "--quiet", "--make-html",
+            ] + intersphinxes)