Register the plone-client-python httpexample builder from plone.restapi

未关闭
#2,125 2 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@ericof 已经在做这个了。

开始于 2026年11月23日。

  • #2126 来自 @ericof —— 未关闭

评估

这个 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

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

plone/documentation 的其他 Issue

查看 plone/documentation 的全部 Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。