You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

23 rivejä
586 B

  1. #!/bin/sh
  2. # Generates API documentation.
  3. # Requires documentationjs <https://documentation.js.org/>.
  4. # Usage:
  5. #
  6. # Regular: ./generate.sh
  7. # Include private methods: ./generate.sh private
  8. # Release: ./generate.sh release
  9. version=`git rev-parse --short=10 @`
  10. private=""
  11. if [ "$1" = "release" ]; then
  12. version=`cat ../../VERSION`
  13. elif [ "$1" = "private" ]; then
  14. private="-p"
  15. fi
  16. echo "Generating documentation..."
  17. documentation build ../../src/js/pannellum.js ../../src/js/libpannellum.js -o generated_docs -f html --project-name Pannellum --project-version $version -g $private