Has anybody used grav for documenting APIs? I’m on a project that wants to produce a manual which has a hybrid menu of normal menu items with an api section, as done with readme.io at http://docs.embed.ly/docs/embedly-api, as in the following screenshot:
The main thing is to be able to recreate the nice coloured representation of the GET/PUT/POST endpoints in the menu.
Within the API sections themselves, I would also want to be able to display example code in tabbed boxes that enable switching languages, as in the following screenshot:
Has anybody attempted something similar? Or would somebody suggest a recommended approach for tackling this? Could it be done with some minor adjustments to RTFM?
I have used RTFM in its basic state for some ‘traditional’ manuals.
How do I activate the tabbed code boxes?
Would you know how I might adjust the display of APIs in the menu so that they are different to normal page items?
The issue with the menu is that I would need to have conditionals to switch to whatever solution (icomoon, fontawesome or just css) I use for an API menu item.
I have a very, very ugly semi-solution in that I have changed the colour of the font in the frontmatter: