Appearance
Offline Documentation Guide
This guide explains how to generate and use the offline version of the AI CMS Pro documentation.
What is Offline Documentation?
The offline documentation is a standalone, folder-based version of the documentation that:
- ✅ Works without a web server
- ✅ Can be opened directly in a browser
- ✅ Can be shared via USB, email, or cloud storage
- ✅ Works completely offline (no internet required)
- ✅ Maintains all functionality including search
Generating Offline Documentation
Quick Method
bash
cd _documentation
npm run build:offlineThis will:
- Build the documentation
- Generate the offline version automatically
Step-by-Step Method
1. Build the documentation:
bash
npm run build2. Generate offline version:
bash
npm run offlineOutput Structure
After generation, you'll have a clean, simple structure:
_documentation/
└── offline/
├── index.html ← OPEN THIS FILE! (Single entry point)
└── docs/ ← All other files in one folder
├── assets/ ← CSS, JS, fonts
│ ├── index-*.js
│ ├── index-*.css
│ └── ...
├── images/ ← Documentation images
│ ├── logo.svg
│ ├── favicon.svg
│ └── ...
├── screenshots/ ← Installation screenshots
│ ├── install-welcome.png
│ └── ...
├── 01-INSTALLATION/ ← Installation guides
│ ├── 01-System-Requirements.html
│ ├── 02-Installation-cPanel.html
│ └── ...
├── 02-MODULES/ ← Module documentation
├── 03-SETTINGS/ ← Settings guides
├── 04-FEATURE-MANAGEMENT/ ← Feature management
└── 05-ADDITIONAL/ ← Additional guidesClean Structure: Just 2 items in the offline/ folder:
- ✅
index.html- Single file to open - ✅
docs/- Folder containing everything else
How to Use
Opening the Documentation
The offline folder contains just 2 items:
index.html- Redirect page (opens this)docs/- Folder with all documentation files
Method 1: Double-click (Easiest)
- Navigate to
_documentation/offline/folder - You'll see only
index.htmlanddocs/folder - Double-click
index.html - It automatically redirects to
docs/index.html - Documentation opens with all links working
Method 2: Right-click
- Right-click
index.html - Select "Open with" → Choose your browser
- Automatic redirect to main documentation page
Method 3: Direct Access (Alternative)
- Navigate to
offline/docs/folder - Open
index.htmldirectly - All links work because everything is in
docs/folder
Note: The root index.html is just a redirect. All actual documentation files are in docs/ folder, maintaining the original structure so all links work correctly.
Browsing
- Use the left sidebar to navigate between sections
- Click any link to view documentation pages
- Use search (if available) to find content
- All images and assets load automatically
Sharing Offline Documentation
Method 1: Zip File
Compress the folder:
bashcd _documentation zip -r offline-docs.zip offline/Share the zip file:
- Email it
- Upload to cloud storage
- Share via USB drive
- Host on file sharing service
Recipient extracts and opens:
- Extract the zip file
- Open
index.htmlin browser
Method 2: Direct Folder Copy
- Copy the entire
offline/folder - Share via:
- USB drive
- Network share
- Cloud sync (Dropbox, Google Drive, etc.)
Important: Keep the entire folder structure intact. Don't move individual files.
Features
✅ What Works Offline
- All documentation pages
- Navigation menu
- Images and screenshots
- CSS styling
- Basic JavaScript functionality
- Internal links between pages
⚠️ What Doesn't Work
- External links (will open in browser if online)
- Some advanced search features (depends on implementation)
- Live updates (static version)
Browser Compatibility
Tested and works with:
| Browser | Status | Notes |
|---|---|---|
| Chrome | ✅ Excellent | Recommended |
| Edge | ✅ Excellent | Recommended |
| Firefox | ✅ Good | Works well |
| Safari | ✅ Good | Works well |
| Opera | ✅ Good | Works well |
File Size
Typical offline documentation size:
- Complete: ~10-15 MB
- Compressed (zip): ~5-8 MB
Size includes:
- All HTML pages
- CSS and JavaScript
- Images and screenshots
- Fonts and assets
Troubleshooting
Images Not Showing
Problem: Images appear broken
Solution:
- Make sure you opened
index.htmlfrom the rootoffline/folder (it redirects automatically) - Or open
docs/index.htmldirectly - Ensure the
docs/folder structure is intact - Don't move
index.htmlor thedocs/folder separately - Check that
docs/images/anddocs/screenshots/folders exist
Links Not Working
Problem: Clicking links doesn't navigate
Solution:
- Open
index.htmlfrom root (it redirects) OR opendocs/index.htmldirectly - All files are in
docs/folder, so links work from there - Ensure the
docs/folder structure is intact - Check that all HTML files are in the correct folders within
docs/ - Try opening
docs/index.htmldirectly if redirect doesn't work - Try a different browser (Chrome/Edge recommended)
Styling Looks Broken
Problem: Pages look unstyled
Solution:
- Open
index.htmlfrom root (redirects) OR opendocs/index.htmldirectly - Ensure
docs/assets/folder exists with all CSS files - Check browser console for errors (F12)
- Try opening
docs/index.htmldirectly if redirect causes issues - Try a different browser (Chrome/Edge recommended)
Search Not Working
Problem: Search functionality doesn't work
Solution:
- Some search features require JavaScript
- Make sure JavaScript is enabled in your browser
- Try Chrome or Edge for best compatibility
Updating Offline Documentation
When documentation is updated:
Regenerate:
bashnpm run build:offlineReplace the old
offline/folder with the new oneOr delete and regenerate:
bashrm -rf offline/ npm run build:offline
Best Practices
For Distribution
✅ Test before sharing:
- Open
index.htmlin a browser - Check a few pages load correctly
- Verify images display
- Open
✅ Include README:
- The generated README.md explains how to use
- Include it when sharing
✅ Compress for sharing:
- Zip the folder for easier distribution
- Reduces file size significantly
For Users
✅ Extract completely:
- Extract the entire
offline/folder - Keep
index.htmlanddocs/folder together - Don't separate them
- Extract the entire
✅ Open the correct file:
- Open
index.htmlfrom root (it redirects todocs/index.html) - OR open
docs/index.htmldirectly - Both methods work - the redirect is just for convenience
- Open
✅ Use recommended browser:
- Chrome or Edge work best
- Other browsers work but may have minor issues
✅ Don't modify structure:
- Keep
index.htmlanddocs/folder in the same directory - Don't move or rename them separately
- Keep
Advanced Usage
Customizing Output Location
Edit scripts/generate-offline.js:
javascript
const OFFLINE_DIR = path.join(__dirname, '../offline'); // Change thisExcluding Files
Modify the copyDirectory function to skip certain files or folders.
Adding Custom Files
Add files to the offline/ folder after generation, or modify the script to include them.
Comparison: Online vs Offline
| Feature | Online (VitePress) | Offline (Standalone) |
|---|---|---|
| Server Required | ✅ Yes | ❌ No |
| Internet Required | ✅ Yes (for assets) | ❌ No |
| Search | ✅ Full-featured | ⚠️ Basic |
| Updates | ✅ Automatic | ❌ Manual regeneration |
| Sharing | ⚠️ Requires hosting | ✅ Easy (zip file) |
| Portability | ❌ No | ✅ Yes |
| File Size | N/A | ~10-15 MB |
Summary
The offline documentation provides a portable, shareable version of the complete documentation that works without any server or internet connection.
Quick Start:
bash
npm run build:offline
# Then open offline/index.html in your browserPerfect for:
- Sharing with team members
- Client presentations
- Offline reference
- USB distribution
- Archival purposes
Last Updated: 1/22/2026, 1:05:26 PM