Closed gentlewind closed 8 years ago
Currently, the stylesheet is inlined to make it easier to handle the description as a single file. Two possible options:
I'm inclined to do #1 but not #2. I prefer a single page self-contained document.
+1 for single page self-contained documentation.
A parameter 'cssURL' will be added to Gradle/Maven/API interface of the radl2docs
. It can either be a local file or a remote URL. The doc generator will inline the stylesheet into the html, so it's still a single page.
The other change that is to be brought to html is the code hightlight for XML/JSON examples. I am planning to use https://github.com/google/code-prettify as the default. It is not perfect but allows extensions.
I've seen that a complex html doc ususally has more than one css and/or js files, referencing by href links. So there may be further requirement to add multiple css as links.
Different organizations require different HTML layouts for the REST API documentation. The RADL tool should allow developers to choose from out-of-the-box css stylesheets, or specify a custom one during the task execution of
radl2html
.