Documentation
How to Import into GitBook
Project-Agent / engineer-docs/GITBOOK_IMPORT_GUIDE.md
This directory contains the Engineering Documentation Guide formatted for GitBook import.
What's Included
- SUMMARY.md - Table of contents (GitBook reads this automatically)
- book.json - Configuration file
- intro.md - Main introduction page
- documentation-types/ - 4 pages on documentation types
- best-practices/ - 2 pages on best practices
- implementation/ - 2 pages on implementation
Total: 9 markdown pages + 2 configuration files
How to Import
Step 1: Prepare Files for Upload
Option A: Upload entire folder ```bash
Compress the engineer-docs folder
zip -r engineer-docs.zip engineer-docs/
Then upload engineer-docs.zip to GitBook
```
Option B: Extract and upload contents Just upload all the .md files from this folder to GitBook.
Step 2: Go to GitBook
- Log in to https://app.gitbook.com
- Click "Create new" → "Import"
- Select your authentication method
Step 3: Import the Files
If using ZIP file:
- Click "Upload files"
- Select
engineer-docs.zip - GitBook will extract and process
If uploading individual files:
- Click "Upload files"
- Select all
.mdfiles fromengineer-docs/ - GitBook will create the page structure from SUMMARY.md
Step 4: Verify Structure
After import, GitBook should show: `` Introduction ├── Documentation Types │ ├── Entry Points: README & Quick Start │ ├── Core Documentation: Architecture & API Reference │ ├── Guides & Examples: How-To & Working Code │ └── Process & Maintenance ├── Best Practices │ ├── Documentation Principles for Engineers │ └── Progressive Disclosure └── Implementation ├── File Organization & Checklist └── Tools & Automation ``
If the structure doesn't match, ensure:
- [ ] SUMMARY.md is included in the upload
- [ ] All file paths in SUMMARY.md are relative paths
- [ ] All
.mdfiles referenced in SUMMARY.md exist
Step 5: Publish
- Click Settings → Publish (or your publication option)
- Your documentation is now live
---
Troubleshooting Import
Problem: Pages Not Showing
Check: Are all .md files in the same upload?
- Solution: Make sure to upload the entire folder, not just individual files
Check: Are file paths correct in SUMMARY.md?
- Solution: SUMMARY.md uses relative paths like
./intro.mdand./documentation-types/entry-points.md
Problem: Wrong Page Structure
Check: Was SUMMARY.md included in the upload?
- Solution: SUMMARY.md defines the page hierarchy. Without it, GitBook creates a flat structure.
Check: Are heading levels consistent in markdown files?
- Solution: Each file should start with a single
#heading (the page title)
Problem: Missing Images or Code
All text is included, but images or special formatting may not render if files were missing during upload.
---
Customization in GitBook
After import, you can:
- Reorder pages - Drag pages in the sidebar
- Rename pages - Click the page title to edit
- Add covers - Upload cover images
- Change theme - Settings → Appearance
- Add comments - Enable commenting on pages
- Set permissions - Settings → Share & publish
---
What's Next After Import?
- Review the structure - Make sure pages are in the right order
- Test navigation - Click through all links to verify they work
- Add team members - Invite colleagues to view/edit
- Customize styling - Adjust theme colors and fonts if desired
- Enable publishing - Make docs public or restrict access
- Set up git sync (optional) - Connect to GitHub to auto-update when you push changes
---
Git Sync (Advanced)
To auto-update GitBook when you push changes to GitHub:
- In GitBook: Settings → Git Sync
- Connect your GitHub repository
- Select the branch and folder (
engineer-docs/) - Every push to that branch auto-updates GitBook
This is optional but useful for keeping docs in sync with your code.
---
Support
If you encounter issues:
- Check GitBook's import documentation
- Ensure all file paths in SUMMARY.md are correct
- Verify all
.mdfiles are UTF-8 encoded - Check that no files have special characters in names
---
Files in This Directory
`` engineer-docs/ ├── SUMMARY.md (GitBook structure) ├── book.json (GitBook configuration) ├── GITBOOK_IMPORT_GUIDE.md (This file) ├── intro.md (Main page) ├── documentation-types/ │ ├── entry-points.md │ ├── core-docs.md │ ├── guides-examples.md │ └── process-docs.md ├── best-practices/ │ ├── principles.md │ └── progressive-disclosure.md └── implementation/ ├── organization.md └── tools-automation.md ``
Total: 9 pages of documentation + 2 configuration files