Better fix for [options] header in generated manual pages

This commit is contained in:
Kovid Goyal 2016-03-04 00:30:20 +05:30
parent a9c7fc76e9
commit 8da7fd2616
3 changed files with 2 additions and 5 deletions

View File

@ -1,3 +0,0 @@
[options]
----------------

View File

@ -177,7 +177,7 @@ def update_cli_doc(name, raw, app):
def render_options(cmd, groups, options_header=True, add_program=True, header_level='~'): def render_options(cmd, groups, options_header=True, add_program=True, header_level='~'):
lines = [''] lines = ['']
if options_header: if options_header:
lines = ['.. include:: /cli-options-header.rst', ''] lines = [_('[options]'), '-'*40, '']
if add_program: if add_program:
lines += ['.. program:: '+cmd, ''] lines += ['.. program:: '+cmd, '']
for title, desc, options in groups: for title, desc, options in groups:

View File

@ -46,7 +46,7 @@ class POT(Command): # {{{
self.tx(['push', '-r', 'calibre.'+resource, '-s'], cwd=self.TRANSLATIONS) self.tx(['push', '-r', 'calibre.'+resource, '-s'], cwd=self.TRANSLATIONS)
def source_files(self): def source_files(self):
ans = [] ans = [self.a(self.j(self.d(self.SRC), 'manual', 'custom.py'))]
for root, _, files in os.walk(self.j(self.SRC, __appname__)): for root, _, files in os.walk(self.j(self.SRC, __appname__)):
for name in files: for name in files:
if name.endswith('.py'): if name.endswith('.py'):