How to register a directive

28 views
Skip to first unread message

Adrien Laveau

unread,
Apr 4, 2024, 5:28:31 AMApr 4
to sphinx-users
Dear sphinx-users,

For the software I am working on, a previous developer has modified the file sphinx/directives/__init__.py

By adding the following line at the end :

directives.register_directive('uparam', ObjectDescription)

My understanding is that his idea was to register his uparam directives. Is there a way to achieve the same goal but not modifying the source code? Maybe in conf.py or anyother configuration file.

Thank you

Adrien Laveau

unread,
Apr 4, 2024, 5:35:32 AMApr 4
to sphinx-users
The modification was done when running sphinx 1.3.1

Adrien Laveau

unread,
Apr 17, 2024, 3:16:07 AMApr 17
to sphinx-users
Hello everyone,

For those who needs it, I finally placed it in the conf.py file and it works fine.
Reply all
Reply to author
Forward
0 new messages