sphinx-issues icon indicating copy to clipboard operation
sphinx-issues copied to clipboard

Add support for linking to GitHub comments

Open sloria opened this issue 5 years ago • 3 comments

sloria avatar Sep 16 '19 12:09 sloria

Would the syntax be something like

:issue:`123#issuecomment-12345`

?

Or does it need to be a new RST role?

webknjaz avatar Jan 23 '24 13:01 webknjaz

FWIW here's what I do in my projects typically —https://github.com/aio-libs/aiohttp/blob/a379e63/docs/conf.py#L158-L164 (pending replacement with this extension). I have a generic :gh: role as a stop gap for anything not covered by the specific ones like :pr: or :issue:.

webknjaz avatar Jan 23 '24 13:01 webknjaz

I like the proposed syntax since it would support any hash fragment within an issue or PR 👍

sloria avatar Jan 23 '24 16:01 sloria