Initial commit: MetonaEditor v0.1.0

This commit is contained in:
2026-07-23 16:23:07 +08:00
commit 22e867eda8
32 changed files with 17621 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
#!/bin/bash
# MetonaEditor 本地开发服务器
echo "🍞 MetonaEditor 开发服务器"
echo "========================="
if command -v python3 &> /dev/null; then
PYTHON=python3
elif command -v python &> /dev/null; then
PYTHON=python
else
echo "❌ 错误: 未找到Python"
exit 1
fi
PORT=${1:-3001}
echo "✅ Python: $($PYTHON --version 2>&1)"
echo "🌐 启动服务器..."
echo ""
echo "📁 访问地址:"
echo " http://localhost:$PORT/site/index.html"
echo " http://localhost:$PORT/site/demo.html"
echo " http://localhost:$PORT/site/docs.html"
echo ""
echo "按 Ctrl+C 停止服务器"
echo ""
cd "$(dirname "$0")"
$PYTHON -m http.server $PORT