On mobile, when I hit the docs link, the actual content falls below the fold. The search bar and ToC take up the whole screen. Recommend you collapse the ToC to a menu button and shrink the search bar.
The initial button example might be a good one to build on. You could show how to persist the counter value in SQLite.