跳转到主要内容

sphinx-github-role

项目描述

sphinx-github-role

Documentation Status Code style: black PyPI

Sphinx的github角色。

安装

要安装,请运行

(.venv) $ pip install sphinx-github-role

使用方法

基本用法

MyST

:caption: index.md
See {github}`astrojuanlu/sphinx-github-role#1`.

reStructuredText

:caption: index.rst
See :github:`astrojuanlu/sphinx-github-role#1`.

配置默认组织和项目

扩展接受一个配置github_default_org_project,它可以是一个元组("default_org", "default_project")以节省一些输入。例如,使用此配置

:caption: conf.py
github_default_org_project = ("astrojuanlu", None)

您可以输入此内容

:caption: index.md
See {github}`sphinx-github-role#1`.

使用此配置

:caption: conf.py
github_default_org_project = ("astrojuanlu", "sphinx-github-role")

您只需要输入此内容

:caption: index.md
See {github}`#1`.

自定义链接文本

您还可以通过将目标包裹在尖括号中来自定义链接文本

:caption: index.md
See {github}`this issue <#1>`.

贡献

欢迎您提出问题或建议新功能!

项目详情


下载文件

下载适合您平台的应用程序。如果您不确定要选择哪一个,请了解更多关于 安装包 的信息。

源代码分发

sphinx-github-role-0.1.0.tar.gz (2.8 kB 查看哈希值)

上传时间 源代码

构建分发版

sphinx_github_role-0.1.0-py2.py3-none-any.whl (3.1 kB 查看哈希值)

上传时间 Python 2 Python 3

由以下提供支持

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面