mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Better fix for [options] header in generated manual pages
This commit is contained in:
parent
a9c7fc76e9
commit
8da7fd2616
@ -1,3 +0,0 @@
|
|||||||
[options]
|
|
||||||
----------------
|
|
||||||
|
|
@ -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:
|
||||||
|
@ -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'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user