title: customize swagger-ui by adding a simple sidebar in the html
body: <p>So I'm trying to make a navigation panel sidebar on the swagger-ui front page. I'm using the <a href="http://startbootstrap.com/template-overviews/simple-sidebar/" rel="noreferrer">http://startbootstrap.com/template-overviews/simple-sidebar/</a> simple sidebar. I tried putting that code ( + the css file) in the dist folder of swagger-ui and then, in my dist/index.html,  I tried to add it but it's not displaying properly. I think this is because swagger content is being generated from different templates. I just want my sidebar to be there on the main page.</p>
  
  <p><a href="https://github.com/swagger-api/swagger-ui" rel="noreferrer">https://github.com/swagger-api/swagger-ui</a></p>
  
  <p><a href="https://i.stack.imgur.com/DqEPY.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DqEPY.png" alt="enter image description here"></a></p>
  
  <p>dist/index.html:
  <br>  </p>
  
  <pre><code> &lt;!DOCTYPE html&gt;
      &lt;html&gt;
      &lt;head&gt;
        &lt;meta charset="UTF-8"&gt;
        &lt;title&gt;Swagger UI&lt;/title&gt;
        &lt;link rel="icon" type="image/png" href="images/favicon-32x32.png" sizes="32x32" /&gt;
        &lt;link rel="icon" type="image/png" href="images/favicon-16x16.png" sizes="16x16" /&gt;
        &lt;link href='css/typography.css' media='screen' rel='stylesheet' type='text/css'/&gt;
        &lt;link href='css/reset.css' media='screen' rel='stylesheet' type='text/css'/&gt;
        &lt;link href='css/screen.css' media='screen' rel='stylesheet' type='text/css'/&gt;
        &lt;link href='css/reset.css' media='print' rel='stylesheet' type='text/css'/&gt;
        &lt;link href='css/print.css' media='print' rel='stylesheet' type='text/css'/&gt;
        &lt;link href='css/bootstrap.min.css' media='print' rel='stylesheet' type='text/css'/&gt;
        &lt;link href="css/simple-sidebar.css" media='print' rel='stylesheet' type='text/css'/&gt;
  
        &lt;script src='lib/object-assign-pollyfill.js' type='text/javascript'&gt;&lt;/script&gt;
        &lt;script src='lib/jquery-1.8.0.min.js' type='text/javascript'&gt;&lt;/script&gt;
        &lt;script src='lib/jquery.slideto.min.js' type='text/javascript'&gt;&lt;/script&gt;
        &lt;script src='lib/jquery.wiggle.min.js' type='text/javascript'&gt;&lt;/script&gt;
        &lt;script src='lib/jquery.ba-bbq.min.js' type='text/javascript'&gt;&lt;/script&gt;
        &lt;script src='lib/handlebars-2.0.0.js' type='text/javascript'&gt;&lt;/script&gt;
        &lt;script src='lib/js-yaml.min.js' type='text/javascript'&gt;&lt;/script&gt;
        &lt;script src='lib/lodash.min.js' type='text/javascript'&gt;&lt;/script&gt;
        &lt;script src='lib/backbone-min.js' type='text/javascript'&gt;&lt;/script&gt;
        &lt;script src='swagger-ui.js' type='text/javascript'&gt;&lt;/script&gt;
        &lt;script src='lib/highlight.9.1.0.pack.js' type='text/javascript'&gt;&lt;/script&gt;
        &lt;script src='lib/highlight.9.1.0.pack_extended.js' type='text/javascript'&gt;&lt;/script&gt;
        &lt;script src='lib/jsoneditor.min.js' type='text/javascript'&gt;&lt;/script&gt;
        &lt;script src='lib/marked.js' type='text/javascript'&gt;&lt;/script&gt;
        &lt;script src='lib/swagger-oauth.js' type='text/javascript'&gt;&lt;/script&gt;
  
        &lt;!-- Some basic translations --&gt;
        &lt;!-- &lt;script src='lang/translator.js' type='text/javascript'&gt;&lt;/script&gt; --&gt;
        &lt;!-- &lt;script src='lang/ru.js' type='text/javascript'&gt;&lt;/script&gt; --&gt;
        &lt;!-- &lt;script src='lang/en.js' type='text/javascript'&gt;&lt;/script&gt; --&gt;
  
        &lt;script type="text/javascript"&gt;
          $(function () {
            var url="http://localhost:8081/instagram.yml";
  
  
            var url = window.location.search.match(/url=([^&amp;]+)/);
            if (url &amp;&amp; url.length &gt; 1) {
              url = decodeURIComponent(url[1]);
            } else {
              url = "http://localhost:8081/instagram.yml";
            }
  
            hljs.configure({
              highlightSizeThreshold: 5000
            });
  
            // Pre load translate...
            if(window.SwaggerTranslator) {
              window.SwaggerTranslator.translate();
            }
  
            window.swaggerUi = new SwaggerUi({
  
              url: url,
              dom_id: "swagger-ui-container",
              supportedSubmitMethods: ['get', 'post', 'put', 'delete', 'patch'],
              onComplete: function(swaggerApi, swaggerUi){
                if(typeof initOAuth == "function") {
                  initOAuth({
                    clientId: "your-client-id",
                    clientSecret: "your-client-secret-if-required",
                    realm: "your-realms",
                    appName: "your-app-name",
                    scopeSeparator: ",",
                    additionalQueryStringParams: {}
                  });
                }
  
                if(window.SwaggerTranslator) {
                  window.SwaggerTranslator.translate();
                }
              },
              onFailure: function(data) {
                log("Unable to Load SwaggerUI");
              },
              docExpansion: "none",
              jsonEditor: false,
              defaultModelRendering: 'schema',
              showRequestHeaders: false
            });
  
            window.swaggerUi.load();     
  
            function log() {
              if ('console' in window) {
                console.log.apply(console, arguments);
              }
            }
          });
  
  
        &lt;/script&gt;
  
      &lt;/head&gt;
  
      &lt;body class="swagger-section"&gt;
      &lt;div id='header'&gt;
        &lt;div class="swagger-ui-wrap"&gt;
          &lt;a id="logo" href="http://swagger.io"&gt;swagger&lt;/a&gt;
          &lt;form id='api_selector'&gt;
            &lt;div class='input'&gt;&lt;input placeholder="http://example.com/api" id="input_baseUrl" name="baseUrl" type="text"/&gt;&lt;/div&gt;
            &lt;div class='input'&gt;&lt;input placeholder="api_key" id="input_apiKey" name="apiKey" type="text"/&gt;&lt;/div&gt;
            &lt;div class='input'&gt;&lt;a id="explore" href="#"&gt;Explore&lt;/a&gt;&lt;/div&gt;
          &lt;/form&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;div id="sidebar-wrapper"&gt;
         &lt;ul class="sidebar-nav"&gt;
           &lt;li class="sidebar-brand"&gt;
             &lt;a href="#"&gt;Start Bootstrap&lt;/a&gt;
           &lt;/li&gt;
           &lt;li&gt;
             &lt;a href="#"&gt;Dashboard&lt;/a&gt;
           &lt;/li&gt;
           &lt;li&gt;
             &lt;a href="#"&gt;Shortcuts&lt;/a&gt;
           &lt;/li&gt;
           &lt;li&gt;
             &lt;a href="#"&gt;Overview&lt;/a&gt;
           &lt;/li&gt;
           &lt;li&gt;
             &lt;a href="#"&gt;Events&lt;/a&gt;
           &lt;/li&gt;
           &lt;li&gt;
             &lt;a href="#"&gt;About&lt;/a&gt;
           &lt;/li&gt;
           &lt;li&gt;
             &lt;a href="#"&gt;Services&lt;/a&gt;
           &lt;/li&gt;
           &lt;li&gt;
             &lt;a href="#"&gt;Contact&lt;/a&gt;
           &lt;/li&gt;
         &lt;/ul&gt;
       &lt;/div&gt;
  
      &lt;div id="message-bar" class="swagger-ui-wrap"&gt;&amp;nbsp;&lt;/div&gt;
  
      &lt;div id="swagger-ui-container" class="swagger-ui-wrap"&gt;&lt;/div&gt;
  
      &lt;/body&gt;
      &lt;/html&gt;
  </code></pre>