mirror of
https://github.com/gitpitch/gitpitch.git
synced 2024-04-18 07:30:55 +08:00
Updated decktape intergration.
This commit is contained in:
parent
0e30652b72
commit
be846c046d
|
@ -166,14 +166,9 @@ public class PrintService {
|
||||||
.absoluteURL(isEncrypted(),
|
.absoluteURL(isEncrypted(),
|
||||||
hostname());
|
hostname());
|
||||||
|
|
||||||
String[] cmd = {PDF_PHANTOM,
|
String deckTape = diskService.decktape();
|
||||||
PDF_DECKTAPE,
|
String[] cmd = { deckTape, REVEAL, slideshowUrl, filePath};
|
||||||
PDF_COMMAND,
|
int generated = shellService.exec(GIT_PDF, pp, branchPath, cmd);
|
||||||
slideshowUrl,
|
|
||||||
filePath};
|
|
||||||
Path dtapePath = Paths.get(diskService.decktape());
|
|
||||||
|
|
||||||
int generated = shellService.exec(GIT_PDF, pp, dtapePath, cmd);
|
|
||||||
|
|
||||||
if (generated != STATUS_OK) {
|
if (generated != STATUS_OK) {
|
||||||
log.warn("generatePDF: pp={}, generate status={}", pp, generated);
|
log.warn("generatePDF: pp={}, generate status={}", pp, generated);
|
||||||
|
@ -190,9 +185,7 @@ public class PrintService {
|
||||||
return runtime.config("gitpitch.hostname");
|
return runtime.config("gitpitch.hostname");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final String PDF_PHANTOM = "./bin/phantomjs";
|
private static final String REVEAL = "reveal";
|
||||||
private static final String PDF_DECKTAPE = "decktape.js";
|
|
||||||
private static final String PDF_COMMAND = "reveal";
|
|
||||||
private static final String PITCHME_PDF = "PITCHME.pdf";
|
private static final String PITCHME_PDF = "PITCHME.pdf";
|
||||||
private static final String PRINT_NO_FRAGS = "false";
|
private static final String PRINT_NO_FRAGS = "false";
|
||||||
private static final String GIT_PDF = "pdf";
|
private static final String GIT_PDF = "pdf";
|
||||||
|
|
|
@ -367,14 +367,17 @@ gitpitch {
|
||||||
storage {
|
storage {
|
||||||
#
|
#
|
||||||
# Directory indicated for this property must exist on disk.
|
# Directory indicated for this property must exist on disk.
|
||||||
# When setting a custom path for this directory
|
# When setting a custom path for this directory you must
|
||||||
# it is strongly recommended to use an absolute path.
|
# specify an absolute path.
|
||||||
#
|
#
|
||||||
home = "/tmp/gitpitch/swap"
|
home = "/tmp/gitpitch/swap"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#
|
||||||
|
# Absolute path to decktape executable.
|
||||||
|
#
|
||||||
decktape {
|
decktape {
|
||||||
home = "../decktape"
|
home = "/usr/local/bin/decktape"
|
||||||
}
|
}
|
||||||
|
|
||||||
offline {
|
offline {
|
||||||
|
|
5
deps/package.json
vendored
Normal file
5
deps/package.json
vendored
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
{
|
||||||
|
"dependencies": {
|
||||||
|
"decktape": "^2.6.1"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user