Commit Graph

35 Commits

Author SHA1 Message Date
David Biesack 5f27fcab18 Add support for Markdown in -l html (#5144)
* Sync with upstream/master

* Support Markdown in -l html

Add https://github.com/atlassian/commonmark-java to modules/swagger-codegen to convert Markdown to HTML,
update StaticHtmlGenerator to use this (see the toHeml() method and its uses)

Add a new test case bin/html-markdown.sh and
modules/swagger-codegen/src/test/resources/2_0/markdown.yaml

* Support Markdown in -l html

Add https://github.com/atlassian/commonmark-java to modules/swagger-codegen to convert Markdown to HTML,
update StaticHtmlGenerator to use this (see the toHeml() method and its uses)

Add a new test case bin/html-markdown.sh and
modules/swagger-codegen/src/test/resources/2_0/markdown.yaml
2017-03-23 15:15:01 +08:00
David Biesack ec3b338988 Improve HTML output for model titles, default responses (#4991)
Render "default" instead of 0 for response code when Swagger uses "default" (#4982)
Add title for models to TOC and each model's section
Render model description only conditionally.
Remove extraneous Up link

Regenerate samples/html/index.html
2017-03-10 21:47:20 +08:00
David Biesack d1766e3fdf Fix Issue #4611 by using {{unescapedDescription}} (#4641)
* Use {{unescapedDescription}} in html, html2

This addresses https://github.com/swagger-api/swagger-codegen/issues/4611
Replace {{description}} with {{unescapedDescription}}

This is an improvement but because of issue #1203 and/or #3436 (fix not
yet impleented), Markdown is not being processed and converted to HTML.

* Add generated petstore samples index.html

* Copy unescapedDescription
2017-02-03 17:46:11 +08:00
weiyang beeb02a2dc [html] Add type anchor to body param block (#4368)
* [html] Add type anchor to 'bodyParam' block

Signed-off-by: weiyang <weiyang.ones@gmail.com>

* [html][samples] Add type anchor to 'bodyParam' block

Signed-off-by: weiyang <weiyang.ones@gmail.com>
2016-12-13 15:52:22 +08:00
wing328 63c3133e88 Remove Apache license from document generator (#4199)
* remove php apache license

* remove license from doc generator
2016-11-16 23:45:55 +08:00
Denis Bazhenov 7e7ca01aa4 Newline escaping disabled for HTML and HTML2 generators (#4099)
* Newline escaping disabled

Newline escaping disabled for HTML and HTML2 generators. Escaping
failing Markdown processors to work correctly on descriptions

* HTML examples updated
2016-11-01 16:21:30 +08:00
wing328 4b0d58abfd fix hasHeaderParams tag 2016-10-13 18:15:04 +08:00
weiyang a76d69513c [html]Group api index by operations.baseName (#3953)
* [html]Group api index by operations.baseName

Signed-off-by: weiyang <weiyang.ones@gmail.com>

* [html][samples]Group api index by operations.baseName

Signed-off-by: weiyang <weiyang.ones@gmail.com>
2016-10-12 17:14:36 +08:00
wing328 a7ed1ad202 fix warning in html generator 2016-09-29 11:09:54 +08:00
David Biesack fedb0cc352 add title, description to HTML output (#3860)
* add schema title, description to HTML output

* Include title, description in petstore sample (and HTML output)
2016-09-24 11:14:36 +08:00
Paŭlo Ebermann 72e051ab47 Feature/remove unused variables in html codegens (#3739)
* Remove unused variables/constants in StaticHtml[2]Generator.

It looks like those were remainders from copy+paste.

* run html-petstore.sh
2016-09-12 11:00:02 +08:00
wing328 7d0c963469 update sample for html, flash 2016-04-16 17:51:12 +08:00
wing328 1dc895e123 minor fix to html doc 2016-04-11 20:43:06 +08:00
wing328 c8ce84f650 replace tab with space, update samples 2015-11-03 21:34:44 +08:00
fehguy 3d2f09a693 updated versions 2015-06-09 00:25:09 -07:00
Tony Tam 64ea3f8177 rebuilt 2015-06-07 20:50:35 -07:00
Ron 1c2d0656b0 Code reformatting 2015-06-07 11:56:08 -04:00
Ron 22d7db2cb4 url changes 2015-06-07 11:46:11 -04:00
Tony Tam 6c57810128 rebuilt 2015-06-07 00:08:01 -07:00
Tony Tam 8c340d52a4 updated packages 2015-06-06 23:58:36 -07:00
Tony Tam 0c1657d744 updated package 2015-06-06 23:43:34 -07:00
Tony Tam 087c28dae4 rebuilt client 2015-05-23 09:04:46 -07:00
Tony Tam 99a11636da rebuilt 2015-05-20 22:51:30 -07:00
Tony Tam 11dd7784f8 rebuilt 2015-05-20 22:20:51 -07:00
Josh Ponelat 30496ffdc3 html: remove dead css line 2015-05-15 09:22:40 +02:00
Tony Tam 0b2eced6a3 rebuilt 2015-05-12 06:05:00 -04:00
wing328 8512259d02 update method name based on style guide, update petstore sample 2015-04-17 00:26:06 +08:00
Tony Tam a0c9296ee8 name rebuilds, tests 2015-04-04 20:04:10 -07:00
Tony Tam 950bfff1c1 fixed serialization of arrays 2015-04-04 17:20:18 -07:00
Tony Tam ba2ccf788c name rebuilds, tests 2015-04-04 17:00:22 -07:00
Tony Tam 6ac497d774 rebuilt 2015-03-31 16:12:42 -07:00
Tony Tam a4ce6d7074 updated scripts 2015-03-29 20:55:26 -07:00
Tony Tam 0195749f3b merged 2015-02-16 22:08:52 -08:00
Tony Tam 97fca910a1 removed cruft 2015-02-16 22:06:10 -08:00
Tony Tam 577aad3364 added file 2015-02-16 22:02:27 -08:00