#36450: View source code links in docs are broken
----------------------------+-----------------------------------------
Reporter: Gavin Wahl | Type: Bug
Status: new | Component: Documentation
Version: 5.2 | Severity: Normal
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+-----------------------------------------
Steps:
- Go to [https://docs.djangoproject.com/en/5.2/ref/models/querysets/#sum
Docs for django.db.models.sum]
- Click the '[source]' link
- End up at a github link highlighting a line that doesn't exist:
https://github.com/django/django/blob/stable/5.2.x/django/db/models/aggregates.py#L383
There is no line 383 in that file, so the link to the source code is
broken. It should link to line 192.
I'm seeing this in lots of places in the docs:
https://docs.djangoproject.com/en/5.2/ref/models/constraints/#checkconstraint
links to line 130, should be 153
https://docs.djangoproject.com/en/5.2/ref/paginator/#django.core.paginator.Paginator
links to line 154, should be 27
...etc...
I assume this was broken in #29942 when the sphinx.ext.linkcode extension
was added.
--
Ticket URL: <https://code.djangoproject.com/ticket/36450>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/01070197570bd6e8-8d2ab9f3-4e2b-4347-93ac-055b515c1649-000000%40eu-central-1.amazonses.com.