diff --git a/index.html b/index.html index dfabfe49..1845c85f 100644 --- a/index.html +++ b/index.html @@ -7,11 +7,11 @@

Maps JSAPI Samples

diff --git a/samples/app.sh b/samples/app.sh index 63202486..65e811b5 100644 --- a/samples/app.sh +++ b/samples/app.sh @@ -26,7 +26,7 @@ cp "${OUTPUT_DIR}/${NAME}/package.json" "${APP_DIR}/package.json" cp "${OUTPUT_DIR}/${NAME}/tsconfig.json" "${APP_DIR}/tsconfig.json" cp "${OUTPUT_DIR}/${NAME}/README.md" "${APP_DIR}/README.md" cp "${OUTPUT_DIR}/.env" "${APP_DIR}/.env" # TODO: Update the .env with the new API key. -cp -r "${OUTPUT_DIR}/${NAME}/dist/." "${MAIN_DIR}/" +cp -r "${OUTPUT_DIR}/${NAME}/dist" "${MAIN_DIR}" echo "OUTPUT_DIR ${OUTPUT_DIR}" echo "MAIN_DIR ${MAIN_DIR}" @@ -46,4 +46,7 @@ cat > "${APP_DIR}/.eslintsrc.json" << EOF "@typescript-eslint/no-unused-vars": 1 } } -EOF \ No newline at end of file +EOF + + +## TODO: Update this to copy \ No newline at end of file diff --git a/samples/generate-index.sh b/samples/generate-index.sh index fdbc233d..08104ba0 100644 --- a/samples/generate-index.sh +++ b/samples/generate-index.sh @@ -2,6 +2,8 @@ # Generate a new index.html for Firebase App Hosting. +#https://maps-docs-team.web.app/samples/place-autocomplete-map/ + SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" # Script directory (/samples) PROJECT_ROOT=$(dirname "$SCRIPT_DIR") # Get the parent directory (js-api-samples) DIST_DIR="$PROJECT_ROOT/dist" @@ -27,7 +29,7 @@ find "${SCRIPT_DIR}" -maxdepth 1 -mindepth 1 -type d | while read -r subdir; do DIR_NAME=$(basename "${subdir}") # Construct the link. -LINK_URL="/samples/${DIR_NAME}/app/dist/" +LINK_URL="/samples/${DIR_NAME}/dist" LINK_TEXT="${DIR_NAME}" # Create the list item.