Skip to content

Commit

Permalink
Create bathymetry.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
jonahadkins authored and jenningsanderson committed Jul 31, 2024
1 parent da58f76 commit 9227023
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions docs/schema/reference/base/bathymetry.mdx
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>

0 comments on commit 9227023

Please sign in to comment.