mirror of
https://github.com/alvierahman90/gronk.git
synced 2024-11-22 07:19:53 +00:00
fix issues
This commit is contained in:
parent
f1ac9fb028
commit
e2f17c8367
2
Makefile
2
Makefile
@ -1,5 +1,5 @@
|
|||||||
install:
|
install:
|
||||||
cp notes2web/usr/local/bin
|
cp notes2web /usr/local/bin
|
||||||
mkdir -p /opt/notes2web
|
mkdir -p /opt/notes2web
|
||||||
cp -r templates /opt/notes2web
|
cp -r templates /opt/notes2web
|
||||||
cp styles.css /opt/notes2web
|
cp styles.css /opt/notes2web
|
||||||
|
@ -8,7 +8,7 @@ function _render {
|
|||||||
--toc\
|
--toc\
|
||||||
--standalone\
|
--standalone\
|
||||||
-t html\
|
-t html\
|
||||||
--template /opt/gen_notes/templates/article.html\
|
--template /opt/notes2web/templates/article.html\
|
||||||
-o "$(dirname "$1")/index.html"\
|
-o "$(dirname "$1")/index.html"\
|
||||||
"$1"\
|
"$1"\
|
||||||
--mathjax
|
--mathjax
|
||||||
@ -18,7 +18,7 @@ function _renderindex {
|
|||||||
echo "rendering $1"
|
echo "rendering $1"
|
||||||
pandoc\
|
pandoc\
|
||||||
-t html\
|
-t html\
|
||||||
--template /opt/gen_notes/templates/index.html\
|
--template /opt/notes2web/templates/index.html\
|
||||||
-o index.html\
|
-o index.html\
|
||||||
"$1"
|
"$1"
|
||||||
}
|
}
|
||||||
@ -28,7 +28,7 @@ function _addtolist {
|
|||||||
pandoc\
|
pandoc\
|
||||||
-t html\
|
-t html\
|
||||||
-V "filepath=$(dirname "$1")"\
|
-V "filepath=$(dirname "$1")"\
|
||||||
--template /opt/gen_notes/templates/listitem.html\
|
--template /opt/notes2web/templates/listitem.html\
|
||||||
"$1"\
|
"$1"\
|
||||||
>> index.md
|
>> index.md
|
||||||
}
|
}
|
||||||
@ -57,4 +57,4 @@ done
|
|||||||
_renderindex index.md
|
_renderindex index.md
|
||||||
|
|
||||||
echo "copying styles.css to current directory"
|
echo "copying styles.css to current directory"
|
||||||
cp /opt/gen_notes/styles.css .
|
cp /opt/notes2web/styles.css .
|
||||||
|
Loading…
Reference in New Issue
Block a user