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:
2
tests/sphinx/testdata/package/__init__.py
vendored
Normal file
2
tests/sphinx/testdata/package/__init__.py
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
# This file should never get imported. If it is, then something failed already.
|
||||
raise Exception
|
||||
5
tests/sphinx/testdata/package/import_error.py
vendored
Normal file
5
tests/sphinx/testdata/package/import_error.py
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
from .....test import Test # noqa
|
||||
|
||||
|
||||
class MyClass:
|
||||
pass
|
||||
25
tests/sphinx/testdata/package/module.py
vendored
Normal file
25
tests/sphinx/testdata/package/module.py
vendored
Normal 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
|
||||
2
tests/sphinx/testdata/package/other_module.py
vendored
Normal file
2
tests/sphinx/testdata/package/other_module.py
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
class MyOtherClass:
|
||||
pass
|
||||
2
tests/sphinx/testdata/package/wildcard_base.py
vendored
Normal file
2
tests/sphinx/testdata/package/wildcard_base.py
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
class WildcardMixin:
|
||||
pass
|
||||
5
tests/sphinx/testdata/package/wildcard_module.py
vendored
Normal file
5
tests/sphinx/testdata/package/wildcard_module.py
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
from .wildcard_base import WildcardMixin # noqa
|
||||
|
||||
|
||||
class WildcardClass:
|
||||
pass
|
||||
Reference in New Issue
Block a user