many visual improvements
This commit is contained in:
parent
f1ae872857
commit
e8afab1fe5
2 changed files with 40 additions and 12 deletions
|
@ -319,10 +319,24 @@ table.citation td {
|
||||||
}
|
}
|
||||||
|
|
||||||
table.colwidths-auto caption {
|
table.colwidths-auto caption {
|
||||||
font-family: monospace;
|
font-family: 'Inconsolata', monospace;
|
||||||
font-size: large;
|
font-weight: 800;
|
||||||
padding: 2px;
|
font-size: 110%;
|
||||||
|
padding: 5px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
|
margin-bottom: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
ol, li {
|
||||||
|
margin: 0px 0px 0px 30px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
p.httpheaders {
|
||||||
|
font-weight: 800;
|
||||||
|
font-size: 120%;
|
||||||
|
padding: 5px;
|
||||||
|
text-align: left;
|
||||||
|
margin-bottom: 2px;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.colwidths-auto {
|
table.colwidths-auto {
|
||||||
|
@ -336,15 +350,13 @@ table.colwidths-auto tr td:nth-child(1) {
|
||||||
|
|
||||||
table.colwidths-auto tr td:nth-child(2) {
|
table.colwidths-auto tr td:nth-child(2) {
|
||||||
width: 15%;
|
width: 15%;
|
||||||
|
font-family: 'Inconsolata', monospace;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.colwidths-auto tr td:nth-child(3) {
|
table.colwidths-auto tr td:nth-child(3) {
|
||||||
width: 70%;
|
width: 70%;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.colwidths-auto tr:nth-child(even) {
|
|
||||||
background-color: #f4f4f4;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* -- other body styles ----------------------------------------------------- */
|
/* -- other body styles ----------------------------------------------------- */
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,10 @@
|
||||||
{{":Rate-limited: Yes." if endpoint.rate_limited else "" }}
|
{{":Rate-limited: Yes." if endpoint.rate_limited else "" }}
|
||||||
{{":Requires auth: Yes." if endpoint.requires_auth else "" }}
|
{{":Requires auth: Yes." if endpoint.requires_auth else "" }}
|
||||||
|
|
||||||
Request format:
|
.. class:: httpheaders
|
||||||
|
|
||||||
|
Request format:
|
||||||
|
|
||||||
{% if (endpoint.req_param_by_loc | length) %}
|
{% if (endpoint.req_param_by_loc | length) %}
|
||||||
{{ tables.split_paramtable(endpoint.req_param_by_loc) }}
|
{{ tables.split_paramtable(endpoint.req_param_by_loc) }}
|
||||||
{% if (endpoint.req_body_tables) %}
|
{% if (endpoint.req_body_tables) %}
|
||||||
|
@ -28,13 +31,19 @@ Request format:
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if endpoint.res_headers is not none -%}
|
{% if endpoint.res_headers is not none -%}
|
||||||
Response headers:
|
|
||||||
|
.. class:: httpheaders
|
||||||
|
|
||||||
|
Response headers:
|
||||||
|
|
||||||
{{ tables.paramtable(endpoint.res_headers.rows) }}
|
{{ tables.paramtable(endpoint.res_headers.rows) }}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
{% if endpoint.res_tables|length > 0 -%}
|
{% if endpoint.res_tables|length > 0 -%}
|
||||||
Response format:
|
|
||||||
|
.. class:: httpheaders
|
||||||
|
|
||||||
|
Response format:
|
||||||
|
|
||||||
{% for table in endpoint.res_tables -%}
|
{% for table in endpoint.res_tables -%}
|
||||||
|
|
||||||
|
@ -44,14 +53,19 @@ Response format:
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
Example request:
|
.. class:: httpheaders
|
||||||
|
|
||||||
|
Example request:
|
||||||
|
|
||||||
.. code:: http
|
.. code:: http
|
||||||
|
|
||||||
{{endpoint.example.req | indent_block(2)}}
|
{{endpoint.example.req | indent_block(2)}}
|
||||||
|
|
||||||
{% if endpoint.responses|length > 0 -%}
|
{% if endpoint.responses|length > 0 -%}
|
||||||
Response{{"s" if endpoint.responses|length > 1 else "" }}:
|
|
||||||
|
.. class:: httpheaders
|
||||||
|
|
||||||
|
Response{{"s" if endpoint.responses|length > 1 else "" }}:
|
||||||
|
|
||||||
{% endif -%}
|
{% endif -%}
|
||||||
|
|
||||||
|
@ -63,7 +77,9 @@ Response{{"s" if endpoint.responses|length > 1 else "" }}:
|
||||||
|
|
||||||
{% if res["example"] -%}
|
{% if res["example"] -%}
|
||||||
|
|
||||||
Example
|
.. class:: httpheaders
|
||||||
|
|
||||||
|
Example
|
||||||
|
|
||||||
.. code:: json
|
.. code:: json
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue