Skip to content

Add sphinx.ext.linkcode to link API docs directly to GitHub source - #1176

Closed
viknesh-ai wants to merge 1 commit into
stumpy-dev:mainfrom
viknesh-ai:feat/linkcode-source-links
Closed

Add sphinx.ext.linkcode to link API docs directly to GitHub source#1176
viknesh-ai wants to merge 1 commit into
stumpy-dev:mainfrom
viknesh-ai:feat/linkcode-source-links

Conversation

@viknesh-ai

Copy link
Copy Markdown

Replaces sphinx.ext.viewcode (which copies source into the built docs) with sphinx.ext.linkcode, so each "[source]" link on readthedocs points straight to the corresponding line range on GitHub, following the same pattern used by numpy and pandas.

Fixes #1081

Replaces sphinx.ext.viewcode (which copies source into the built docs)
with sphinx.ext.linkcode, so each "[source]" link on readthedocs points
straight to the corresponding line range on GitHub, following the same
pattern used by numpy and pandas. Falls back to the `main` branch when
stumpy.__version__ isn't a resolvable release version (e.g. editable
installs).

Fixes stumpy-dev#1081
@viknesh-ai
viknesh-ai requested a review from seanlaw as a code owner August 9, 2026 05:29
@gitnotebooks

gitnotebooks Bot commented Aug 9, 2026

Copy link
Copy Markdown

Review these changes at https://app.gitnotebooks.com/stumpy-dev/stumpy/pull/1176

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown

❌ This pull request has been automatically closed because the mandatory PR template was removed or not filled out. Please reopen or recreate this PR with the required information.

@github-actions github-actions Bot closed this Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add [source] to RTD

1 participant