diff --git a/build-doc b/build-doc index 5eab018..528921a 100755 --- a/build-doc +++ b/build-doc @@ -28,8 +28,10 @@ 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( @@ -40,6 +42,9 @@ from the README to example sources to GitHub rather than locally. '--out-file', self.env['readme_out'], LF, '--trace', LF, '--verbose', LF, + ] + + github_pages_opts + + [ self.env['readme'], LF, ], out_file=self.env['build_doc_log'], diff --git a/docinfo-footer.html b/docinfo-footer.html new file mode 100644 index 0000000..4503a77 --- /dev/null +++ b/docinfo-footer.html @@ -0,0 +1,9 @@ +