I was asked in #13072 (comment) to open a new issue for this
Describe the bug
With the new logic discussed in #13072 I don't see a way how a directive can access the builder, to access e.g. app.builder.outdir and app.builder.name. The app can currently be fetched over self.state.document.settings.env.app which won't then work anymore.
You can find my code here: https://github.com/SAP/swagger-plugin-for-sphinx
How to Reproduce
n/a
Environment Information
Platform: linux; (Linux-5.14.21-150500.55.124-default-x86_64-with-glibc2.31)
Python version: 3.14.0 (main, Nov 10 2025, 09:33:32) [GCC 7.5.0])
Python implementation: CPython
Sphinx version: 9.0.0
Docutils version: 0.21.2
Jinja2 version: 3.1.6
Pygments version: 2.19.2
I was asked in #13072 (comment) to open a new issue for this
Describe the bug
With the new logic discussed in #13072 I don't see a way how a directive can access the builder, to access e.g.
app.builder.outdirandapp.builder.name. The app can currently be fetched overself.state.document.settings.env.appwhich won't then work anymore.You can find my code here: https://github.com/SAP/swagger-plugin-for-sphinx
How to Reproduce
n/a
Environment Information