infi.clickhouse_orm/scripts/docs2html.sh

14 lines
381 B
Bash
Raw Permalink Normal View History

2017-04-26 15:47:02 +03:00
mkdir -p ../htmldocs
find ./ -iname "*.md" -type f -exec sh -c 'echo "Converting ${0}"; pandoc "${0}" -s -o "../htmldocs/${0%.md}.html"' {} \;
2017-04-28 19:45:54 +03:00
echo "Converting README.md"
pandoc ../README.md -s -o "../htmldocs/README.html"
2017-04-28 19:03:34 +03:00
echo "Converting CHANGELOG.md"
pandoc ../CHANGELOG.md -s -o "../htmldocs/CHANGELOG.html"
2017-04-26 15:47:02 +03:00
echo "Fixing links"
sed -i 's/\.md/\.html/g' ../htmldocs/*.html