Developer Portal adding a Table of Contents (TOC)

Not applicable

I am trying to add a table of contents to our developer portal. We currently have a page with a list of end points in the following format

Heading

Section title

End Point

End Point

End Point

At the top of the page i want the TOC to have a list of section titles which the user can click on and it will jump to the relevant section on the page.

The swagger file is generated from .NET core using a nuget package called swashbuckle

thanks.

0 1 112
1 REPLY 1

robinm
New Member

Hey @damianmartin

Are you still working on this ?
I assume you are using the 'lightweight portal' (streetcarts template).

I had a similar requirement which I could not meet using the provided 'API' section where the swagger snapshot is read in .. the one-page format is auto-generated without fancy navigation artifacts such as TOC.

I resorted to creating a separate page, in which I manually reformatted the output and divided it into sections I could display via a (again manual) navigation sidebar. I could provide this as a template if interested ... I am not aware of an automated method of doing this at this time.