mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-09-11 10:46:25 +03:00
docs: fix metadata api table styles
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/9832 GitOrigin-RevId: d9d01bcb7bc694b59d69536c55efbdf070c7adfd
This commit is contained in:
parent
4eeb0860d9
commit
f6bff0bc28
@ -65,6 +65,8 @@ The structure of args depends on the type and version.
|
||||
|
||||
The various types of queries are listed in the following table:
|
||||
|
||||
<div className="api-metadata-request-type-table">
|
||||
|
||||
| `type` | `args` | `version` | Synopsis |
|
||||
| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| **bulk** | [Query](#metadata-query) array | 1 | Execute multiple operations in a single query |
|
||||
@ -218,6 +220,8 @@ The various types of queries are listed in the following table:
|
||||
| [add_host_to_tls_allowlist](/api-reference/metadata-api/network.mdx#metadata-add-host-to-tls-allowlist) | [add_host_to_tls_allowlist_args](/api-reference/metadata-api/network.mdx#add-host-to-tls-allowlist-syntax) | 1 | Add an endpoint to the TLS Allowlist |
|
||||
| [drop_host_from_tls_allowlist](/api-reference/metadata-api/network.mdx#metadata-drop-host-from-tls-allowlist) | [drop_host_from_tls_allowlist_args](/api-reference/metadata-api/network.mdx#drop-host-from-tls-allowlist-syntax) | 1 | Drop an endpoint from the TLS Allowlist |
|
||||
|
||||
</div>
|
||||
|
||||
<!--
|
||||
|
||||
TODO: MSSQL_UNSUPPORTED
|
||||
|
@ -14,6 +14,7 @@ const CustomDocItem = props => {
|
||||
// variables are incredibly long and the word breaks are not happening
|
||||
// in a user-friendly way.
|
||||
const tables = document.querySelectorAll('table');
|
||||
// code blocks inside of tables
|
||||
tables.forEach(table => {
|
||||
const cells = table.querySelectorAll('td');
|
||||
cells.forEach(cell => {
|
||||
@ -25,6 +26,14 @@ const CustomDocItem = props => {
|
||||
});
|
||||
});
|
||||
});
|
||||
// not code blocks, like the metadata-api request type page
|
||||
const metadataApiTable = document.querySelector('.api-metadata-request-type-table');
|
||||
if (metadataApiTable) {
|
||||
const cells = metadataApiTable.querySelectorAll('td');
|
||||
cells.forEach(cell => {
|
||||
cell.innerHTML = cell.innerHTML.replace(/_/g, '_<wbr>');
|
||||
});
|
||||
}
|
||||
}, []);
|
||||
|
||||
// redirect them to the index if they attempt to directly navigate to a path with
|
||||
|
@ -27,7 +27,6 @@
|
||||
}
|
||||
|
||||
.feature-matrix-tables {
|
||||
//width: 100%;
|
||||
table {
|
||||
display: table !important;
|
||||
width: 70%;
|
||||
@ -41,4 +40,16 @@
|
||||
width: 30%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.api-metadata-request-type-table {
|
||||
table {
|
||||
td:first-child {
|
||||
max-width: 15em;
|
||||
}
|
||||
|
||||
td:nth-child(2) {
|
||||
max-width: 10em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user