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
- The
getDocsStructure()function scans the/app/docs/directory - It finds all
.mdxandpage.tsxfiles - Extracts metadata from each file
- Groups them by category
- Sorts them by order within each category
- Generates the navigation structure dynamically
When you create a new MDX file with metadata, it will automatically appear in the sidebar!