On Sep 23, 4:46 pm, TP <wing...@gmail.com> wrote:
> On Thu, Sep 23, 2010 at 12:54 PM, Jeremy <ripvt...@gmail.com> wrote:
> > Hello,
> >   I'm new to Sphinx and was wondering if there is a way to render
> > html that was typed in rst?
>
> > Something along the lines of this:
>
> > .. sourcecode:: html
> >    <div id="main">My Div</div>
>
> > The above would actually render a div in the docs when built.
>
> > I would also like to do the following:
>
> > .. sourcecode: javascript
> >   alert('hi')
>
> > And this will present the viewer of the docs with an alert box.
>
> > Is there currently a way to do this? If not is there any direction
> > someone could give me on editing the markup rendered via a custom
> > built extension.
>
> > I have already created one extension and am slowly getting familiar
> > with the code, but at this point I'm unable to see anyway of rendering
> > the above.
>
> > Thank you,
> > Jeremy
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "sphinx-dev" group.
> > To post to this group, send email to sphinx-...@googlegroups.com.
> > To unsubscribe from this group, send email to 
> > sphinx-dev+unsubscr...@googlegroups.com.
> > For more options, visit this group 
> > athttp://groups.google.com/group/sphinx-dev?hl=en.
>
> Did you try the "raw" directive?
>
> Seehttp://sphinx.pocoo.org/rest.html#directivesandhttp://docutils.sourceforge.net/docs/ref/rst/directives.html#rawfor
> more info.

Thank you very much! That does exactly what I need!

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

Reply via email to