Fix #8298: sphinx-quickstart: Add :option:sphinx-quickstart --no-sep option

This commit is contained in:
Takeshi KOMIYA 2020-10-26 01:12:36 +09:00
parent f2a31185a6
commit b453be75c9
3 changed files with 8 additions and 1 deletions

View File

@ -28,6 +28,7 @@ Features added
directory on build man page directory on build man page
* #8289: epub: Allow to suppress "duplicated ToC entry found" warnings from epub * #8289: epub: Allow to suppress "duplicated ToC entry found" warnings from epub
builder using :confval:`suppress_warnings`. builder using :confval:`suppress_warnings`.
* #8298: sphinx-quickstart: Add :option:`sphinx-quickstart --no-sep` option
Bugs fixed Bugs fixed
---------- ----------

View File

@ -33,6 +33,10 @@ Options
If specified, separate source and build directories. If specified, separate source and build directories.
.. option:: --no-sep
If specified, create build directroy under source directroy.
.. option:: --dot=DOT .. option:: --dot=DOT
Inside the root directory, two more directories will be created; Inside the root directory, two more directories will be created;

View File

@ -489,8 +489,10 @@ def get_parser() -> argparse.ArgumentParser:
help=__('project root')) help=__('project root'))
group = parser.add_argument_group(__('Structure options')) group = parser.add_argument_group(__('Structure options'))
group.add_argument('--sep', action='store_true', default=None, group.add_argument('--sep', action='store_true', dest='sep', default=None,
help=__('if specified, separate source and build dirs')) help=__('if specified, separate source and build dirs'))
group.add_argument('--no-sep', action='store_false', dest='sep',
help=__('if specified, create build dir under source dir'))
group.add_argument('--dot', metavar='DOT', default='_', group.add_argument('--dot', metavar='DOT', default='_',
help=__('replacement for dot in _templates etc.')) help=__('replacement for dot in _templates etc.'))