Swagger2Markup / swagger2markup

A Swagger to AsciiDoc or Markdown converter to simplify the generation of an up-to-date RESTful API documentation by combining documentation that’s been hand-written with auto-generated API documentation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Paths Index

merravid opened this issue · comments

Using the cli tool, is it possible to generate a paths index before the individually detailed paths? This would be useful for users of the API to get a quick overview, especially for large and complex APIs.

If this functionality is not alredy available, I can have a go at implementing it.

What do you mean by path index? A ToC which shows the paths?

You can group paths by tags and then use swagger2markup.pathsGroupedBy = TAGS

Yes, a ToC of all the paths. Does .pathsGroupedBy achieve this?

Yes I convert to AsciiDoc, then open the AsciiDoc in AsciiDocFX and convert to HTML.

I don't get the left TOC panel. I only get the main content. What am I missing?

@merravid to get table of contents u need to add :toc: argument to the document header. Then asciidoctor (or other software that supports :toc: argument) will generate it for you.

See https://asciidoctor.org/docs/asciidoc-syntax-quick-reference/#table-of-contents-toc

@tntclaus That worked like a charm! Thanks!