Question : blog url as GitHub #6220

Closed
opened 2025-11-02 06:48:50 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @tboulogne on GitHub (Oct 27, 2020).

Hello,

I'd like to know how i could access a commit file like on GitHub with :

'https://{host}/{repo}/blob/{sha}/{path}#L{lineno}'

I'd like to have to write a source_linker for pydoc-markdown.

Thanks for help.

regards

Originally created by @tboulogne on GitHub (Oct 27, 2020). Hello, I'd like to know how i could access a commit file like on GitHub with : `` 'https://{host}/{repo}/blob/{sha}/{path}#L{lineno}' `` I'd like to have to write a source_linker for pydoc-markdown. Thanks for help. regards
GiteaMirror added the type/question label 2025-11-02 06:48:50 -06:00
Author
Owner

@6543 commented on GitHub (Oct 27, 2020):

@tboulogne yes

'https://{host}/{repo}/src/branch/{branch}/{path}#L{lineno}'
or
'https://{host}/{repo}/src/commit/{sha}/{path}#L{lineno}'

EDIT: If you have more questions, just ask us on Discord :)

@6543 commented on GitHub (Oct 27, 2020): @tboulogne yes `'https://{host}/{repo}/src/branch/{branch}/{path}#L{lineno}'` or `'https://{host}/{repo}/src/commit/{sha}/{path}#L{lineno}'` EDIT: If you have more questions, just ask us on Discord :)
Author
Owner

@tboulogne commented on GitHub (Oct 27, 2020):

@6543 let me try this :-).

thanks !

@tboulogne commented on GitHub (Oct 27, 2020): @6543 let me try this :-). thanks !
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#6220