Using tabs in AsciiDoc (Spring Rest Docs)

匆匆过客 提交于 2019-12-23 10:54:30

问题


I'm using Spring Rest Docs to generate documentation. I would like to do something like Bootstrap's Togglable tabs.

Spring documentation uses togglable tabs, but I don't know how to do it. Here is an example (MockMvc / REST Assured): http://docs.spring.io/spring-restdocs/docs/1.1.0.RELEASE/reference/html5/#documenting-your-api Thanks for helping.


回答1:


There's no built-in support for tabs in Asciidoctor but it's very extensible which allows you to add this sort of thing quite easily.

The tabs in the Spring REST Docs documentation are implemented as a small extension using Groovy, CSS, and Javascript. If you want to take a look at the code, it was added in this commit.

Since that commit was made, the extension's been moved into a separate project. Releases of that project are available from https://repo.spring.io/release. A few details on how to use the extension are available in the README.



来源:https://stackoverflow.com/questions/38211766/using-tabs-in-asciidoc-spring-rest-docs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!