Register the plone-client-python httpexample builder from plone.restapi
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
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di plone/documentation
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
plone/documentation#2114 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
plone/documentation#2077 · 1 commento ·
-
99 tag: sprint
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
plone/documentation#1336 · 9 commenti ·
-
Deploy the documentation site to an R2 bucketForse già presa @ericof l’ha presa oggi. Aperta
plone/documentation#2127 · 1 assegnatario ·
-
Improve backend/vocabularies documentationForse di nuovo libera @flexxy-07 l’ha presa 28 giorni fa e non c’è nessuna pull request aperta. Aperta31 needs: help 99 tag: good first issue
Difficoltà 3/5 Mezza giornata Idoneità per principianti 55/100
plone/documentation#2116 · 2 commenti ·