Nextra Docs Generator
JSON Structure
Output
Documentation
Quick Start
- Generate content structure using ChatGPT (see below)
- Enter the generated JSON structure
- Click "Create & Download Zip" button
- Extract the ZIP into your Nextra project's pages directory
Generating Content with ChatGPT
Use this prompt to generate a well-structured syllabus:
I need a comprehensive programming syllabus in JSON format. The structure should follow this exact format:
{
"Language Name": {
"section_name": {
"--section_title": [
"topic1",
{
"subtopic_name": [
"item1",
"item2",
"item3"
]
}
]
}
}
}
Important rules to follow:
1. Use "--" prefix for section titles that act as separators
2. Each topic can have subtopics as nested objects with arrays
3. Keep topic names clear and descriptive
4. Follow a logical learning progression
5. Include all major concepts from basics to advanced
The syllabus should cover:
- Basic concepts and syntax
- Object-Oriented Programming
- Data Structures (if applicable)
- Standard Libraries
- Memory Management
- Advanced Features
- Best Practices
- Common Applications
JSON Structure Format
The structure supports nested content:
- Object keys become folders
- Keys with "--" prefix become section titles
- Arrays can contain:
- Simple strings (become MDX files)
- Objects (become subfolders with their own files)
Example Structure
{
"Java Documentation": {
"Java Basics": {
"--Variables and Data Types": [
"Variables Overview",
{
"Primitive Data Types": [
"byte",
"short",
"int",
"long"
]
},
{
"Non-Primitive Data Types": [
"Strings",
"Arrays",
"Classes"
]
}
]
}
}
}