> On Dec 27, 2016, at 2:23 PM, Philip McGrath <phi...@philipmcgrath.com> wrote:
> However, when I just tried to simulate a smartphone viewport with the Chrome > developer tools, I got the "non-mobile friendly" behavior Michael described. > (I don't have my phone on me right now, so I haven't checked that.) I believe the fix is to add this declaration to the top of each Scribble-generated HTML page: <meta name="viewport" content="width=device-width, initial-scale=1.0"> If someone knows offhand where the main Scribble HTML template lives in `racket/scribble`, that would save me some time discovering it. > While we're on the subject of the narrow-width Scribble CSS, I've > occasionally had the thought that it would be nice to have a way to view the > table of contents, perhaps as a drop-down sort of thing, from the > sidebar-less view. True, but IIRC the problem is that the TOC is often longer than one vertical screen — and sometimes longer than the content area on the right — so it's hard to put it into a drop-down and keep it ergonomic. Better ideas welcome. > I was wondering if there is a built in way to create mobile friendly HTML in > Scribble? Given Google's current mobile friendly policy > (https://webmasters.googleblog.com/2015/04/rolling-out-mobile-friendly-update.html) > and the fact that devices with small screens are everywhere now, this seems > like something which would not only make the Racket's documentation look > better on mobile devices, but for any other HTML generated in Scribble. Google's policy is coercive and awful. But even if it weren't, the practical problem is that code samples don't shrink well because they can't be line-wrapped. [1] [1] https://github.com/racket/scribble/pull/62 <https://github.com/racket/scribble/pull/62> -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.