docs
docs copied to clipboard
Love the new site; really miss the old API sidebar
Hey guys, so sorry if this is the wrong place, but I suspect there might be a few others with the same thoughts. I absolutely love the new look to the site – and congrats on the 2.0 launch!! – but I really miss the scrolling sidebar from the old API documentation. It was so attractive and useful that I would literally bring people to the site just to show off the well thought-out scrolling behavior.
While this new design clearly has awesome new features, particularly in that seamless transition between individual mobile pages and the single scrollable main page (I will probably be bringing people here to show them that now...) I really miss that old sidebar on large screens.
Is there any chance we could get that back?
You guys rock!
Hi @mike-marcacci, thank you for the great feedback. Which aspects of the old sidebar did you like specifically?
(pinging @mglukhovsky )
Hi @danielmewes! When you're on a section like http://rethinkdb.com/api/javascript/#limit, you've moved past the sidebar, and have to use the "Back to top" link or scroll up to see the other commands.
In the previous version, the sidebar would never scroll past the bottom, which was extremely useful: you could click on a command without completely losing your place in the list.
Fore a really dirty hack of what I'm talking about, head over to the API page and paste the following into your dev tools console:
$('body').append('<style> body.scrollHack .api-nav {position: fixed; top: 0; bottom: 0; overflow-y: auto; width: 240px; } .back-to-top { visibility: hidden; } ) </style>');
$(document, window).on('scroll', function(e){
if($(e.target).scrollTop() > 140) $('body').addClass('scrollHack')
else $('body').removeClass('scrollHack')
});
I see, I agree with you that the old behavior was better. I think the behavior with your hack is really good (as long as you don't move into the footer).
I'll leave it to the experts (@mglukhovsky) to decide if and how this can be implemented for the new site.
(eu) ()