diff options
author | Jacob Mason <jacoblmason@gmail.com> | 2010-08-07 20:21:53 -0500 |
---|---|---|
committer | Jacob Mason <jacoblmason@gmail.com> | 2010-08-07 20:21:53 -0500 |
commit | 6f3932660aed0db590e1a8a3f31293358e3aeb19 (patch) | |
tree | 2dc63072983de1a226f5c53aa4bd0ad2dbf68e92 /sphinx/builders/websupport.py | |
parent | 40c7de1aff9a4efe1827b915ff447e0dd5e59080 (diff) | |
download | sphinx-git-6f3932660aed0db590e1a8a3f31293358e3aeb19.tar.gz |
an even nicer build directory
Diffstat (limited to 'sphinx/builders/websupport.py')
-rw-r--r-- | sphinx/builders/websupport.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sphinx/builders/websupport.py b/sphinx/builders/websupport.py index bc15b8c97..cdd0fb925 100644 --- a/sphinx/builders/websupport.py +++ b/sphinx/builders/websupport.py @@ -107,7 +107,7 @@ class WebSupportBuilder(StandaloneHTMLBuilder): # if there is a source file, copy the source file for the # "show source" link if ctx.get('sourcename'): - source_name = path.join(self.outdir, self.app.staticdir, + source_name = path.join(self.app.builddir, self.app.staticdir, '_sources', os_path(ctx['sourcename'])) ensuredir(path.dirname(source_name)) copyfile(self.env.doc2path(pagename), source_name) @@ -115,9 +115,11 @@ class WebSupportBuilder(StandaloneHTMLBuilder): def handle_finish(self): StandaloneHTMLBuilder.handle_finish(self) shutil.move(path.join(self.outdir, '_images'), - path.join(self.outdir, self.app.staticdir, '_images')) + path.join(self.app.builddir, self.app.staticdir, + '_images')) shutil.move(path.join(self.outdir, '_static'), - path.join(self.outdir, self.app.staticdir, '_static')) + path.join(self.app.builddir, self.app.staticdir, + '_static')) def dump_search_index(self): self.indexer.finish_indexing() |