Skip to content

Commit aa6cd68

Browse files
committed
Move docs output to docs/dist
1 parent bda93f9 commit aa6cd68

12 files changed

Lines changed: 14 additions & 7 deletions

File tree

‎.circleci/config.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ aliases:
7373
- &docs-deploy-to-gh-pages
7474
name: Deploy documentation to GH Pages
7575
command: |
76-
cd ./docs
76+
cd ./docs/dist
7777
git init
7878
7979
git config credential.helper 'cache --timeout=120'

‎.gitignore‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ lib/ocaml
66
.vscode
77
package-lock.json
88
npm-debug.log
9-
docs/BsReactNative
9+
docs/dist

‎docs/index.html‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎docs/public/index.html‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<!DOCTYPE html>
2+
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>BsReactNative</title>
3+
<meta http-equiv="refresh" content="0;URL='./BsReactNative/index.html'" />
4+
</head></html>
File renamed without changes.

‎docs/scripts/build-docs.sh‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
PKG=BsReactNative
44

5-
DOCS=docs
5+
DOCS=docs/dist
66
LIB=./lib/bs/src
77
PAGES=./docs/pages
8+
PUBLIC=./docs/public/
89
ODOC=$(which odoc)
910
if [[ $? != 0 ]] ; then
1011
echo "Missing odoc, please look at the CONTRIBUTING.md guide"
@@ -50,3 +51,8 @@ for file in ${ODOC_FILES}; do
5051
${file}
5152
done
5253
echo ">> Done!"
54+
55+
echo "<< Adding static public files..."
56+
cp -r ${PUBLIC} ${DOCS}
57+
echo ">> Done!"
58+

0 commit comments

Comments
 (0)