From a76d69513c03baf5675d3ae8826315fcafa07ccc Mon Sep 17 00:00:00 2001 From: weiyang Date: Wed, 12 Oct 2016 17:14:36 +0800 Subject: [PATCH] [html]Group api index by operations.baseName (#3953) * [html]Group api index by operations.baseName Signed-off-by: weiyang * [html][samples]Group api index by operations.baseName Signed-off-by: weiyang --- .../main/resources/htmlDocs/index.mustache | 10 +++++---- .../resources/htmlDocs/style.css.mustache | 5 ++--- samples/html/index.html | 22 ++++++++++++++----- 3 files changed, 24 insertions(+), 13 deletions(-) diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs/index.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs/index.mustache index 3c49831c8e8..466df75c41f 100644 --- a/modules/swagger-codegen/src/main/resources/htmlDocs/index.mustache +++ b/modules/swagger-codegen/src/main/resources/htmlDocs/index.mustache @@ -28,23 +28,25 @@ [ Jump to Models ] {{! for the tables of content, I cheat and don't use CSS styles.... }} -

Table of Contents

+

Table of Contents

{{access}}
{{#apiInfo}} -
    {{#apis}} {{#operations}} +

    {{baseName}}

    + {{/operations}} {{/apis}} -
{{/apiInfo}} {{#apiInfo}} {{#apis}} {{#operations}} +

{{baseName}}

{{#operation}}
@@ -150,7 +152,7 @@

Models

[ Jump to Methods ] -

Table of Contents

+

Table of Contents

    {{#models}} {{#model}} diff --git a/modules/swagger-codegen/src/main/resources/htmlDocs/style.css.mustache b/modules/swagger-codegen/src/main/resources/htmlDocs/style.css.mustache index 8d9a5755d7b..04eccf69491 100644 --- a/modules/swagger-codegen/src/main/resources/htmlDocs/style.css.mustache +++ b/modules/swagger-codegen/src/main/resources/htmlDocs/style.css.mustache @@ -1,4 +1,4 @@ -body { +body { font-family: Trebuchet MS, sans-serif; font-size: 15px; color: #444; @@ -20,7 +20,6 @@ hr { border: 0; color: #ddd; background-color: #ddd; - display: none; } .app-desc { @@ -170,4 +169,4 @@ font-style: italic; color: #FFF; display: inline-block; text-decoration: none; -} \ No newline at end of file +} diff --git a/samples/html/index.html b/samples/html/index.html index 18b6a2fa44c..d83d25c03a5 100644 --- a/samples/html/index.html +++ b/samples/html/index.html @@ -3,7 +3,7 @@ Swagger Petstore @@ -196,9 +196,10 @@ font-style: italic;

    Methods

    [ Jump to Models ] -

    Table of Contents

    +

    Table of Contents

    -
      +

      Pet

      + +

      Store

      + +

      User

      +
    + +

    Pet

    Up @@ -683,6 +691,7 @@ font-style: italic; ApiResponse

    +

    Store

    Up @@ -896,6 +905,7 @@ font-style: italic;

    +

    User

    Up @@ -1254,7 +1264,7 @@ font-style: italic;

    Models

    [ Jump to Methods ] -

    Table of Contents

    +

    Table of Contents

    1. ApiResponse
    2. Category