-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da58f76
commit 9227023
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
title: bathymetry | ||
--- | ||
|
||
import CodeBlock from '@theme/CodeBlock'; | ||
import JSONSchemaViewer from "@theme/JSONSchemaViewer"; | ||
import generateResolverOptions from "@site/src/components/shared-libs/generateResolverOptions" | ||
import yamlLoad from "@site/src/components/yamlLoad" | ||
import BathymetrySchema from "!!raw-loader!@site/docs/_schema/base/bathymetry.yaml"; | ||
|
||
import BathymetryExample from "!!raw-loader!@site/docs/_examples/base/bathymetry-example.yaml"; | ||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
# Bathymetry | ||
|
||
<table> | ||
<tbody> | ||
<tr> | ||
<th>Geometry Type</th> | ||
<td> | ||
<code>Polygon</code> | ||
</td> | ||
</tr> | ||
<tr> | ||
<th>Theme</th> | ||
<td><code>base</code></td> | ||
</tr> | ||
<tr> | ||
<th>Type</th> | ||
<td><code>bathymetry</code></td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
|
||
## Schema | ||
|
||
<Tabs> | ||
<TabItem value="browsable" label="Browsable" default> | ||
<JSONSchemaViewer schema={ yamlLoad(BathymetrySchema) } resolverOptions={ generateResolverOptions({remote: true, yamlBasePath: '/base'})}/> | ||
</TabItem> | ||
<TabItem value="yaml" label="YAML" default> | ||
<CodeBlock language="jsx">{BathymetrySchema}</CodeBlock> | ||
</TabItem> | ||
</Tabs> | ||
|
||
## Examples | ||
|
||
<Tabs> | ||
<TabItem value="1" label="bathymetry" default> | ||
<CodeBlock language="json">{ JSON.stringify(yamlLoad(BathymetryExample), null, 2) }</CodeBlock> | ||
</TabItem> | ||
|
||
</Tabs> |