embed javascript in html?

14 views
Skip to first unread message

Nadia Pranabudi

unread,
Mar 2, 2020, 8:20:35 PM3/2/20
to sphinx-users
Hi!

Rather than creating external javascript files, is there a way to have them embedded in the html files?

Thanks!!
Nadia

Komiya Takeshi

unread,
Mar 5, 2020, 8:10:16 AM3/5/20
to sphinx...@googlegroups.com
Hi,

You can embed JavaScript into HTML files directly using
`Sphinx.add_js_file()` API.
https://www.sphinx-doc.org/en/master/extdev/appapi.html#sphinx.application.Sphinx.add_js_file

Thanks,
Takeshi KOMIYA

2020年3月3日(火) 10:20 Nadia Pranabudi <npran...@gmail.com>:
> --
> 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 sphinx-users...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/sphinx-users/c975f901-a69f-4187-8bcd-5fd935f54bb8%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages