>>>>> "Max" == Max Battcher <[email protected]> writes:
Max> On 9/11/2009 12:29, Terry Jones wrote:
>> Second, can I put an image into a section header in some way? I want
>> some sections to have an icon next to them to indicate that they're
>> special in some way. I probably have enough CSS skills to achieve this,
>> but how can I make a section emit a class="xxxx" inside the<hX>...</hX>
>> markup?

Max> Sounds like the docutils class directive is what you are looking for:
Max> http://docutils.sourceforge.net/docs/ref/rst/directives.html#class

Hi Max

Thanks a lot for the reply. I tried a class directive, but Sphinx (or
something) seems to think I'm trying to define some terms. E.g., I put this
into my source

    .. class:: incompatible

    Error information is now returned in HTTP headers
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

And the resulting HTML looks like this:

    <dl class="class">
    <dt>
    <tt class="descname">incompatible</tt></dt>
    <dd></dd></dl>

    <div class="section" id="error-information-is-now-returned-in-http-headers">


I guess I'm doing something wrong, though the instructions you pointed me
to are quite clear and simple, and even give an example of doing this to
set the class for the subsequent section.

Terry

--~--~---------~--~----~------------~-------~--~----~
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