Hi Guenter,

On Fri, Feb 5, 2010 at 3:08 AM, Guenter Milde <[email protected]> wrote:
> An easy workaround is to use a rubric instead (if no ToC is required).
>
> Docutils circumvents this problem with the `strip-elements-with-class`
> configuration item like::
>
>  .. class:: solution
>
>  Solution
>  ========
>
>  The answer is 42.
>
>  Question
>  ========
>
>  Now we want to know the question.
>
> Calling the Docutils converter like
>
>  rst2html --strip-elements-with-class=solution
>
> or setting::
>
>  strip-elements-with-class: solution
>
> in the config file strip the whole "Question" section up till the next
> section title of the same level.
>
> Comments:
>
> I don't know whether the strip-elements-with-class option is implemented
> in Sphinx.
>
> In Sphinx, you might need to write ``.. cssclass::`` for the class
> argument.


You're very correct, and indeed I hit that limitation.  I can't try
your idea though, because I couldn't figure out how/where in conf.py
to set

strip-elements-with-class: solution

That file is python syntax, so obviously this doesn't work as-is.

Any further hints so we can arrive at a full solution for this would
be greatly appreciated.

Regards,

f

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