- use wkhtmltopdf ("patched QT" version) to combine all html files into a single pdf file "git-doc.pdf" - insert page breaks to separate major sections Signed-off-by: Thomas Ackermann <th.acker@xxxxxxxx> --- Documentation/.gitignore | 1 + Documentation/footerend.txt | 4 ++++ Documentation/footerstart.txt | 7 ++++++ Documentation/makedocpdf.sh | 53 +++++++++++++++++++++++++++++++++++++++++++ Documentation/pagebreak.txt | 1 + 5 files changed, 66 insertions(+) create mode 100644 Documentation/footerend.txt create mode 100644 Documentation/footerstart.txt create mode 100755 Documentation/makedocpdf.sh create mode 100644 Documentation/pagebreak.txt diff --git a/Documentation/.gitignore b/Documentation/.gitignore index d62aebd..fba4730 100644 --- a/Documentation/.gitignore +++ b/Documentation/.gitignore @@ -10,3 +10,4 @@ howto-index.txt doc.dep cmds-*.txt manpage-base-url.xsl +docfiles.txt diff --git a/Documentation/footerend.txt b/Documentation/footerend.txt new file mode 100644 index 0000000..ed16923 --- /dev/null +++ b/Documentation/footerend.txt @@ -0,0 +1,4 @@ + </td> + </tr> +</table> +</body></html> diff --git a/Documentation/footerstart.txt b/Documentation/footerstart.txt new file mode 100644 index 0000000..a2746ef --- /dev/null +++ b/Documentation/footerstart.txt @@ -0,0 +1,7 @@ +<html> +<head></head> +<body style="border:0; margin: 0;" onload="subst()"> +<table style="border-top: 1px solid black; width: 100%"> + <tr> + <td class="section"></td> + <td style="text-align:center"> diff --git a/Documentation/makedocpdf.sh b/Documentation/makedocpdf.sh new file mode 100755 index 0000000..5f1a2c1 --- /dev/null +++ b/Documentation/makedocpdf.sh @@ -0,0 +1,53 @@ +#!/bin/sh + +rm -f git-doc.pdf + +cat pagebreak.txt >pagebreak.html + +cat /dev/null >docfiles.txt + +ls gittutorial.html >>docfiles.txt +ls gittutorial-2.html >>docfiles.txt +ls everyday.html >>docfiles.txt +ls gitworkflows.html >>docfiles.txt + +ls pagebreak.html >>docfiles.txt +ls git.html >>docfiles.txt +ls git-a*.html >>docfiles.txt +ls git-bisect.html >>docfiles.txt +ls git-b[j-z]*.html >>docfiles.txt +ls git-[c-s]*.html >>docfiles.txt +ls git-ta*.html >>docfiles.txt +ls gitk.html >>docfiles.txt +ls git-[u-z]*.html >>docfiles.txt + +ls pagebreak.html >>docfiles.txt +ls gita*.html >>docfiles.txt +ls git-bisect-lk2009.html >>docfiles.txt +ls git[cdghimnr]*.html >>docfiles.txt +ls git-tools.html >>docfiles.txt +ls gitweb*.html >>docfiles.txt + +ls pagebreak.html >>docfiles.txt +ls howto-index.html >>docfiles.txt +ls howto/*.html >>docfiles.txt + +ls pagebreak.html >>docfiles.txt +ls technical/[b-z]*.html >>docfiles.txt + +ls pagebreak.html >>docfiles.txt +ls technical/api-index.html >>docfiles.txt +ls technical/api-[a-h]*.html >>docfiles.txt +ls technical/api-in-*.html >>docfiles.txt +ls technical/api-[j-z]*.html >>docfiles.txt + +ls pagebreak.html >>docfiles.txt +ls RelNotes/*.html >>docfiles.txt + +cat /dev/null >footer.html + +cat footerstart.txt >>footer.html +cat ../GIT-VERSION-FILE >>footer.html +cat footerend.txt >>footer.html + +cat docfiles.txt | xargs cat | wkhtmltopdf --book --footer-html footer.html --disable-external-links - git-doc.pdf diff --git a/Documentation/pagebreak.txt b/Documentation/pagebreak.txt new file mode 100644 index 0000000..fdaffd1 --- /dev/null +++ b/Documentation/pagebreak.txt @@ -0,0 +1 @@ +</p style="page-break-after: always"> -- 1.7.11.msysgit.1 --- Thomas -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html