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

Abierto
#2,125 2 comentarios 0 reacciones 1 asignado Ver en GitHub

@ericof ya está trabajando en esto.

Desde el 23/11/2026.

  • #2126 de @ericof — abierto

Evaluación

Este issue todavía no se ha evaluado.

Descripción

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.

Lenguaje dominante
Makefile
Estrellas
109
Forks
192
Merge medio
5 h 13 min
PR fusionados (30 d)
3

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de plone/documentation

Todos los issues de plone/documentation

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.