Hi, Thanks for the help. Is there a way to add javascript at the end of the file rather than at the start. (I want to add event handlers to be added at the end of html). ----- Thanks, Thulasi Ram P
On Tue, Jan 12, 2010 at 5:09 AM, Georg Brandl <[email protected]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Am 08.01.2010 09:24, schrieb Thulasi Ram P: >> Hi all, >> There is a tag called 'code-block' supported by sphinx. Now >> I have to write an extension to sphinx which captures the event of >> double-clicking the block and make the code block editable ( or run a >> java-script). Any help regarding this? > > This sounds like a task that will be completely implementable in JavaScript. > - From the Sphinx side, all you need to do is to add your custom JavaScript > code to the output, using: > > def setup(app): > app.add_javascript('mycode.js') > > in either conf.py or your custom extension, and putting mycode.js in the > _static directory. > > cheers, > Georg > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.14 (GNU/Linux) > > iEYEARECAAYFAktMSksACgkQN9GcIYhpnLBFXgCfWq9x+GSr/0igjSGykgZ7zGvh > mV4AniXgi+7Fnm+GpZiUKdRXdPiisd7B > =3AwN > -----END PGP SIGNATURE----- > > -- > 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. > > > >
-- 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.
