Debian Codegraph @

debian/patches/intersphinx_local.diff

raw
1 From: Dmitry Shachnev <[email protected]>
2 Date: Tue, 2 Jun 2020 12:22:52 +0300
3 Subject: Use local intersphinx inventory
4
5 To prevent Sphinx from downloading https://docs.python.org/3/objects.inv
6 during build.
7 ---
8 doc/conf.py | 5 ++---
9 doc/tutorial/deploying.rst | 9 ++++++---
10 2 files changed, 8 insertions(+), 6 deletions(-)
11
12 diff --git a/doc/conf.py b/doc/conf.py
13 index 96f6d37..b79c64f 100644
14 --- a/doc/conf.py
15 +++ b/doc/conf.py
16 @@ -167,9 +167,8 @@ texinfo_documents = [
17 ]
18
19 intersphinx_mapping = {
20 - 'python': ('https://docs.python.org/3/', None),
21 - 'requests': ('https://requests.readthedocs.io/en/latest/', None),
22 - 'readthedocs': ('https://docs.readthedocs.io/en/stable', None),
23 + 'python': ('/usr/share/doc/python3-doc/html', None),
24 + 'requests': ('/usr/share/doc/python-requests-doc/html', None),
25 }
26
27 # Sphinx document translation with sphinx gettext feature uses these settings:
28 diff --git a/doc/tutorial/deploying.rst b/doc/tutorial/deploying.rst
29 index c950d37..5000218 100644
30 --- a/doc/tutorial/deploying.rst
31 +++ b/doc/tutorial/deploying.rst
32 @@ -155,13 +155,16 @@ Read the Docs
33 ~~~~~~~~~~~~~
34
35 `Read the Docs`_ offers integration with both GitHub and GitLab. The quickest
36 -way of getting started is to follow :doc:`the RTD
37 -tutorial <readthedocs:tutorial/index>`, which is loosely based on this one.
38 +way of getting started is to follow `the RTD tutorial`_, which is loosely
39 +based on this one.
40 You can publish your sources on GitHub as explained :ref:`in the previous
41 section <publishing-sources>`, then skip directly to
42 -:ref:`readthedocs:tutorial/index:Creating a Read the Docs account`.
43 +`Creating a Read the Docs account`_.
44 If you choose GitLab instead, the process is similar.
45
46 +.. _the RTD tutorial: https://docs.readthedocs.io/en/stable/tutorial/index.html
47 +.. _Creating a Read the Docs account: https://docs.readthedocs.io/en/stable/tutorial/index.html#creating-a-read-the-docs-account
48 +
49 GitHub Pages
50 ~~~~~~~~~~~~
51