doc: Disable sidebar on extra-small screens.

Especially when all it contains is a source link, it's not super
helpful. When it's also a ToC, then it just seems to get in the way on
mobile devices.
doc: Fix doctest failures.