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-06-12 12:59:54 +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
2026-10-25 21:13:30 +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

Momentry Display Engine - Markdown渲染與檔案樹管理系統

功能特色

  • Markdown渲染(支援表格、footnote、tasklist) -檔案樹管理(SQLite持久化)
  • REST API(18+路由)
  • macOS音訊控制(音訊裝置切換、音量控制) -多種顯示模式(tree, list, grid_sm, grid_lg)

##安裝

###必要條件

  • Rust 1.92+
  • macOS(音訊功能需 macOS)
  • SwitchAudioSource(音訊裝置切換)
#安裝 Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

#安裝 SwitchAudioSource(macOS)
brew install switchaudio-source

###建構

cargo build

##使用

###啟動伺服器

cargo run -- display                #預設 port 11438
cargo run -- display -p8080         #自訂 port
cargo run -- display README.md      #顯示指定檔案

###渲染 Markdown

cargo run -- render README.md       #輸出到 stdout
cargo run -- render README.md -o output.html

##測試

cargo test                          #執行所有測試
cargo test test_insert              #執行特定測試

File Tree功能

REST API

路由 方法 功能
/api/v2/tree/:user_id GET 取得檔案樹
/api/v2/tree/:user_id/node POST 建立節點
/api/v2/tree/:user_id/node/:node_id PUT/DELETE 更新/刪除節點
/api/v2/tree/:user_id/node/:node_id/move PUT 移動節點
/api/v2/tree/:user_id/node/:node_id/alias PATCH 更新別名

###顯示模式

  • tree - 樹狀顯示
  • list - 列表顯示
  • grid_sm - 小格狀顯示
  • grid_lg - 大格狀顯示

###範例

curl http://localhost:11438/api/v2/tree/demo?mode=tree
curl http://localhost:11438/api/v2/tree/demo?mode=list

Demo資料

  • data/users/demo.sqlite - 50節點範例資料
  • data/cache/ -範例檔案

##開發

見 AGENTS.md詳細開發指南。

CI/CD

使用 Gitea Actions:https://gitea.momentry.ddns.net

License

MIT

S
Description
No description provided
Readme 401 MiB
Languages
C 37.1%
Rust 30.7%
D 13.2%
Assembly 7.5%
Swift 2.8%
Other 8.5%