I am using the rst_prolog setting to create an "arg" role, which I use
for inline highlighting of function/method argument/parameter names.

  rst_prolog = """
  .. raw:: html

     <style type="text/css">
       .arg {
         font-family: monospace;
         font-size: 90%;
         font-weight: bold;
       }
     </style>

  .. role:: arg
     :class: arg
  """

I would like to use this as the default role, so I that I can simple
use single backticks (without the explicit role identifier) around
argument names in my Python docstrings.

  default_role = 'arg'

This doesn't work, though.  I get the following warning.

  WARNING: default role arg not found

Is there any way to make this work?

--
========================================================================
Google                                      Where SkyNet meets Idiocracy
========================================================================


--
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 sphinx-users+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/sphinx-users/vm4fh0%24f48%241%40ciao.gmane.io.

Reply via email to