Question on support for needs_global_options using TOML
#1495
-
|
Hi Sphinx-Needs Community, I have ported over my configuration file to use a toml file using My use case is to set default properties on my needs (in one case based upon the directory structure so that I do not need to manually annotate many needs with fields). I can successfully do it using I am wondering if there is equivalent syntax to be able to use this inside the toml file instead of in the Does this functionality exist or is it planned? Is there a better way to do this?
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Heya, yep it already exists; you can put all sphinx-needs configuration in the toml (assuming none require dynamic python code) |
Beta Was this translation helpful? Give feedback.
-
|
Does that already answer your question? |
Beta Was this translation helpful? Give feedback.

Does that already answer your question?
You'll find a little example at the end of the example in the ubCode docs how to do the config in TOML.
There is also a migration script for the config that you can use to translate between conf.py and ubproject.toml.