Mkdocs Pages Build installing Hugo instead of mkdocs


I am deploying a mkdocs Pages stack using Github as a source.

When I attempt to deploy the mkdocs project, the following debug logs are show:

2022-07-10T02:03:05.407162Z	Cloning repository...
2022-07-10T02:03:06.404271Z	From xxxxxx
2022-07-10T02:03:06.404813Z	 * branch            64b82b811fae7d68c6024d5200775d130013284f -> FETCH_HEAD
2022-07-10T02:03:06.481692Z	HEAD is now at 64b82b8 Initital Commit
2022-07-10T02:03:06.6558Z	Success: Finished cloning repository files
2022-07-10T02:03:07.322959Z	Installing dependencies
2022-07-10T02:03:07.333647Z	Python version set to 2.7
2022-07-10T02:03:10.737534Z	v12.18.0 is already installed.
2022-07-10T02:03:11.947397Z	Now using node v12.18.0 (npm v6.14.4)
2022-07-10T02:03:12.166763Z	Started restoring cached build plugins
2022-07-10T02:03:12.181446Z	Finished restoring cached build plugins
2022-07-10T02:03:12.669224Z	Attempting ruby version 2.7.1, read from environment
2022-07-10T02:03:16.183981Z	Using ruby version 2.7.1
2022-07-10T02:03:16.538693Z	Using PHP version 5.6
2022-07-10T02:03:16.686198Z	5.2 is already installed.
2022-07-10T02:03:16.710896Z	Using Swift version 5.2
2022-07-10T02:03:16.711231Z	**Installing Hugo 0.54.0**
2022-07-10T02:03:17.379668Z	**Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z**
2022-07-10T02:03:17.383214Z	Started restoring cached go cache
2022-07-10T02:03:17.401376Z	Finished restoring cached go cache
2022-07-10T02:03:17.540717Z	go version go1.14.4 linux/amd64
2022-07-10T02:03:17.55789Z	go version go1.14.4 linux/amd64
2022-07-10T02:03:17.560735Z	Installing missing commands
2022-07-10T02:03:17.561011Z	Verify run directory
2022-07-10T02:03:17.561199Z	Executing user command: mkdocs build
2022-07-10T02:03:17.567104Z	**/opt/build/bin/build: line 39: mkdocs: command not found**
2022-07-10T02:03:17.571887Z	Failed: build command exited with code: 127
2022-07-10T02:03:18.340671Z	Failed: an internal error occurred

It seems that the mkdocs Stack is installing Hugo, but then tried to call mkdocs and fails.

Is this a bug, or something I could have done?


It looks like you need to install the mkdocs library. One of my mkdocs deployments, I have it in a requirements.txt file and run pip install -r requirements.txt && mkdocs build.