Replies: 1 comment 2 replies
-
I'm not sure if I got your use case correct. So, let me try to rephrase it in my own words: If I'm correct, I have done something similar. But the configuration was provided by a versioned Python package and the project-specific from my_conf import needs_types, needs_extra_options as my_common_options
needs_extra_options = ['my_projecT_configs'] + my_common_options I'm not sure if it is a good idea to overwrite the config of an extension from another extension, as there are some many corner-cases, where config values may be changed at different events in the sphinx-build process. |
Beta Was this translation helpful? Give feedback.
-
Hello,
when working on sphinx extension to bundle my configuration for multiple sphinx-needs projects, how would one configure
the
needs_extra_links = list(dict)
or theneeds_global_options
?The api gives us add_extra_option, which works well when bound to sphinx's "config-inited" phase, also adding need types via "add_need_type" is no problem.
I guess my question is, if there are examples available, for this? I checked the sphinx-modelling and some others, but was not able to find an example.
I am not sure, this is the correct channel to ask, please point to somewhere else if possible and needed...
Thanks up front and regards!
Beta Was this translation helpful? Give feedback.
All reactions