To generate docs into the nd4j-nn/doc_sources folder, run
nd4j-nn/doc_sources
python generate_docs.py \ --project nd4j-nn \ --code ../nd4j