summaryrefslogtreecommitdiff
path: root/sphinx/cmd/quickstart.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-05-17 19:12:56 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2020-05-17 19:12:56 +0900
commit3c7d35d2a20cfa7c915538704680a33db87c0563 (patch)
tree5c8e1c9e894f90bf18d77c324ab7829fe0c784a6 /sphinx/cmd/quickstart.py
parent4ad466c7a602ca3b60a9cee15a07f84903a28fe8 (diff)
parent5f51a1e63f9442439466b7acede87ad21d49bdc0 (diff)
downloadsphinx-git-3c7d35d2a20cfa7c915538704680a33db87c0563.tar.gz
Merge branch '3.x'
Diffstat (limited to 'sphinx/cmd/quickstart.py')
-rw-r--r--sphinx/cmd/quickstart.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sphinx/cmd/quickstart.py b/sphinx/cmd/quickstart.py
index 802549304..68f8b2a18 100644
--- a/sphinx/cmd/quickstart.py
+++ b/sphinx/cmd/quickstart.py
@@ -237,7 +237,7 @@ def ask_user(d: Dict) -> None:
print(__('Sphinx has the notion of a "version" and a "release" for the\n'
'software. Each version can have multiple releases. For example, for\n'
'Python the version is something like 2.5 or 3.0, while the release is\n'
- 'something like 2.5.1 or 3.0a1. If you don\'t need this dual structure,\n'
+ 'something like 2.5.1 or 3.0a1. If you don\'t need this dual structure,\n'
'just set both to the same value.'))
d['version'] = do_prompt(__('Project version'), '', allow_empty)
if 'release' not in d:
@@ -258,7 +258,7 @@ def ask_user(d: Dict) -> None:
if 'suffix' not in d:
print()
print(__('The file name suffix for source files. Commonly, this is either ".txt"\n'
- 'or ".rst". Only files with this suffix are considered documents.'))
+ 'or ".rst". Only files with this suffix are considered documents.'))
d['suffix'] = do_prompt(__('Source file suffix'), '.rst', suffix)
if 'master' not in d:
@@ -319,6 +319,7 @@ def generate(d: Dict, overwrite: bool = True, silent: bool = False, templatedir:
d.setdefault('extensions', [])
d['copyright'] = time.strftime('%Y') + ', ' + d['author']
+ d["path"] = os.path.abspath(d['path'])
ensuredir(d['path'])
srcdir = path.join(d['path'], 'source') if d['sep'] else d['path']