parent
7b5c9d9fa6
commit
41fa667878
@ -0,0 +1,54 @@
|
||||
.sipwclass { padding: 1em }
|
||||
.content .sipwclass { margin-left: 2em }
|
||||
h1 { color: white; background-color: #54893B; padding: 1.7em; }
|
||||
.sipwclass h6 { font-size: 1.1em; }
|
||||
.sipwclass code { white-space: pre-wrap; background-color: transparent; border: none; color: #000; font-size: 0.9em; display: block; margin: 0 0 20px 0;}
|
||||
.sipwclass table { width: 100%; border-collapse: collapse; }
|
||||
.sipwclass th, .sipwclass td { border: 1px solid #aaa; width: 50%; padding: 20px; }
|
||||
.sipwclass td { vertical-align: top; }
|
||||
.sipwclass span { font-family: monospace; }
|
||||
|
||||
.sipwclass a { color: #54893B; border-bottom: 1px dotted #54893B; }
|
||||
.sipwclass a:hover { color: #54893B; text-decoration: underline; border: none; }
|
||||
.sipwclass .ui-state-active { border: 1px solid #54893B; color: #54893B; }
|
||||
.sipwclass .ui-state-default { color: #54893B; }
|
||||
.sipwclass .ui-widget { font-family: inherit; }
|
||||
.sipwclass .ui-widget-content { background: none; }
|
||||
|
||||
/* toc numbering */
|
||||
.sipwclass nav ol { counter-reset: item }
|
||||
.sipwclass nav li { display: block }
|
||||
.sipwclass nav li:before { content: counters(item, ".") " "; counter-increment: item }
|
||||
|
||||
/* header numbering */
|
||||
.sipwclass body { counter-reset: h2counter; counter-reset: h3counter; }
|
||||
h1 { counter-reset: h2counter; }
|
||||
.sipwclass h2:before { content: counter(h2counter) "\0000a0\0000a0"; counter-increment: h2counter; counter-reset: h3counter; }
|
||||
.sipwclass h2.nocount:before { content: none; counter-increment: none; }
|
||||
.sipwclass h2 { counter-reset: h3counter; }
|
||||
.sipwclass h3:before { counter-increment: h3counter; content: counter(h2counter) "." counter(h3counter) "\0000a0\0000a0"; }
|
||||
/*.sipwclass h3:before { content: counter(h2counter) "." counter(h3counter) "\0000a0\0000a0"; counter-increment: h3counter; }*/
|
||||
|
||||
/* print properties */
|
||||
@media print { .ui-accordion > *{display:block !important;} }
|
||||
.pagebreak { page-break-after: always; }
|
||||
.sipwclass.chapter { page-break-inside: avoid; }
|
||||
|
||||
.sipwclass {
|
||||
font-family: 'Open Sans', sans-serif;
|
||||
}
|
||||
|
||||
/* use same width as swagger doc for intro chapters */
|
||||
body {
|
||||
width: 100%;
|
||||
max-width: 1460px;
|
||||
margin: 8px auto;
|
||||
}
|
||||
|
||||
/* own additions: remove servers view and swagger file URI */
|
||||
.swagger-ui .global-server-container {
|
||||
display: none;
|
||||
}
|
||||
.swagger-ui .info a {
|
||||
display: none;
|
||||
}
|
||||
|
After Width: | Height: | Size: 4.4 KiB |
@ -0,0 +1,58 @@
|
||||
<!DOCTYPE html>
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
<title>Sipwise NGCP HTTP API documentation (with SwaggerUI)</title>
|
||||
<!-- link rel="stylesheet" href="/static/css/bootstrap/bootstrap.css"></link -->
|
||||
<!-- link rel="stylesheet" href="/static/css/bootstrap/bootstrap-responsive.css"></link -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
|
||||
<link rel="stylesheet" href="/static/css/sipwise-apidoc.css">
|
||||
<link rel="stylesheet" type="text/css" href="/static/js/swaggerui/swagger-ui.css" >
|
||||
<!-- link rel="stylesheet" type="text/css" href="/static/js/swaggerui/swagger-own.css" -->
|
||||
</head>
|
||||
<body>
|
||||
[%
|
||||
chapters = [
|
||||
{ level = 2, id = 'intro', title = 'Introduction', },
|
||||
{ level = 2, id = 'auth', title = 'Authentication', },
|
||||
{ level = 2, id = 'chswaggerui', title = 'API', noswclass = 1, },
|
||||
];
|
||||
-%]
|
||||
|
||||
<h1>Sipwise NGCP HTTP API Documentation (with SwaggerUI)</h1>
|
||||
<div class="content">
|
||||
<div class="chapter sipwclass">
|
||||
<h2 class="nocount">Table of Contents</h2>
|
||||
<nav>
|
||||
<ol>
|
||||
[% FOR chapter IN chapters %]
|
||||
[% IF loop.prev && loop.prev.level > chapter.level -%]
|
||||
</ol></li>
|
||||
[% END -%]
|
||||
<li><a href="#[% chapter.id %]">[% chapter.title %]</a>
|
||||
[% IF loop.next && loop.next.level > chapter.level -%]
|
||||
<ol>
|
||||
[% ELSE -%]
|
||||
</li>
|
||||
[% END -%]
|
||||
[% END -%]
|
||||
</ol>
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
[% FOR chapter IN chapters -%]
|
||||
[% IF loop.prev && loop.prev.level >= chapter.level -%]
|
||||
<div class="pagebreak"></div>
|
||||
[% END -%]
|
||||
<div class="chapter[% UNLESS chapter.noswclass; ' sipwclass'; END; %]">
|
||||
[%
|
||||
t = 'api/root/' _ chapter.id _ '.tt';
|
||||
INCLUDE $t level=chapter.level title=chapter.title id=chapter.id uri=chapter.uri;
|
||||
-%]
|
||||
</div>
|
||||
[% END -%]
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
[% # vim: set tabstop=4 syntax=html expandtab: -%]
|
||||
Loading…
Reference in new issue