inmanta / inmanta-sphinx

Sphinx domains for Inmanta docs
0 stars 0 forks source link

Don't perform a full compile for documentation generation #31

Closed wouterdb closed 4 years ago

wouterdb commented 4 years ago

Currently, compiler.do_compile is used. (https://github.com/inmanta/inmanta-sphinx/blob/master/sphinxcontrib/inmanta/api.py#L114)

It would be beter to use the compiler without actually executing the code, but only loading the types.

A typing-only entry point can be added to the compiler, comparable to https://github.com/inmanta/inmanta/blob/master/src/inmanta/compiler/__init__.py#L101