Skip to content

Commit e68ee5a

Browse files
pem725claude
andcommitted
🔧 Fix Netlify mkdocs command not found error
✅ PROBLEM SOLVED: • Changed 'mkdocs build' to 'python -m mkdocs build' • Changed 'pip install' to 'python -m pip install' • Added PIP_USER=false to prevent user install issues 🛠️ TECHNICAL FIX: • Netlify installed mkdocs but command wasn't in PATH • Using 'python -m mkdocs' uses the module directly • This is the standard solution for Netlify Python builds ✅ TESTED: • Local build works with 'python -m mkdocs build' • Should now deploy successfully on Netlify 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1b0a47f commit e68ee5a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

netlify.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
[build]
22
publish = "site"
3-
command = "pip install -r docs-requirements.txt && mkdocs build"
3+
command = "python -m pip install -r docs-requirements.txt && python -m mkdocs build"
44

55
[build.environment]
66
PYTHON_VERSION = "3.9"
7+
PIP_USER = "false"
78

89
# Redirect rules
910
[[redirects]]

0 commit comments

Comments
 (0)