git clone git@github.com:doctrine/migrations-documentation.git
git submodule add https://github.com/doctrine/doctrine-sphinx-theme.git en/_theme
git submodule update
./bin/install-dependencies.sh
./bin/generate-docs.sh
It will generate the documentation into the build directory of the checkout.