lib.roles.url

URL Role for docutils.

django_docutils.lib.roles.url.url_role(name, rawtext, text, lineno, inliner, options=None, content=None)[source]

Role for linking to url articles.

Return type:

django_docutils.lib.roles.types.RoleFnReturnValue

Parameters:

Examples

https://google.com:

:url:`https://google.com`

Google:

:url:`Google <https://google.com>`

Styled text:

:url:`*Google* <https://google.com>`