Skip to content

Remove builder style#82

Open
has2k1 wants to merge 5 commits intoposit-dev:mainfrom
has2k1:remove-builder-style
Open

Remove builder style#82
has2k1 wants to merge 5 commits intoposit-dev:mainfrom
has2k1:remove-builder-style

Conversation

@has2k1
Copy link
Copy Markdown
Collaborator

@has2k1 has2k1 commented Apr 2, 2026

The renderer has no style-specific logic, making BuilderPkgdown,
BuilderSinglePage, and the _registry/init_subclass dispatch
mechanism redundant.

Depends on #81

has2k1 added 4 commits April 1, 2026 21:47
The three-layer renderer hierarchy (Renderer → MdRenderer → bridge
Renderer →
assets Renderer) existed only to satisfy the old class structure. The
new
_render/ subpackage only uses the renderer as a config holder (3
properties).
RenderConfig was a pass-through dataclass threaded through every Render
object but only consumed in two places. Move its properties to their
natural homes:

- display_name_format, signature_name_format → RenderDoc fields
- header_level, typing_module_paths → Builder attributes
- show_signature → already a RenderDoc field (redundant override removed)

Delete _render_config.py and remove config from RenderBase.
The "q" prefix was a historical artifact. Rename the private subpackage
to the simpler _renderer name, updating all 138 references across
source, tests, and configuration.
The renderer has no style-specific logic, making BuilderPkgdown,
BuilderSinglePage, and the _registry/__init_subclass__ dispatch
mechanism redundant.
@has2k1 has2k1 force-pushed the remove-builder-style branch from bf2e5d8 to 81b24dd Compare April 2, 2026 06:46
Previous commit undid a bundling of these errors but left the test
unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant