From e21f8b0743349984e19f46489dabd4c2d3f6cc0f Mon Sep 17 00:00:00 2001 From: Castro0o Date: Sun, 18 Feb 2018 14:25:17 +0100 Subject: [PATCH] change to readme --- README.md | 6 ++++-- cgi-bin/pandoc.cgi | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 71a0bb0..aa655d8 100644 --- a/README.md +++ b/README.md @@ -31,9 +31,11 @@ chmod +x cgi-bin/ ## update CGI BEcuase the CGI folder happens to be in a a different location from the HYPE folder, we need to update its files after each git pull with: -`ln -sf cgi-bin/* /var/www/cgi-bin/hype/` +`ln -sf cgi-bin/* /path/to/hype/dir/in/cgi-bin` -you be in the HYPe folder and create the file links inside the webserver's cgi-bin, in my case `/var/www/cgi-bin/hype/` +xpub tools cgi-bin: /var/www/tools.xpub.nl/cgi-bin/hybrideditor + +you be in the HYPe folder and create the file links inside the webserver's cgi-bin, in my case `/path/to/hype/dir/in/cgi-bin` ## License diff --git a/cgi-bin/pandoc.cgi b/cgi-bin/pandoc.cgi index d9eeb45..f304d0e 100755 --- a/cgi-bin/pandoc.cgi +++ b/cgi-bin/pandoc.cgi @@ -113,8 +113,9 @@ if method == "POST": print #p = subprocess.check_output('echo "{2}"|pandoc --from {0} --to {1} '.format(from_format, to_format, '#foo'), shell=True, stderr=subprocess.STDOUT) - #print 'to_format', to_format +# print 'to_format', to_format if to_format == 'icml': # icml needs solo flag: -s + #print 'ICML:', to_format cmd = "{} --from {} --to {} -s".format(PANDOC, from_format, to_format) else: cmd = "{} --from {} --to {}".format(PANDOC, from_format, to_format)