entrypoint.sh 335 B

12345678910111213141516171819202122
  1. # /bin/sh
  2. if [ ! -d /docs ]; then
  3. docsify init ./docs
  4. docsify serve docs
  5. fi
  6. docsify init ./tmp-docs
  7. if [ ! -f /docs/index.html ]; then
  8. mv /tmp-docs/index.html /docs
  9. fi
  10. if [ ! -f /docs/README.md ]; then
  11. mv /tmp-docs/README.md /docs
  12. fi
  13. if [ ! -f /docs/.nojekyll ]; then
  14. mv /tmp-docs/.nojekyll /docs
  15. fi
  16. docsify serve docs