Don't handle gitbook docs.
This commit is contained in:
parent
5fbd688394
commit
86c34ba10c
2000
SUMMARY.md
2000
SUMMARY.md
File diff suppressed because it is too large
Load Diff
10
convert.sh
10
convert.sh
|
@ -15,7 +15,6 @@ SOURCE_DIR="${PWD}/src"
|
||||||
OUTPUT_DIR="${PWD}/html"
|
OUTPUT_DIR="${PWD}/html"
|
||||||
INDEX_MD="${OUTPUT_DIR}/index.md"
|
INDEX_MD="${OUTPUT_DIR}/index.md"
|
||||||
README_MD="${PWD}/README.md"
|
README_MD="${PWD}/README.md"
|
||||||
GITBOOK_MD="${PWD}/SUMMARY.md"
|
|
||||||
|
|
||||||
[ -d ${OUTPUT_DIR} ] || mkdir -p ${OUTPUT_DIR}
|
[ -d ${OUTPUT_DIR} ] || mkdir -p ${OUTPUT_DIR}
|
||||||
|
|
||||||
|
@ -41,11 +40,6 @@ all_chapter_dirs="installation \
|
||||||
troubleshooting \
|
troubleshooting \
|
||||||
faq"
|
faq"
|
||||||
|
|
||||||
#echo "* Found chapters:"
|
|
||||||
#for dl in ${all_chapter_dirs}; do
|
|
||||||
# echo " - $dl"
|
|
||||||
#done
|
|
||||||
|
|
||||||
# Get chapter info
|
# Get chapter info
|
||||||
# - title: _title.md
|
# - title: _title.md
|
||||||
# - summary: _summary.md
|
# - summary: _summary.md
|
||||||
|
@ -74,12 +68,10 @@ for chapter_dir in ${all_chapter_dirs}; do
|
||||||
_chapter_title="$(cat ${_title_md})"
|
_chapter_title="$(cat ${_title_md})"
|
||||||
echo -e "# ${_chapter_title}" >> ${INDEX_MD}
|
echo -e "# ${_chapter_title}" >> ${INDEX_MD}
|
||||||
echo -e "# ${_chapter_title}" >> ${README_MD}
|
echo -e "# ${_chapter_title}" >> ${README_MD}
|
||||||
echo -e "# ${_chapter_title}" >> ${GITBOOK_MD}
|
|
||||||
|
|
||||||
if [ -f ${_summary_md} ]; then
|
if [ -f ${_summary_md} ]; then
|
||||||
echo -e "$(cat ${_title_md})" >> ${INDEX_MD}
|
echo -e "$(cat ${_title_md})" >> ${INDEX_MD}
|
||||||
echo -e "$(cat ${_title_md})" >> ${README_MD}
|
echo -e "$(cat ${_title_md})" >> ${README_MD}
|
||||||
echo -e "$(cat ${_title_md})" >> ${GITBOOK_MD}
|
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -110,8 +102,6 @@ for chapter_dir in ${all_chapter_dirs}; do
|
||||||
|
|
||||||
# 'src/default/' is path to view source file on bitbucket.org
|
# 'src/default/' is path to view source file on bitbucket.org
|
||||||
echo "* [${_article_title}](src/default/${article_file_without_prefix_path})" >> ${README_MD}
|
echo "* [${_article_title}](src/default/${article_file_without_prefix_path})" >> ${README_MD}
|
||||||
#echo "* [${_article_title}](${article_file_without_prefix})" >> ${GITBOOK_MD}
|
|
||||||
echo "* [${_article_title}](${article_file_basename})" >> ${GITBOOK_MD}
|
|
||||||
|
|
||||||
#${CMD_CONVERT} ${article_file} ${_output_chapter_dir} \
|
#${CMD_CONVERT} ${article_file} ${_output_chapter_dir} \
|
||||||
${CMD_CONVERT} ${article_file} ${OUTPUT_DIR} \
|
${CMD_CONVERT} ${article_file} ${OUTPUT_DIR} \
|
||||||
|
|
Loading…
Reference in New Issue