Skip to content

Commit

Permalink
docs: Use absolute paths for specifying templates
Browse files Browse the repository at this point in the history
This way, the documentation-generation scripts can be invoked from any
directory.

Signed-off-by: Jesse Haber-Kucharsky <jhaberku@scylladb.com>
Message-Id: <52d7700a0b6bfedfe2499b3d2d80442f64c4cce0.1543507802.git.jhaberku@scylladb.com>
  • Loading branch information
Jesse Haber-Kucharsky authored and avikivity committed Nov 29, 2018
1 parent 1511ae8 commit 7f8ace2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion doc/md2html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
#
# Copyright (C) 2018 ScyllaDB

dir=$(dirname "$0")

case `pandoc --version` in
"pandoc 1."*)
SMART_OPT=--smart
Expand All @@ -26,4 +28,4 @@ case `pandoc --version` in
SMART_OPT=
SMART_EXT=+smart
esac
pandoc --self-contained $SMART_OPT --toc -c doc/template.css --number-sections -f markdown+pandoc_title_block+implicit_header_references$SMART_EXT --highlight-style tango "$1" -o "$2"
pandoc --self-contained $SMART_OPT --toc -c ${dir}/template.css --number-sections -f markdown+pandoc_title_block+implicit_header_references$SMART_EXT --highlight-style tango "$1" -o "$2"
4 changes: 3 additions & 1 deletion doc/md2pdf
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,7 @@
#
# Copyright (C) 2018 ScyllaDB

pandoc -f markdown+pandoc_title_block+implicit_header_references --highlight-style tango --template=doc/template.tex "$1" -o "$2"
dir=$(dirname "$0")

pandoc -f markdown+pandoc_title_block+implicit_header_references --highlight-style tango --template=${dir}/template.tex "$1" -o "$2"

0 comments on commit 7f8ace2

Please sign in to comment.