Merge branch 'master' of https://github.com/astaxie/build-web-application-with-golang
Conflicts: 2.2.md 2.3.md genepub.sh
This commit is contained in:
14
genepub.sh
14
genepub.sh
@@ -3,15 +3,19 @@ if [ ! -f build-web-application-with-golang ];then
|
||||
go build
|
||||
fi
|
||||
|
||||
if [ ! -d tmp ];then
|
||||
mkdir tmp
|
||||
if [ ! -d html ];then
|
||||
mkdir html
|
||||
fi
|
||||
cd tmp
|
||||
cd html
|
||||
cp ../*.md .
|
||||
for i in *.md;do
|
||||
#<23><><EFBFBD>¸<EFBFBD>ʽ<EFBFBD><CABD>md<6D>ļ<EFBFBD>
|
||||
sed -i '/^[#]\{1,\}/s!^\([#]\{1,\}\)\([^#]\{1,\}\)!\1 \2!' $i
|
||||
sed -i '/^[#]\{1,\}/s! ! !' $i
|
||||
#<23><><EFBFBD><EFBFBD>md<6D>ļ<EFBFBD><C4BC>е<EFBFBD>image src<72><63><EFBFBD><EFBFBD>
|
||||
sed -i '/!\[\](images/s#images\(.*\)?raw=true#../Images\1#' $i
|
||||
|
||||
done
|
||||
cd ../build-web-application-with-golang
|
||||
rm -rf *.md
|
||||
../build-web-application-with-golang >/dev/null
|
||||
rm *.md
|
||||
echo "<22>ļ<EFBFBD><C4BC>Ѿ<EFBFBD><D1BE><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9>sigil<69><6C><EFBFBD><EFBFBD>htmlĿ¼<C4BF>е<EFBFBD>html<6D>ļ<EFBFBD><C4BC><EFBFBD>imagesĿ¼<C4BF>е<EFBFBD>ͼƬ<CDBC>ļ<EFBFBD><C4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>epub"
|
||||
|
||||
Reference in New Issue
Block a user