From d6a5ed910a8fc08495f2cc2c95cc084207202354 Mon Sep 17 00:00:00 2001 From: Thiviyan Thanapalasingam Date: Mon, 30 Apr 2018 14:16:35 +0100 Subject: [PATCH 1/2] DOC: Fix whitespace in pathnames issue by wrapping paths with quotes (#20862) --- doc/make.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/make.py b/doc/make.py index 4967f30453fd1..4d25f19638091 100755 --- a/doc/make.py +++ b/doc/make.py @@ -232,10 +232,10 @@ def _sphinx_build(self, kind): '-b{}'.format(kind), '-{}'.format( 'v' * self.verbosity) if self.verbosity else '', - '-d{}'.format(os.path.join(BUILD_PATH, 'doctrees')), + '-d\'{}\''.format(os.path.join(BUILD_PATH, 'doctrees')), '-Dexclude_patterns={}'.format(self.exclude_patterns), - SOURCE_PATH, - os.path.join(BUILD_PATH, kind)) + '\'{}\''.format(SOURCE_PATH), + '\'{}\''.format(os.path.join(BUILD_PATH, kind))) def _open_browser(self): base_url = os.path.join('file://', DOC_PATH, 'build', 'html') From 0fea26784697f4f6e75445be18300a579c0f2a16 Mon Sep 17 00:00:00 2001 From: Marc Garcia Date: Wed, 26 Sep 2018 11:35:39 +0100 Subject: [PATCH 2/2] replacing single quotes with double quotes for windows --- doc/make.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/make.py b/doc/make.py index 4d25f19638091..e1fe130c694b8 100755 --- a/doc/make.py +++ b/doc/make.py @@ -232,10 +232,10 @@ def _sphinx_build(self, kind): '-b{}'.format(kind), '-{}'.format( 'v' * self.verbosity) if self.verbosity else '', - '-d\'{}\''.format(os.path.join(BUILD_PATH, 'doctrees')), + '-d"{}"'.format(os.path.join(BUILD_PATH, 'doctrees')), '-Dexclude_patterns={}'.format(self.exclude_patterns), - '\'{}\''.format(SOURCE_PATH), - '\'{}\''.format(os.path.join(BUILD_PATH, kind))) + '"{}"'.format(SOURCE_PATH), + '"{}"'.format(os.path.join(BUILD_PATH, kind))) def _open_browser(self): base_url = os.path.join('file://', DOC_PATH, 'build', 'html')