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(),
|
||||
hostname());
|
||||
|
||||
String[] cmd = {PDF_PHANTOM,
|
||||
PDF_DECKTAPE,
|
||||
PDF_COMMAND,
|
||||
slideshowUrl,
|
||||
filePath};
|
||||
Path dtapePath = Paths.get(diskService.decktape());
|
||||
|
||||
int generated = shellService.exec(GIT_PDF, pp, dtapePath, cmd);
|
||||
String deckTape = diskService.decktape();
|
||||
String[] cmd = { deckTape, REVEAL, slideshowUrl, filePath};
|
||||
int generated = shellService.exec(GIT_PDF, pp, branchPath, cmd);
|
||||
|
||||
if (generated != STATUS_OK) {
|
||||
log.warn("generatePDF: pp={}, generate status={}", pp, generated);
|
||||
|
@ -190,9 +185,7 @@ public class PrintService {
|
|||
return runtime.config("gitpitch.hostname");
|
||||
}
|
||||
|
||||
private static final String PDF_PHANTOM = "./bin/phantomjs";
|
||||
private static final String PDF_DECKTAPE = "decktape.js";
|
||||
private static final String PDF_COMMAND = "reveal";
|
||||
private static final String REVEAL = "reveal";
|
||||
private static final String PITCHME_PDF = "PITCHME.pdf";
|
||||
private static final String PRINT_NO_FRAGS = "false";
|
||||
private static final String GIT_PDF = "pdf";
|
||||
|
|
|
@ -367,14 +367,17 @@ gitpitch {
|
|||
storage {
|
||||
#
|
||||
# Directory indicated for this property must exist on disk.
|
||||
# When setting a custom path for this directory
|
||||
# it is strongly recommended to use an absolute path.
|
||||
# When setting a custom path for this directory you must
|
||||
# specify an absolute path.
|
||||
#
|
||||
home = "/tmp/gitpitch/swap"
|
||||
}
|
||||
|
||||
#
|
||||
# Absolute path to decktape executable.
|
||||
#
|
||||
decktape {
|
||||
home = "../decktape"
|
||||
home = "/usr/local/bin/decktape"
|
||||
}
|
||||
|
||||
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