To generate docs into the nd4j/doc_sources folder, first cd docs then run:
nd4j/doc_sources
cd docs
python generate_docs.py \ --project nd4j \ --code ../nd4j --out_language en