diff --git a/.travis/docker_test.sh b/.travis/docker_test.sh index b9cda178..c229be89 100644 --- a/.travis/docker_test.sh +++ b/.travis/docker_test.sh @@ -127,14 +127,15 @@ fi # TODO Generate docs #bench build-docs --help -bench --help -#echo "Generating docs for '${FRAPPE_APP_TO_TEST}' app..." -#if [ "${TEST_VERSION}" = "10" ] || [ "${TEST_VERSION}" = "11" ]; then -# bench build-docs --target ${FRAPPE_APP_TO_TEST} ${FRAPPE_APP_TO_TEST} -#else -# bench write-docs --target ${FRAPPE_APP_TO_TEST} ${FRAPPE_APP_TO_TEST} -#fi +echo "Generating docs for '${FRAPPE_APP_TO_TEST}' app..." +if [ "${TEST_VERSION}" = "10" ] || [ "${TEST_VERSION}" = "11" ]; then + set +e + bench build-docs --target ${FRAPPE_APP_TO_TEST} ${FRAPPE_APP_TO_TEST} + set -e +else + echo "Building docs is not available for this version of Frappe (${TEST_VERSION})" +fi ## TODO Check docs generated properly diff --git a/docs/README.md b/docs/README.md index 7e9e1917..e750177f 100644 --- a/docs/README.md +++ b/docs/README.md @@ -4,6 +4,7 @@ This directory contains the code for the **ERPNext OCR** docs site, [monogramm.g References: * [Publish Your Project Documentation with GitHub Pages](https://github.blog/2016-08-22-publish-your-project-documentation-with-github-pages/) +* [Generation Documentation Website for your App](https://frappe.io/docs/user/en/guides/app-development/generating-docs) ## Contributing diff --git a/docs/assets/.gitkeep b/docs/assets/.gitkeep new file mode 100644 index 00000000..e69de29b diff --git a/docs/user/.gitkeep b/docs/user/.gitkeep new file mode 100644 index 00000000..e69de29b