Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paths Index #407

Closed
merravid opened this issue May 24, 2020 · 8 comments
Closed

Paths Index #407

merravid opened this issue May 24, 2020 · 8 comments

Comments

@merravid
Copy link

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.

@RobWin
Copy link
Member

RobWin commented Jun 9, 2020

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

@RobWin
Copy link
Member

RobWin commented Jun 9, 2020

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

@merravid
Copy link
Author

merravid commented Jun 9, 2020

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

@RobWin
Copy link
Member

RobWin commented Jun 9, 2020

@merravid
Copy link
Author

merravid commented Jun 9, 2020

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
Copy link
Author

merravid commented Jun 9, 2020

This issue seems related

@tntclaus
Copy link
Contributor

tntclaus commented Jun 9, 2020

@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

@merravid
Copy link
Author

merravid commented Jun 9, 2020

@tntclaus That worked like a charm! Thanks!

@merravid merravid closed this as completed Jun 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants