From ac55ea60af248983827f61a59e9e19b211253e57 Mon Sep 17 00:00:00 2001 From: "Bryan W. Weber" Date: Tue, 26 May 2020 14:11:26 -0400 Subject: [PATCH] [Doc] Correctly clean the MATLAB docs The MATLAB docs files are no longer in the code-docs folder. --- SConstruct | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 63b5d04df6..e04cfdc470 100644 --- a/SConstruct +++ b/SConstruct @@ -71,7 +71,9 @@ if 'clean' in COMMAND_LINE_TARGETS: removeFile('config.log') removeDirectory('doc/sphinx/matlab/examples') removeFile('doc/sphinx/matlab/examples.rst') - removeDirectory('doc/sphinx/matlab/code-docs') + for name in os.listdir('doc/sphinx/matlab/'): + if name.endswith('.rst') and name != 'index.rst': + removeFile('doc/sphinx/matlab/' + name) removeDirectory('doc/sphinx/cython/examples') removeFile('doc/sphinx/cython/examples.rst') removeDirectory('interfaces/cython/Cantera.egg-info')