Repository navigation
Conversation
…pi provides it plone/plone.restapi#2098 adds a plone-client-python builder for sphinxcontrib-httpexample. Its module lives in the plone.restapi submodule and arrives with a submodule update, so the registration is guarded: docs/conf.py registers the builder only when docs/plone.restapi/docs/source/plone_client_python.py exists. Until then the build is unchanged. Refs #2125
Member
|
I'm not sure this is needed. Please review collective/sphinxcontrib-httpexample#153 first. |
Member
Author
|
@stevepiercy thanks for taking a look! I read collective/sphinxcontrib-httpexample#153, and I believe this is still needed. I left the longer explanation in plone/plone.restapi#2098; the short version for this repository:
The registration is guarded, so it does nothing until the submodule brings the builder in, and it can wait for plone/plone.restapi#2098 if you prefer to merge them in that order. One nice side effect of collective/sphinxcontrib-httpexample#153: an unregistered builder name will be reported as a readable directive error instead of the docutils |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
plone/plone.restapi#2098 adds a
plone-clienttab to every request example in the plone.restapi documentation. The tab comes from a customsphinxcontrib-httpexamplebuilder,plone-client-python, that plone.restapi registers in its owndocs/source/conf.py. This repository builds the same pages withdocs/conf.py, which does not know that builder, andsphinxcontrib-httpexamplerejects a builder name that is not registered. Once thesubmodules/plone.restapipointer moves past that change, every page with anhttp:exampledirective would fail to build here.This registers the builder in
docs/conf.py, but only when the submodule provides it. The module that implements the builder,docs/source/plone_client_python.py, does not exist in plone.restapi until plone/plone.restapi#2098 is merged, so an unconditional import would break today's build. With the guard, this change is safe to merge now, does nothing at the current submodule pointer, and takes effect with the submodule update that brings the builder in.Checked from clean builds in both directions. At the current pointer,
make htmlsucceeds with the same 18 warnings as a build oforigin/6.0, and no plone-client tab is produced. With plone/plone.restapi#2098's head checked out,make htmlsucceeds and the endpoint pages carry the plone-client tab. Without the registration, the same build aborts with a docutils error when it meets the unregistered builder name.plone/plone.restapi#2064 (the
@plone/clienttab) will need the same registration for its builder.Closes #2125