1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Fixed #29942 -- Restored source file linking in docs by using the Sphinx linkcode ext.

Co-authored-by: David Smith <smithdc@gmail.com>
Co-authored-by: Natalia <124304+nessita@users.noreply.github.com>
This commit is contained in:
Joachim Jablon
2023-06-02 00:33:27 +01:00
committed by nessita
parent f030236a86
commit b691accea1
11 changed files with 414 additions and 2 deletions

View File

@@ -0,0 +1,2 @@
# This file should never get imported. If it is, then something failed already.
raise Exception

View File

@@ -0,0 +1,5 @@
from .....test import Test # noqa
class MyClass:
pass

25
tests/sphinx/testdata/package/module.py vendored Normal file
View File

@@ -0,0 +1,25 @@
"""
Example docstring
"""
from django.utils.functional import cached_property
from tests.sphinx.testdata.package.wildcard_module import * # noqa
from . import other_module # noqa
from .other_module import MyOtherClass # noqa
class MyClass(object):
def __init__(self):
pass
def my_method(self):
pass
@cached_property
def my_cached_property(self):
pass
def my_function(self):
pass

View File

@@ -0,0 +1,2 @@
class MyOtherClass:
pass

View File

@@ -0,0 +1,2 @@
class WildcardMixin:
pass

View File

@@ -0,0 +1,5 @@
from .wildcard_base import WildcardMixin # noqa
class WildcardClass:
pass