mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
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:
commit
e0570ab10e
2
CHANGES
2
CHANGES
@ -16,6 +16,8 @@ Features added
|
||||
Bugs fixed
|
||||
----------
|
||||
|
||||
* #5418: Incorrect default path for sphinx-build -d/doctrees files
|
||||
|
||||
Testing
|
||||
--------
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user