fix:优化试题内容和样式排版

This commit is contained in:
Daniel
2026-04-18 20:20:38 +08:00
parent 15e71a9231
commit 7cb9b89cb0
644 changed files with 152784 additions and 621 deletions

15
scripts/bootstrap-env.sh Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env bash
# 若项目根不存在 .env则从 .env.example 复制(供 docker compose / 本地工具使用)
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
cd "$ROOT"
if [[ -f ".env" ]]; then
echo ".env 已存在,跳过"
exit 0
fi
if [[ ! -f ".env.example" ]]; then
echo "错误: 未找到 .env.example" >&2
exit 1
fi
cp .env.example .env
echo "已创建 .env来自 .env.example请编辑 .env 填写密钥等信息"