From: Thomas Ackermann <th.acker66@arcor.de>
To: th.acker66@arcor.de, git@vger.kernel.org
Cc: philipoakley@iee.org, peff@peff.net, gitster@pobox.com,
th.acker66@arcor.de, git@drmicha.warpmail.net
Subject: [Patch v3 7/8] Create pdf from all html files
Date: Tue, 16 Oct 2012 19:27:25 +0200 (CEST) [thread overview]
Message-ID: <814705718.154269.1350408445020.JavaMail.ngmail@webmail15.arcor-online.net> (raw)
In-Reply-To: <1213313884.154031.1350407865830.JavaMail.ngmail@webmail15.arcor-online.net>
- 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@arcor.de>
---
Documentation/.gitignore | 1 +
| 4 ++++
| 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
--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>
--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
next prev parent reply other threads:[~2012-10-16 17:27 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1582223824.296627.1355560147565.JavaMail.ngmail@webmail08.arcor-online.net>
[not found] ` <1479174763.154268.1350408444997.JavaMail.ngmail@webmail15.arcor-online.net>
2012-10-16 17:17 ` [Patch v3 0/8] Create single PDF for all HTML files Thomas Ackermann
2012-10-16 17:20 ` [Patch v3 1/8] Split over-long synopsis in git-fetch-pack.txt into several lines Thomas Ackermann
2012-10-16 17:21 ` [Patch v3 2/8] Shorten two over-long lines in git-bisect-lk2009.txt by abbreviating some sha1 Thomas Ackermann
2012-10-16 17:23 ` [Patch v3 3/8] Change headline of technical/send-pack-pipeline.txt to not confuse its content with content from git-send-pack.txt Thomas Ackermann
2012-10-16 17:24 ` [Patch v3 4/8] Prerequisites for creating nice html for all files in Documentation/technical Thomas Ackermann
2012-10-16 17:25 ` [Patch v3 5/8] Prerequisites for creating nice html for all files in Documentation/howto Thomas Ackermann
2012-10-16 17:26 ` [Patch v3 6/8] Prerequisites for creating nice html for all files in Documentation/RelNotes Thomas Ackermann
2012-10-16 17:27 ` Thomas Ackermann [this message]
2012-10-16 17:28 ` [Patch v3 8/8] Wire everything into Makefile and Documentation/Makefile Thomas Ackermann
2012-10-16 22:11 ` [Patch v3 0/8] Create single PDF for all HTML files Junio C Hamano
2012-12-15 8:29 ` [Patch] Renumber list in api-command.txt Thomas Ackermann
2012-12-16 8:42 ` [PATCH] Remove misleading date form api-index-skel.txt Thomas Ackermann
2012-12-16 8:47 ` Andreas Schwab
2012-12-16 19:59 ` Junio C Hamano
2012-12-16 12:23 ` [PATCH] Move api-command.txt to the end of API list in api-index.txt Thomas Ackermann
2012-12-16 20:01 ` Junio C Hamano
2012-12-17 9:43 ` Aw: " Thomas Ackermann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=814705718.154269.1350408445020.JavaMail.ngmail@webmail15.arcor-online.net \
--to=th.acker66@arcor.de \
--cc=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=peff@peff.net \
--cc=philipoakley@iee.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).