It finally dawned on me to take advantage of the fact that we're using our own theme. In layout.html, we insert:
<script type="text/javascript">var builder="{{builder}}";</script> then a subsequent script can check that variable: if ( (typeof builder != 'undefined') && (builder == "singlehtml") ) { . . . } Peter On Tuesday, July 31, 2012 11:08:54 AM UTC-7, pdbarnes wrote: > > Hello Folks, > > I need to distinguish the singlehtml and (multiple page) html, from within > javascript. Any ideas? > > (I need to rewrite the href's to other documentation, based on the user's > preference for single/multi page views) > > Thanks, > Peter > -- 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/-/EGzmdCaf980J. To post to this group, send email to sphinx-dev@googlegroups.com. To unsubscribe from this group, send email to sphinx-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sphinx-dev?hl=en.