gh-pages: make column wider and don't wrap code blocks

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-07-31 01:00:00 +00:00
parent 563bf6d59a
commit 6a9c478a83
3 changed files with 10 additions and 4 deletions

View File

@@ -28,22 +28,20 @@ from the README to example sources to GitHub rather than locally.
def timed_main(self):
asciidoctor_dir = os.path.join(self.env['root_dir'], 'asciidoctor')
github_pages_opts = []
if self.env['github_pages']:
link_target_script = 'link-target-github.rb'
github_pages_opts.extend(['--attribute', 'docinfo=shared', LF])
else:
link_target_script = 'link-target-up.rb'
exit_status = self.sh.run_cmd(
[
'asciidoctor', LF,
'--attribute', 'docinfo=shared', LF,
'--failure-level', 'info', LF,
'--require', os.path.join(asciidoctor_dir, link_target_script), LF,
'--out-file', self.env['readme_out'], LF,
'--trace', LF,
'--verbose', LF,
] +
github_pages_opts +
[
self.env['readme'], LF,
],