Files
markbase/docs
Warren c28acd0512
Test / test (push) Has been cancelled
Test / build (push) Has been cancelled
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
2026-10-25 23:17:56 +08:00
..
2026-05-16 15:37:37 +08:00
2026-05-16 15:37:37 +08:00
2026-05-16 15:37:37 +08:00

MarkBase配置系统文档索引

文档列表

1. CONFIG_SYSTEM.md

完整配置系统文档

  • 配置文件结构(markbase.toml、s3.toml、sftp.toml)
  • 所有参数说明(86个参数)
  • 验证规则(61个检查)
  • CLI命令使用
  • REST API endpoint
  • 环境变量覆盖
  • 生产部署建议

适合读者: 系统管理员、运维人员、开发人员


2. API_USAGE.md

配置API使用指南

  • 9个API endpoint详细说明
  • curl命令示例(完整)
  • Python脚本示例
  • 错误处理示例
  • 批量操作脚本
  • 高级用法技巧

适合读者: 开发人员、自动化运维


3. AUDIT_LOG_GUIDE.md

审计日志使用指南

  • 审计日志结构说明
  • 日志查询与分析
  • 日志管理(轮转、清理)
  • 安全审计应用
  • 故障诊断案例
  • 最佳实践建议

适合读者: 安全审计人员、运维人员


文档关系

CONFIG_SYSTEM.md (完整参数说明)
    ↓
API_USAGE.md (如何通过API修改配置)
    ↓
AUDIT_LOG_GUIDE.md (如何查看配置变更历史)

快速开始

1. 初始化配置

cargo run -- config init

2. 查看配置

cargo run -- config show
curl http://localhost:11438/api/v2/config | jq

3. 编辑配置

# CLI方式
cargo run -- config edit --key server.port --value 8080

# API方式
curl -X POST "http://localhost:11438/api/v2/config/edit?key=server.port&value=8080"

4. 查看审计日志

tail -f logs/config_audit.log | jq

文档版本

版本: 2.0 更新日期: 2026-06-09 MarkBase版本: Phase 2 Complete


相关文档:

  • AGENTS.md - MarkBase开发指南(主文档)
  • README.md - MarkBase项目概述