mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-10-23 00:40:51 +00:00
add option to skip pdf
This commit is contained in:
parent
cdd7486175
commit
c24278184e
@ -178,6 +178,7 @@ def build_single_page_version(lang, args, cfg):
|
|||||||
single_page_output_path
|
single_page_output_path
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if not args.skip_pdf:
|
||||||
single_page_index_html = os.path.abspath(os.path.join(single_page_output_path, 'index.html'))
|
single_page_index_html = os.path.abspath(os.path.join(single_page_output_path, 'index.html'))
|
||||||
single_page_pdf = single_page_index_html.replace('index.html', 'clickhouse_%s.pdf' % lang)
|
single_page_pdf = single_page_index_html.replace('index.html', 'clickhouse_%s.pdf' % lang)
|
||||||
create_pdf_command = ['wkhtmltopdf', '--print-media-type', single_page_index_html, single_page_pdf]
|
create_pdf_command = ['wkhtmltopdf', '--print-media-type', single_page_index_html, single_page_pdf]
|
||||||
@ -229,6 +230,7 @@ if __name__ == '__main__':
|
|||||||
arg_parser.add_argument('--theme-dir', default='mkdocs-material-theme')
|
arg_parser.add_argument('--theme-dir', default='mkdocs-material-theme')
|
||||||
arg_parser.add_argument('--output-dir', default='build')
|
arg_parser.add_argument('--output-dir', default='build')
|
||||||
arg_parser.add_argument('--skip-single-page', action='store_true')
|
arg_parser.add_argument('--skip-single-page', action='store_true')
|
||||||
|
arg_parser.add_argument('--skip-pdf', action='store_true')
|
||||||
arg_parser.add_argument('--save-raw-single-page', type=str)
|
arg_parser.add_argument('--save-raw-single-page', type=str)
|
||||||
arg_parser.add_argument('--verbose', action='store_true')
|
arg_parser.add_argument('--verbose', action='store_true')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user