From bd41649cf11a5bd06ba07ac46ed5795f2adb1978 Mon Sep 17 00:00:00 2001 From: Gervase Markham Date: Mon, 11 May 2015 19:02:45 +0100 Subject: Bug 1144086 - Move extension docs assembly from makedocs.pl to conf.py. r=dkl,a=glob --- docs/en/rst/conf.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'docs') diff --git a/docs/en/rst/conf.py b/docs/en/rst/conf.py index c8be24e49..a5c6090e9 100644 --- a/docs/en/rst/conf.py +++ b/docs/en/rst/conf.py @@ -400,6 +400,10 @@ ext_dir = "../../../extensions" if (os.path.isdir(ext_dir)): # Clear out old extensions docs for dir in os.listdir("extensions"): + # A .gitignore file is required as git doesn't like empty directories + if dir == ".gitignore": + continue + shutil.rmtree(os.path.join("extensions", dir)) # Copy in new copies -- cgit v1.2.3-24-g4f1b