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

オープン
#2,125 コメント 2 件 リアクション 0 件 担当者 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分
マージ済み PR(30日)
3

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

plone/documentation のほかの issue

plone/documentation の issue をすべて見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。