I am working on enabling navigation bar for the new documentation site. It will be available for the landing page as well as for all HTML guides. I figured out how to configure Asciidoctor to add HTML. Here is the prototype:
Now, because guides can get old and we would need to regenerate them on every release to have new menu items, I want to build the menu dynamically. Bit of JS will download a JSON file from our site that will hold all the menuitems and links and builds the menu.
It works on mobile platofms too nicely, it creates a hamburger menu when the screen is too narrow. I would appreciate overall review of the code, this was taken from a YouTube video (link is in the description):
Please share your snippet with the solution and I will integrate it into the site