docs/sphinxext/configtraits.py
raw| 1 | """Directives and roles for documenting traitlets config options. |
| 2 | |
| 3 | :: |
| 4 | |
| 5 | .. configtrait:: Application.log_datefmt |
| 6 | |
| 7 | Description goes here. |
| 8 | |
| 9 | Cross reference like this: :configtrait:`Application.log_datefmt`. |
| 10 | """ |
| 11 | |
| 12 | |
| 13 | def setup(app): |
| 14 | app.add_object_type("configtrait", "configtrait", objname="Config option") |
| 15 | metadata = {"parallel_read_safe": True, "parallel_write_safe": True} |
| 16 | return metadata |