Builder output without _static?

14 views
Skip to first unread message

daniel...@useblocks.com

unread,
May 19, 2021, 5:00:19 AMMay 19
to sphinx-dev
Hi all,

is there a way for a self-written builder to skip the creation of _static?
And maybe to skip also all image related actions?

Use case:
I'm the maintainer of the Sphinx-Needs extension, which has a json-builder to extract all need-objects (requirements, specs, test cases, ...) from a Sphinx documentation.
The extracted information is stored in a file called "needs.json".
So no other files are needed (No images, no html, nothing from _static)

Right now I get under "_build/needs":
- needs.json (this I want)
- _static/* (~5 Mb of data, not needed)
- _panels_static/* (~50kB, not needed, coming from the awesome extension Sphinx-Panels)

I'm trying to keep the outcome of the json-builder somehow clean.
This issue is tracked under #115 in our Sphinx-Needs github project.

Any ideas and help is welcome.

Thanks,
 Daniel

Komiya Takeshi

unread,
May 23, 2021, 11:39:00 AMMay 23
to sphin...@googlegroups.com
Hi,

Copying the static files is not responsibility of builders. Only HTML
builders copy them. So no proper way to stop it.
It seems your extension intendedly copies files to _static directory.
Please check `install_lib_static_files` and
`install_styles_static_files`.

Thanks,

2021年5月19日(水) 18:00 daniel...@useblocks.com <daniel...@useblocks.com>:
> --
> You received this message because you are subscribed to the Google Groups "sphinx-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to sphinx-dev+...@googlegroups.com.
> To view this discussion on the web, visit https://groups.google.com/d/msgid/sphinx-dev/73524f14-4385-4d4b-8d25-67d44e8adafbn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages