diff --git a/samples/new1.sh b/samples/new1.sh index 7b2ca495..6ac159aa 100755 --- a/samples/new1.sh +++ b/samples/new1.sh @@ -14,7 +14,7 @@ # AUTHOR: Update these values! NAME="sample-name" # The name of the folder to create (for example "map-simple"). REGION_TAG="maps_sample_name" # The region tag to use (for example "maps_map_simple"). -TITLE="Descriptive text for sample." # The title of the example. +TITLE="A short description." # The title of the example. API_LOADER="api_loader_dynamic" # The type of loader to use (api_loader_dynamic or api_loader_default). # Path to the source folder for the repo archive; substitute with your own path. @@ -85,8 +85,9 @@ touch "${OUTPUT_DIR}/${NAME}/README.md" cat > "${OUTPUT_DIR}/${NAME}/README.md" << EOF # Google Maps JavaScript Sample -This sample is generated from @googlemaps/js-samples located at -https://github.com/googlemaps-samples/js-api-samples. +## ${NAME} + +${TITLE} ## Setup @@ -132,4 +133,4 @@ git add "${OUTPUT_DIR}/${NAME}/index.html" git add "${OUTPUT_DIR}/${NAME}/style.css" git add "${OUTPUT_DIR}/${NAME}/package.json" git add "${OUTPUT_DIR}/${NAME}/tsconfig.json" -git add "${OUTPUT_DIR}/${NAME}/README.md" \ No newline at end of file +git add "${OUTPUT_DIR}/${NAME}/README.md"