Register the plone-client-python httpexample builder from plone.restapi
评估
这个 Issue 还没有评估数据。
描述
plone/plone.restapi#2098 adds a plone-client tab to every request example of the plone.restapi documentation. The tab comes from a custom sphinxcontrib-httpexample builder that plone.restapi registers in its own docs/source/conf.py; this repository builds the same pages with its own docs/conf.py, which does not know the builder.
sphinxcontrib-httpexample rejects a builder name that is not registered, so once the submodules/plone.restapi pointer moves past that change, every page with an http:example directive fails to build here.
Register the builder in docs/conf.py before (or together with) that submodule bump:
sys.path.insert(0, os.path.abspath("plone.restapi/docs/source"))
from plone_client_python import build_plone_client_python
from sphinxcontrib.httpexample import register_builder
register_builder(
"plone-client-python",
build_plone_client_python,
"python",
"plone-client",
)
docs/plone.restapi is the symlink to the submodule that make docs/plone.restapi creates, so the path resolves in local builds and on Read the Docs alike.
plone/plone.restapi#2064 (@plone/client tab) will need the same treatment for its builder.
- 主要语言
- Makefile
- 星标
- 109
- 派生
- 192
- 平均合并
- 5 小时 13 分钟
- 30 天内合并 PR
- 3
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
plone/documentation 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
plone/documentation#2114 ·
-
难度 1/5 1 小时以内 新手友好度 62/100
plone/documentation#2077 · 1 条评论 ·
-
99 tag: sprint
难度 2/5 1-3 小时 新手友好度 68/100
plone/documentation#1336 · 9 条评论 ·
-
Deploy the documentation site to an R2 bucket可能已有人在做 @ericof 今天认领。 未关闭
plone/documentation#2127 · 已指派 1 人 ·
-
Improve backend/vocabularies documentation可能重新可做 @flexxy-07 于 28 天前认领,目前没有进行中的 PR。 未关闭31 needs: help 99 tag: good first issue
难度 3/5 半天 新手友好度 55/100
plone/documentation#2116 · 2 条评论 ·