AeThex Documentation Migration Guide
Overview
This guide explains how to migrate the AeThex documentation from the React-based local docs system to Gitbook.
Migration Structure
The migration package includes:
Markdown Files - 9 documentation pages in Markdown format
JSON Structure - Structured data for programmatic import
Implementation Guide - Instructions for local fallback system
Gitbook API Guide - How to push content to Gitbook
Files Included
code/docs-migration/
├── 01-overview.md # Welcome to AeThex Documentation
├── 02-getting-started.md # Getting Started
├── 03-platform.md # Platform Guide
├── 04-api-reference.md # API Reference
├── 05-tutorials.md # Tutorials
├── 06-cli.md # CLI Tools
├── 07-examples.md # Code Examples
├── 08-integrations.md # Integrations
├── 09-curriculum.md # Curriculum
├── MIGRATION_GUIDE.md # This file
├── docs-structure.json # Gitbook structure definition
├── migration-implementation.ts # Implementation helper
└── gitbook-api-script.js # Script to push to GitbookStep 1: Prepare Gitbook Workspace
Go to your Gitbook workspace "AeThex Docs"
Create a new space or use existing one
Create the following page structure:
Overview
Getting Started
Platform
API Reference
Tutorials
CLI Tools
Code Examples
Integrations
Curriculum
Step 2: Import Markdown Content
Option A: Manual Import
Open each Markdown file
Copy the content
Paste into corresponding Gitbook page
Format as needed (Gitbook handles most Markdown automatically)
Option B: Gitbook Import API
Use the Gitbook API to programmatically import content:
Step 3: Set Up Fallback System (Local)
Keep your local React docs as a fallback while you confirm everything is synced:
Update DocsLayout.tsx
Add a banner and fallback behavior:
Add Gitbook Embed (Optional)
For seamless integration, embed Gitbook content directly:
Step 4: Update Navigation Links
Update your app to link to Gitbook:
Keep internal
/docs/*routes during transitionUpdate external links to point to Gitbook:
https://docs.aethex.techMonitor analytics to track transition
Step 5: Verify Content Migration
Checklist
Testing
Visit each page in Gitbook
Test links and navigation
Verify code snippets are highlighted correctly
Check mobile responsiveness
Test search functionality
Step 6: Update Internal Links
Before fully migrating, update links throughout your app:
Links to Update
Header navigation:
/docs→https://docs.aethex.techFooter links
In-content links
Breadcrumbs
Cards and CTAs
Step 7: Set Up API Sync (Optional)
For automated updates, set up periodic syncs using the Gitbook API and GitHub Actions.
Step 8: Monitor and Adjust
Week 1-2: Keep both systems active
Local React docs as primary
Gitbook as secondary
Gather user feedback
Week 3-4: Switch primary to Gitbook
Update all links to point to Gitbook
Keep local docs as fallback redirect
Week 5+: Full migration complete
Remove local docs pages (or archive)
Update all documentation links
Rollback Plan
If issues arise, you can quickly rollback:
Revert link changes
Keep local docs active
Fix issues in Gitbook
Re-attempt migration when ready
API Credentials
Your Gitbook API token has been provided:
API Token: gb_api_jORqpp2qlvg7pwlPiIKHAbgcFIDJBIJ1pz09WpIg
Space Name: AeThex Docs
Store these securely as environment variables.
Quick Start Commands
Next Steps
Find your Gitbook Space ID from Gitbook settings
Run the sync script to push content
Verify content in Gitbook
Update your app links as needed
Monitor usage during transition period
Last updated
