Merge pull request #5425 from tk0miya/5418_incorrect_doctreedir

Fix #5418: Incorrect default path for sphinx-build -d/doctrees files
This commit is contained in:
Takeshi KOMIYA 2018-09-14 02:05:36 +09:00 committed by GitHub
commit e0570ab10e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -16,6 +16,8 @@ Features added
Bugs fixed
----------
* #5418: Incorrect default path for sphinx-build -d/doctrees files
Testing
--------

View File

@ -219,7 +219,7 @@ def build_main(argv=sys.argv[1:]): # type: ignore
args.confdir = args.sourcedir
if not args.doctreedir:
args.doctreedir = os.path.join(args.sourcedir, '.doctrees')
args.doctreedir = os.path.join(args.outputdir, '.doctrees')
# handle remaining filename arguments
filenames = args.filenames