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

Aperta
#2,125 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@ericof ci sta già lavorando.

Dal 23/11/2026.

  • #2126 di @ericof — aperta

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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.

Lingua principale
Makefile
Stelle
109
Fork
192
Merge medio
5h 13m
PR unite (30g)
3

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di plone/documentation

Tutte le issue di plone/documentation

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.