Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,20 @@ else
echo " ✅ uv 既にインストール済み: $(uv --version 2>/dev/null || echo 'version unknown')"
fi

MARKITDOWN_EXTRAS_MARKER="/home/vscode/.local/share/uv/tools/markitdown/.ecc-all-extras"
if command -v uv &> /dev/null; then
if ! command -v markitdown &> /dev/null || [[ ! -f "$MARKITDOWN_EXTRAS_MARKER" ]]; then
echo "📄 markitdown[all] をインストール中..."
if uv tool install --upgrade "markitdown[all]"; then
mkdir -p "$(dirname "$MARKITDOWN_EXTRAS_MARKER")"
touch "$MARKITDOWN_EXTRAS_MARKER"
echo " ✅ markitdown[all] インストール完了"
else
echo " ⚠️ markitdown[all] インストールに失敗しました"
fi
fi
fi

# ECC の設定適用
echo " ECC設定を適用中..."

Expand Down
17 changes: 11 additions & 6 deletions .devcontainer/startup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -222,12 +222,17 @@ if ! command -v uv >/dev/null 2>&1; then
fi
fi

if command -v uv >/dev/null 2>&1 && ! command -v markitdown >/dev/null 2>&1; then
echo "📦 markitdown を uv でインストール中..."
if uv tool install markitdown >/tmp/markitdown-install.log 2>&1; then
echo "✅ markitdown インストール完了"
else
echo "⚠️ markitdown インストール失敗 (ログ: /tmp/markitdown-install.log)"
MARKITDOWN_EXTRAS_MARKER="/home/vscode/.local/share/uv/tools/markitdown/.ecc-all-extras"
if command -v uv >/dev/null 2>&1; then
if ! command -v markitdown >/dev/null 2>&1 || [ ! -f "$MARKITDOWN_EXTRAS_MARKER" ]; then
echo "📦 markitdown[all] を uv でインストール中..."
if uv tool install --upgrade "markitdown[all]" >/tmp/markitdown-install.log 2>&1; then
mkdir -p "$(dirname "$MARKITDOWN_EXTRAS_MARKER")"
touch "$MARKITDOWN_EXTRAS_MARKER"
echo "✅ markitdown[all] インストール完了"
else
echo "⚠️ markitdown[all] インストール失敗 (ログ: /tmp/markitdown-install.log)"
fi
fi
fi

Expand Down
Loading