Fixes rake docs:build

Fixes #2124