You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jr...@apache.org on 2018/04/28 14:19:39 UTC
[3/8] qpid-site git commit: QPID-8154: Add missing images to the
Dispatch user guide; regen the master doc snapshot
http://git-wip-us.apache.org/repos/asf/qpid-site/blob/b64809eb/scripts/gen-dispatch-release-docs
----------------------------------------------------------------------
diff --git a/scripts/gen-dispatch-release-docs b/scripts/gen-dispatch-release-docs
index 14bd6ba..0ff7d94 100755
--- a/scripts/gen-dispatch-release-docs
+++ b/scripts/gen-dispatch-release-docs
@@ -19,6 +19,7 @@
#
import os
+
from generate import *
def gen_dispatch_docs(release, source_dir, output_dir):
@@ -37,13 +38,15 @@ def gen_dispatch_docs(release, source_dir, output_dir):
copy(input_file, output_file)
- book_input_file = join(source_dir, "doc", "new-book", "book.adoc")
+ book_input_dir = join(source_dir, "doc", "new-book")
+ book_input_file = join(book_input_dir, "book.adoc")
book_output_dir = join(output_dir, "user-guide")
book_output_file = join(book_output_dir, "index.html.in")
make_dir(book_output_dir)
call("asciidoctor --no-header-footer -o {} {}", book_output_file, book_input_file)
+ copy(join(book_input_dir, "images"), join(book_output_dir, "images"))
# Asciidoctor strips the title - add it back
prepend(book_output_file, "<h1>Using Qpid Dispatch</h1>\n")
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org