Only include endpoint path in `<summary>` (#1446)

pull/1462/head
David Robertson 2 years ago committed by GitHub
parent a45138c3b4
commit f9ea0f9d9b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -288,17 +288,21 @@ footer {
/* Styles for sections that are rendered from data, such as HTTP APIs and event schemas */ /* Styles for sections that are rendered from data, such as HTTP APIs and event schemas */
.rendered-data { .rendered-data {
background-color: $secondary-lightest-background; background-color: $secondary-lightest-background;
padding: 1rem; padding: 0.85rem;
margin: 1rem 0; margin: 0.85rem 0;
details { details {
summary { summary {
padding: .5rem 0; h1 {
margin: 0;
/* Ensure the disclosure control is vertically centred with the header text. */
vertical-align: middle;
}
}
p { p {
max-width: 80%; max-width: 80%;
} }
} }
}
.deprecated-inline { .deprecated-inline {

@ -0,0 +1 @@
Endpoint disclosures now hide everything but the URL.

@ -33,6 +33,7 @@
<span class="http-api-method {{ $method }}">{{ $method }}</span> <span class="http-api-method {{ $method }}">{{ $method }}</span>
<span class="endpoint{{ if $operation_data.deprecated }} deprecated-inline{{ end }}">{{ $endpoint }}</span> <span class="endpoint{{ if $operation_data.deprecated }} deprecated-inline{{ end }}">{{ $endpoint }}</span>
</h1> </h1>
</summary>
<hr/> <hr/>
@ -49,7 +50,6 @@
<p>{{ $operation_data.description | markdownify }}</p> <p>{{ $operation_data.description | markdownify }}</p>
</summary>
<table class="basic-info"> <table class="basic-info">
<tr> <tr>

Loading…
Cancel
Save