Is there a way to add some JS to $(document).ready() for every page
generated by Sphinx via configuration (thus avoid patching the generated
stuff afterwards)?
In particular, currently I am patching the generated
_static/doctools.js
for
$(document).ready(function() {
Documentation.init();
* var frame = $('#thisframe', window.parent.document);
frame.height(document.body.offsetHeight);*
});
This is for dynamically adjusting the IFrame height containing the Sphinx
generated docs. The IFrame is integrated into a site.
<div class="pagewrapper">
*<iframe src="{{ url_for('static', filename =
'reference/python/index.html') }}" id="thisframe" seamless="seamless">*
<p>Your browser does not support iframes.</p>
</iframe>
</div> <!-- pagewrapper -->
This works great, but as said I'd like to avoid patching the generated
stuff ..
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/sphinx-dev/-/I3I6Jz3Fv0wJ.
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.