Skip to main content

Sample Documentation Page

This page contains examples of all available Docusaurus markdown and MDX features to test styling and functionality.

Headings

All heading levels from H2 to H6:

Heading Level 2

Heading Level 3

Heading Level 4

Heading Level 5
Heading Level 6

Text Formatting

This paragraph demonstrates various text formatting options. You can make text bold, italic, bold and italic, strikethrough, or use inline code. You can also create links to external sites or internal links.

Subscript and Superscript

Water is H2O and Einstein's famous equation is E=mc2.

Lists

Unordered Lists

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

Ordered Lists

  1. First numbered item
  2. Second numbered item
    1. Nested numbered item
    2. Another nested item
      1. Double nested numbered item
  3. Third numbered item

Task Lists

  • Completed task
  • Incomplete task
  • Another incomplete task
    • Nested completed task
    • Nested incomplete task

Blockquotes

This is a simple blockquote.

This is a longer blockquote that spans multiple lines to demonstrate how the styling works with longer content. It should wrap nicely and maintain proper formatting.

This is a second paragraph within the same blockquote.

Nested Blockquotes

This is the first level of quoting.

This is a nested blockquote.

Back to the first level.

Horizontal Rules

Content above the horizontal rule.


Content below the horizontal rule.

Tables

FeatureStatusNotes
Basic Table✅ CompleteWorks great
Column Alignment✅ CompleteLeft, center, right
Complex Content✅ CompleteBold, italic, code

Table with Alignment

Left AlignedCenter AlignedRight Aligned
LeftCenterRight
This is a longer textCenterRight
ShortCenter content hereRight

Images

Basic Image

Docusaurus Logo

Image with Title

Docusaurus Logo

Linked Image

Docusaurus Logo

Code Blocks

Simple Code Block

This is a simple code block without syntax highlighting.

JavaScript with Syntax Highlighting

function greetUser(name) {
console.log(`Hello, ${name}!`);
return `Welcome to BracketSpace, ${name}`;
}

greetUser('Developer');

Code Block with Title

includes/functions.php
<?php
/**
* Add custom notification trigger
*/
add_action('init', function() {
notification_register_trigger(new CustomTrigger());
});

Code Block with Line Highlighting

import React from 'react';

function Component() {
const message = 'This line is highlighted';
const anotherMessage = 'This line too';
const thirdMessage = 'And this one';

return <div>{message}</div>;
}

Code Block with Line Numbers

def calculate_tax(amount, rate=0.1):
"""
Calculate tax for a given amount
"""
tax = amount * rate
total = amount + tax
return {
'original': amount,
'tax': tax,
'total': total
}

# Usage example
result = calculate_tax(100, 0.15)
printf("Total: ${result['total']}")

Multi-Language Code Tabs

<?php
$notification = new Notification([
'title' => 'Welcome!',
'message' => 'Thank you for joining us.'
]);
$notification->send();

Admonitions

Note Admonition

note

This is a note admonition. Use it for general information that users should be aware of.

Custom Note Title

This is a note with a custom title. You can include markdown formatting inside admonitions.

Tip Admonition

tip

This is a tip admonition. Use it for helpful suggestions and best practices.

Info Admonition

info

This is an info admonition. Use it for informational content that provides context.

Warning Admonition

warning

This is a warning admonition. Use it to highlight potential issues or important considerations.

Danger Admonition

danger

This is a danger admonition. Use it for critical warnings about potential problems or breaking changes.

Collapsible Sections

Click to expand this section

This content is hidden by default and only shown when the user clicks the summary. This is great for:

  • FAQ sections
  • Optional advanced configuration
  • Detailed explanations
  • Long code examples
# This code is hidden until expanded
npm install @bracketspace/notification
Nested Collapsible Content

You can also nest collapsible sections:

Inner collapsible section

This is content within a nested collapsible section. You can include any markdown content here:

  • Lists
  • Code blocks
  • Images
  • More collapsible sections!

Advanced Tabs Usage

Grouped Tabs

Here's an example with operating system specific instructions:

# Windows installation
npm install -g @bracketspace/notification-cli

And here's another set of tabs with the same group ID - they'll sync:

To run on Windows:

notification-cli.exe --version

Definition Lists

HTML definition lists are also supported:

Notification
A system for sending automated messages to users based on WordPress events.
Trigger
An event that initiates the sending of a notification.
Carrier
The method used to deliver notifications (email, SMS, webhooks, etc.).

Complex Content Combinations

You can combine different elements for rich documentation:

Pro Tip: Advanced Configuration

When setting up complex notification workflows, consider using tabs to organize different approaches:

For basic notifications, use this configuration:

add_action('user_register', function($user_id) {
notification([
'title' => 'Welcome!',
'user_id' => $user_id
])->trigger('user/registered');
});

Footnotes

Here's some text with a footnote reference1. You can also have multiple footnotes2.

HTML Elements

You can also use HTML elements when needed:

This is a custom styled div using inline styles with CSS variables from our design system.

Ctrl + C to copy, Ctrl + V to paste.

Summary

This sample page demonstrates the full range of Docusaurus markdown and MDX capabilities:

  1. ✅ All heading levels (H1-H6)
  2. ✅ Text formatting (bold, italic, strikethrough, code)
  3. ✅ Links (internal, external)
  4. ✅ Lists (ordered, unordered, nested, tasks)
  5. ✅ Blockquotes (simple, nested)
  6. ✅ Tables (basic, aligned)
  7. ✅ Images (basic, titled, linked)
  8. ✅ Code blocks (simple, highlighted, titled, numbered)
  9. ✅ All admonition types (note, tip, info, warning, danger)
  10. ✅ Tabs (basic, grouped, with code)
  11. ✅ Collapsible sections
  12. ✅ Definition lists
  13. ✅ HTML elements
  14. ✅ Footnotes
  15. ✅ Complex combinations

This page serves as both a reference for content creators and a testing ground for styling consistency across the documentation site.

Footnotes

  1. This is the first footnote with some explanation.

  2. This is the second footnote with additional information.