Fix sidebar not appearing on SPA navigation to reference pages
The SPA navigateTo() only swapped .odoc-content, but the sidebar <nav>
element is only server-rendered on reference/ pages. When navigating
from home/blog to reference/, the sidebar container didn't exist in the
DOM so initSidebar() had nothing to populate.
Now navigateTo() creates the sidebar element and fetches sidebar.json
when entering reference/, and removes it when leaving.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>