mirror of https://github.com/pypa/pip
Fix manpage generation (#6725)
This commit is contained in:
commit
056a753144
|
@ -275,9 +275,13 @@ man_pages = [
|
||||||
|
|
||||||
# Here, we crawl the entire man/commands/ directory and list every file with
|
# Here, we crawl the entire man/commands/ directory and list every file with
|
||||||
# appropriate name and details
|
# appropriate name and details
|
||||||
for fname in glob.glob('man/commands/*.rst'):
|
man_dir = os.path.join(docs_dir, 'man/')
|
||||||
fname_base = fname[4:-4]
|
raw_subcommands = glob.glob(os.path.join(man_dir, 'commands/*.rst'))
|
||||||
outname = 'pip-' + fname_base[13:]
|
if not raw_subcommands:
|
||||||
|
raise FileNotFoundError('The individual subcommand manpages could not be found!')
|
||||||
|
for fname in raw_subcommands:
|
||||||
|
fname_base = fname[len(man_dir):-4]
|
||||||
|
outname = 'pip-' + fname_base[9:]
|
||||||
description = u'description of {} command'.format(
|
description = u'description of {} command'.format(
|
||||||
outname.replace('-', ' ')
|
outname.replace('-', ' ')
|
||||||
)
|
)
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Fix generation of subcommand manpages.
|
Loading…
Reference in New Issue