Skip to content
WP Engine |Developer Docs Example

Kitchen Sink Example

This page demonstrates all the features available in Starlight. Use this as a reference for what you can do in your documentation.

This is a level 3 heading. You can use multiple heading levels to organize your content hierarchically.

Level 4 headings are useful for more granular organization.

Even deeper nesting is available for complex topics.

This is the deepest heading level available.

Regular paragraph text goes here. You can write bold text, italic text, bold and italic, inline code, and links.

You can also use lists:

  • First item
  • Second item
    • Nested item
    • Another nested item
  • Third item

Numbered lists work too:

  1. First step
  2. Second step
  3. Third step
    1. Sub-step A
    2. Sub-step B

Asides are highlighted blocks that call attention to specific information.

function helloWorld(name) {
console.log(`Hello, ${name}!`);
return true;
}
helloWorld('Starlight');
def hello_world(name):
print(f"Hello, {name}!")
return True
hello_world('Starlight')
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Example Page</title>
</head>
<body>
<h1>Hello, World!</h1>
<p>This is an example HTML page.</p>
</body>
</html>
body {
font-family: 'Inter', sans-serif;
background-color: #f5f5f5;
color: #333;
line-height: 1.6;
}
.container {
max-width: 1200px;
margin: 0 auto;
padding: 0 20px;
}
{
"name": "starlight-theme-wpe",
"version": "1.0.0",
"description": "A theme for Starlight",
"type": "module",
"exports": {
".": "./index.js"
}
}
function calculateTotal(items) {
let total = 0;
for (let item of items) {
total += item.price * item.quantity;
}
return total;
}

Tabs are useful for showing multiple options or variants:

bash npm install @wpengine/starlight-theme-wpe
function Button() {
return <button>Click me</button>;
}

This is a blockquote. It’s useful for quoting text from other sources or highlighting important passages.

“The best way to predict the future is to invent it.” — Alan Kay


FeatureStatusDescription
AsidesSupported
Code BlocksWith syntax highlighting
TabsFor multi-option content
TablesFor tabular data
Custom ComponentsMDX support

Check out the example reference for more information.