[email protected] schrieb:
>> the directives and roles you're using are not standard Sphinx directives.
>> They are added specially for the Sphinx docs since they're not of much
>> use for Python projects.
>>
>> Have a look at sphinx/doc/conf.py to see how to copy this feature to
>> your own.
> 
> Awesome! I was looking for the confval directive/role as well, being
> bit puzzled why it couldn't be found from Sphinx. But indeed,
> definition in conf.py does the trick (never thought that setup can be
> set in conf.py as well):
> 
> def setup(app):
>   app.add_description_unit('confval', 'confval',
>     'pair: %s; configuration value')
> 
> The example of confval could be mentioned in add_description_unit
> documentation, as many others may try to find how Sphinx documentation
> has done it.

We already have an example that is also in Sphinx' documentation:

      app.add_description_unit('directive', 'dir', 'pair: %s; directive')

Georg

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sphinx-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to