Hi all,

I am quite new to Sphinx, so sorry for newbie question. I was able to write 
my own extension based on directives.admonitions.BaseAdmonition. It was 
quite easy. Now I need to write more generic extension.

I have code like:

"""
.. |mActionAddOgrLayer| image:: ../images/icon/mActionAddOgrLayer.png
   :width: 1.5em

Use this |mActionCapturePolygon| :sup:`Add feature`  to add new object to 
the map.
"""

I want to define new role 'icon' which I could use like:

"""
Use this :icon:`mActionAddOgrLayer` to add new object to the map.
"""

Please could you point where to start when writing such generic extension? 
Thanks! Martin

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to