Dooform Logo

Documentation

Dynamic Test Page

This page was created to test the dynamic sidebar functionality.

The sidebar should automatically detect this page and add it to the navigation under the "เริ่มต้น" section.

Features Tested

  • ✅ Automatic file discovery
  • ✅ Metadata extraction
  • ✅ Category assignment
  • ✅ Order sorting
  • ✅ Thai title display

How It Works

  1. The getDocsStructure() function scans the /app/docs/ directory
  2. It finds all .mdx and page.tsx files
  3. Extracts metadata from each file
  4. Groups them by category
  5. Sorts them by order within each category
  6. Generates the navigation structure dynamically

When you create a new MDX file with metadata, it will automatically appear in the sidebar!