mirror of
https://github.com/Cacti/documentation.git
synced 2026-10-23 03:26:44 +09:00
Fix up build process
- Fixed build script to correctly detect pandoc and lua requirements - Fixed lua script syntax
This commit is contained in:
1 parent
37196a02c0
commit
f9ca6d63e0
2 files changed
+11
-2
No files matched your search
+10
-1
@@ -18,7 +18,7 @@
|
||||
# Helper script to build HTML documentation from markdown source
|
||||
|
||||
# define script variables
|
||||
UTILS="python pip pandoc"
|
||||
UTILS="pandoc"
|
||||
ODIR="html"
|
||||
|
||||
# check if for required utilities
|
||||
@@ -41,6 +41,15 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# make sure pandoc has lua support
|
||||
pandoc --help | grep 'lua-filter' 1>/dev/null 2>&1
|
||||
if [ ${?} -gt 0 ]
|
||||
then
|
||||
echo "ERROR: Required LUA Filter support not found in Pandoc utility"
|
||||
echo " Make sure you have version 2.3.1 or higher installed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# determine base path of the repository
|
||||
BASE_PATH="$( cd "$(dirname "$0")" ; pwd -P | sed 's/\/bin//')"
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# Simple LUA function to be used by Pandoc when converting Markdown to HTML
|
||||
-- Simple LUA function to be used by Pandoc when converting Markdown to HTML
|
||||
function Link(el)
|
||||
el.target = string.gsub(el.target, "%.md", ".html")
|
||||
el.target = string.gsub(el.target, "README.html", "Table-of-Contents.html")
|
||||
|
||||
Reference in new issue
Block a user