From 9aada063a083466a76b7708cf30733fc01e8ab14 Mon Sep 17 00:00:00 2001 From: vandanavk Date: Tue, 31 Jul 2018 15:11:25 -0700 Subject: [PATCH] root path is undefined --- docs/mxdoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/mxdoc.py b/docs/mxdoc.py index 8332ae22d48f..6a4403f368e5 100644 --- a/docs/mxdoc.py +++ b/docs/mxdoc.py @@ -72,7 +72,7 @@ def build_mxnet(app): def build_r_docs(app): """build r pdf""" r_root = app.builder.srcdir + '/../R-package' - pdf_path = root_path + '/docs/api/r/mxnet-r-reference-manual.pdf' + pdf_path = app.builder.srcdir + '/api/r/mxnet-r-reference-manual.pdf' _run_cmd('cd ' + r_root + '; R -e "roxygen2::roxygenize()"; R CMD Rd2pdf . --no-preview -o ' + pdf_path) dest_path = app.builder.outdir + '/api/r/'