Type Table

API reference tables for type definitions

Last updated March 17, 2026

Type Table

Display structured API reference tables for types, interfaces, or configuration options.

Usage

Use the type-table code fence. Start with # TypeName, then list properties as name | type | default | description.

```type-table
# PetitConfig
title | string | required | Site title
defaultScheme | "dark" \| "light" \| "system" | "system" | Default color scheme
toc | boolean | true | Show table of contents
maxWidth | "sm" \| "md" \| "lg" \| "xl" | "lg" | Content max width
```

Example

PetitConfig
PropertyTypeDefaultDescription
titlestringrequiredSite title
defaultScheme"dark" \| "light" \| "system""system"Default color scheme
schemeSwitcherbooleantrueShow scheme toggle
tocbooleantrueShow table of contents
maxWidth"sm" \| "md" \| "lg" \| "xl""lg"Content max width
repositorystring-Repository URL for GitHub links

API Reference

Row Format
PropertyTypeDefaultDescription
namestringrequiredProperty name
typestringrequiredType annotation
defaultstringrequiredDefault value or `required` / `-`
descriptionstringrequiredShort description

Search Documentation

Search for pages and content