Your code works perfectly when I try it. See yourself:
http://luc.lino-framework.org/blog/2016/0107a.html
One observation: it does *not* work when I open the generated file from
my machine, I had to publish it to my website.
Luc
On 07/01/16 07:32, Bachir Aoun wrote:
> I am trying to embed my google-groups forum into the docstring of my
> python code so Sphinx generated html will embed it into the web page's.
> my code as as the following:
>
> |
> """
> Questions and Answers forum
> ===========================
> .. raw:: html
>
>
> <iframe id="forum_embed"
> src="javascript:void(0)"
> scrolling="no"
> frameborder="0"
> width="900"
> height="700">
> </iframe>
>
> <script type="text/javascript">
> document.getElementById('forum_embed').src =
> 'https://groups.google.com/forum/embed/?place=forum/MYPACKAGE'
> + '&showsearch=true&showpopout=true&showtabs=false'
> + '&parenturl=' + encodeURIComponent(window.location.href);
> </script>
>
>
> """
> |
>
>
> but the output is an empty space after the title *Questions and Answers
> forum*
> I am not very experimented with html neither javascripts nor templating
> so excuse my ignorance if my question is not complete. But I would like
> to know how to make this works :)
> thanks
>
> --
> 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]
> <mailto:[email protected]>.
> To post to this group, send email to [email protected]
> <mailto:[email protected]>.
> Visit this group at https://groups.google.com/group/sphinx-users.
> For more options, visit https://groups.google.com/d/optout.
--
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.