At 2:08pm -0400 Tue, 31 Jul 2012, Pdbarnes  wrote:
I need to distinguish the singlehtml and (multiple page) html, from
within javascript. Any ideas?

Take this with a grain of salt because I've thought about this for all of 10 seconds, but it seems to me that a distinguishing metric would be size (as in, character count). If you have more than one page in the multiple page version, then methinks that singlehtml would always be larger. Perhaps as a metric that you manually check after X builds builds of your documentation, so that you can update the javascript accordingly.

Another path might be to pick some (any) text that is guaranteed not to be in the initial index.html of the multiple page version. Perhaps in the title tag, or you include some hidden and unique element in a sub page through use of ".. raw::". Then, if the text or element exists, on the page, you know it's in singlehtml mode.

Once you've chosen HTML and a browser as the preferred manual medium, you have a lot more flexibility (via javascript) than sticking with /both/ HTML and LaTeX.

Kevin

--
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.

Reply via email to