feat: integrate CoreDoc documentation system
- Add CoreDoc maintenance documentation (8 files) - Create route module for documentation serving - Set up static file structure with symbolic links - Support dual documentation systems (Legacy WASM + New Modular) Documentation includes: - README.md: System overview - DIRECTORY_STRUCTURE.md: Complete directory mapping - ARCHITECTURE.md: System design and data flow - MAINTENANCE_GUIDE.md: Daily maintenance procedures - INTEGRATION_GUIDE.md: Integration details - API_REFERENCE.md: All API endpoints - INTEGRATION_REPORT.md: Complete integration report - QUICK_START.md: Quick reference for team Route module: markbase-core/src/api/docs.rs - /docs/legacy/* → Legacy WASM system - /docs/api/* → API documentation - /docs/cli/* → CLI documentation Static files: - static/docs/legacy -> momentry_core/docs_v1.0/doc_wasm/ - static/docs/api -> momentry_core/docs_v1.0/API_WORKSPACE/ - static/docs/cli -> momentry_core/docs_v1.0/CLI_WORKSPACE/ Pending: Manual route addition to server.rs Team: Markbase team to complete integration
This commit is contained in:
@@ -0,0 +1,115 @@
|
||||
# CoreDoc Quick Start Guide
|
||||
|
||||
## For Markbase Team
|
||||
|
||||
---
|
||||
|
||||
## Accessing Documentation
|
||||
|
||||
### 1. Main Documentation
|
||||
|
||||
```bash
|
||||
# Legacy WASM System
|
||||
http://localhost:11438/docs/legacy/
|
||||
|
||||
# API Documentation
|
||||
http://localhost:11438/docs/api/
|
||||
|
||||
# CLI Documentation
|
||||
http://localhost:11438/docs/cli/
|
||||
```
|
||||
|
||||
### 2. Login Credentials
|
||||
|
||||
- **Username**: `admin`
|
||||
- **Password**: `admin123`
|
||||
|
||||
---
|
||||
|
||||
## Common Tasks
|
||||
|
||||
### View a Specific Module
|
||||
|
||||
```bash
|
||||
# Legacy system
|
||||
curl -u admin:admin123 http://localhost:11438/docs/legacy/modules/001_Auth_v1.3.5.md
|
||||
|
||||
# API docs
|
||||
curl -u admin:admin123 http://localhost:11438/docs/api/modules/001_Auth_API.md
|
||||
|
||||
# CLI docs
|
||||
curl -u admin:admin123 http://localhost:11438/docs/cli/modules/101_Register_CLI.md
|
||||
```
|
||||
|
||||
### Update Documentation
|
||||
|
||||
```bash
|
||||
# Edit file
|
||||
vim /Users/accusys/momentry_core/docs_v1.0/API_WORKSPACE/modules/Auth_API.md
|
||||
|
||||
# Commit changes
|
||||
cd /Users/accusys/momentry_core
|
||||
git add docs_v1.0/API_WORKSPACE/modules/Auth_API.md
|
||||
git commit -m "docs: update Auth API"
|
||||
git push
|
||||
```
|
||||
|
||||
### Restart Server
|
||||
|
||||
```bash
|
||||
cd /Users/accusys/markbase
|
||||
|
||||
# Stop
|
||||
lsof -ti :11438 | xargs kill -9
|
||||
|
||||
# Start
|
||||
./target/release/markbase-core interface web --port 11438
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Directory Locations
|
||||
|
||||
| Content | Location |
|
||||
|---------|----------|
|
||||
| **Documentation** | `docs/core-doc/` |
|
||||
| **Legacy WASM** | `static/docs/legacy/` |
|
||||
| **API Docs** | `static/docs/api/` |
|
||||
| **CLI Docs** | `static/docs/cli/` |
|
||||
|
||||
---
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
### Can't Access Documentation
|
||||
|
||||
1. Check server is running: `lsof -i :11438`
|
||||
2. Check credentials: `curl -u admin:admin123 http://localhost:11438/docs/`
|
||||
3. Check logs: `tail -f logs/markbase.log`
|
||||
|
||||
### Need Help?
|
||||
|
||||
- Read: `docs/core-doc/MAINTENANCE_GUIDE.md`
|
||||
- Check: `docs/core-doc/TROUBLESHOOTING.md`
|
||||
|
||||
---
|
||||
|
||||
## Quick Reference
|
||||
|
||||
```bash
|
||||
# Start server
|
||||
./target/release/markbase-core interface web
|
||||
|
||||
# View docs
|
||||
open http://localhost:11438/docs/legacy/
|
||||
|
||||
# Test API
|
||||
curl -u admin:admin123 http://localhost:11438/docs/api/modules/001_Auth_API.md
|
||||
|
||||
# Rebuild WASM (rarely needed)
|
||||
cd ~/momentry_core/md_wasm && cargo build --target wasm32-unknown-unknown --release
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
**Last Updated**: 2026-10-25
|
||||
Reference in New Issue
Block a user