chiark / gitweb /
documentation/python: implement context-relative linking.
authorVladimír Vondruš <mosra@centrum.cz>
Sat, 24 Aug 2019 16:13:15 +0000 (18:13 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Sun, 25 Aug 2019 10:47:45 +0000 (12:47 +0200)
commit810fd115851c641aa038a1968659c98dbd8a48f7
tree77a0e0afbd82f57e745bccf5b655ba16bf76aa14
parent7645c6a9aa704acab0a6c913fd83bb5d96eb51f8
documentation/python: implement context-relative linking.

I didn't change much, but the amount of research needed to verify that I'm
indeed doing it (mostly) correct was extreme. There's a pathological case
inside a named subclass where I'm doing it differently than Python itself,
but I don't expect this to be hit very often, so postponing until later.

The tests also assert inside the function definitions (and those functions
get called) to verify we're indeed doing (mostly) correct stuff.
doc/documentation/python.rst
documentation/python.py
documentation/test_python/inspect_type_links/docs.rst [new file with mode: 0644]
documentation/test_python/inspect_type_links/inspect_type_links.first.Foo.Foo.html
documentation/test_python/inspect_type_links/inspect_type_links.first.Foo.html
documentation/test_python/inspect_type_links/inspect_type_links.first.html
documentation/test_python/inspect_type_links/inspect_type_links.first.sub.Foo.html
documentation/test_python/inspect_type_links/inspect_type_links/__init__.py
documentation/test_python/inspect_type_links/inspect_type_links/first/__init__.py
documentation/test_python/test_inspect.py
plugins/m/sphinx.py