Skip to content

Conversation

Bibo-Joshi
Copy link
Member

make the [source] anchors point to the correct file on github wherever reasonably possible, including the correct line numbers and the correct blob. I chose the output of git describe --tags here as it

  • makes sure that on dev branches we don't point to master
  • makes sure to point directly to the corresponding tag when building from a release commit

A build of this branch is up at https://python-telegram-bot.readthedocs.io/en/doc-linkcode-tuning/

@Bibo-Joshi Bibo-Joshi added the ⚙️ documentation affected functionality: documentation label Jan 11, 2022
@Bibo-Joshi Bibo-Joshi requested a review from harshil21 January 11, 2022 17:38
Copy link
Member

@harshil21 harshil21 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! I definitely wouldn't have thought of using an unrelated function to achieve this.

@Bibo-Joshi Bibo-Joshi merged commit 60c5a52 into doc-fixes Jan 11, 2022
@Bibo-Joshi Bibo-Joshi deleted the doc-linkcode-tuning branch January 11, 2022 18:56
@github-actions github-actions bot locked and limited conversation to collaborators Jan 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
⚙️ documentation affected functionality: documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants