68ec070645
This creates a stub for landing content to support having the source for the api-ref site in our source tree. It includes a new sphinx extension that will be used to generate the html needed for the site which supports 2 new stanzas: .. rest_parameters:: This uses a parameters yaml file to look up the definitions of parameters and produce a structured table of those parameters and how they are used. .. rest_method:: This is a stanza used inside a section which specifies the REST method (i.e. GET /servers/{id}) which is then used to produce a nice collapsable section. This uses quite a bit of the sphinx extension API, and tries to document any non obvious actions. This extension needs additional styling from bootstrap, and some custom js / css to do the theming / collapsing. That's included as part of this. Change-Id: I41b568b782d3c85f6ef8d3bb3a6f4ae378e4dc33
53 lines
983 B
CSS
53 lines
983 B
CSS
tt.literal {
|
|
padding: 2px 4px;
|
|
font-size: 90%;
|
|
color: #c7254e;
|
|
white-space: nowrap;
|
|
background-color: #f9f2f4;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
pre {
|
|
display: block;
|
|
padding: 9.5px;
|
|
margin: 0 0 10px;
|
|
font-size: 13px;
|
|
line-height: 1.428571429;
|
|
color: #333;
|
|
word-break: break-all;
|
|
word-wrap: break-word;
|
|
background-color: #f5f5f5;
|
|
border: 1px solid #ccc;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
tbody>tr:nth-child(odd)>td,
|
|
tbody>tr:nth-child(odd)>th {
|
|
background-color: #f9f9f9;
|
|
}
|
|
|
|
table>thead>tr>th, table>tbody>tr>th, table>tfoot>tr>th, table>thead>tr>td, table>tbody>tr>td, table>tfoot>tr>td {
|
|
padding: 8px;
|
|
line-height: 1.428571429;
|
|
vertical-align: top;
|
|
border-top: 1px solid #ddd;
|
|
}
|
|
|
|
td>p {
|
|
margin: 0 0 0.5em;
|
|
}
|
|
|
|
div.document {
|
|
width: 80% !important;
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
div.document {
|
|
width: 960px !important;
|
|
}
|
|
}
|
|
|
|
.operation-grp {
|
|
padding-top: 0.5em;
|
|
padding-bottom: 1em;
|
|
} |