Skip to content

Commit

Permalink
🚧 Generate app docs
Browse files Browse the repository at this point in the history
Signed-off-by: mathieu.brunot <mathieu.brunot@monogramm.io>
  • Loading branch information
madmath03 committed Dec 14, 2019
1 parent 8f4d748 commit 7f85b54
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .travis/docker_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Empty file added docs/assets/.gitkeep
Empty file.
Empty file added docs/user/.gitkeep
Empty file.

0 comments on commit 7f85b54

Please sign in to comment.