diff --git a/.DS_Store b/.DS_Store index b8b8c10..5c7b40a 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/bin/build.sh b/bin/build.sh index 1339b58..d457bca 100755 --- a/bin/build.sh +++ b/bin/build.sh @@ -194,7 +194,6 @@ if [ $? -ne 0 ]; then fi cd ../.. -exit 0 bin/doc.sh $VERSION diff --git a/bin/doc.sh b/bin/doc.sh index 8ed791a..7c81ac3 100755 --- a/bin/doc.sh +++ b/bin/doc.sh @@ -12,8 +12,8 @@ fi # tau_web # ------- -cd tau_sound/example -flutter build web +#cd tau_sound/example +#flutter build web cp privacy_policy.html doc/_site diff --git a/bin/doc2.sh b/bin/doc2.sh index cccc3d1..3319e94 100644 --- a/bin/doc2.sh +++ b/bin/doc2.sh @@ -16,13 +16,29 @@ cd +cp -a /tmp/toto_doc/api /tmp/toto_doc/_site/pages/tau-sound/api + +echo "Building Jekyll doc" +cd /tmp/toto_doc +rm home.md 2>/dev/null +rm -rf /tmp/toto_doc/tau_sound/example/ios/Pods +bundle config set --local path '~/vendor/bundle' +bundle install +bundle exec jekyll build +if [ $? -ne 0 ]; then + echo "Error" + exit -1 +fi + + +cd echo "patch css for Jekyll compatigility" sed -i "0,/^ overflow: hidden;$/s//overflow: auto;/" /tmp/toto_doc/_site/pages/tau-sound/api/static-assets/styles.css sed -i "s/^ background-color: inherit;$/ background-color: #2196F3;/" /tmp/toto_doc/_site/pages/tau-sound/api/static-assets/styles.css echo "Add Front matter on top of dartdoc pages" -for f in $(find /tmp/toto_doc/_site/pages/flutter-sound/api -name '*.html' ) +for f in $(find /tmp/toto_doc/_site/pages/tau-sound/api -name '*.html' ) do sed -i "1i ---" $f #gsed -i "1i toc: false" $f @@ -31,22 +47,7 @@ do sed -i "/^