Skip to content

Commit 7786bfb

Browse files
authored
fix: Updates readme generation for migration (#930)
This PR makes the following changes: *
1 parent d1364f4 commit 7786bfb

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

samples/new1.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# AUTHOR: Update these values!
1515
NAME="sample-name" # The name of the folder to create (for example "map-simple").
1616
REGION_TAG="maps_sample_name" # The region tag to use (for example "maps_map_simple").
17-
TITLE="Descriptive text for sample." # The title of the example.
17+
TITLE="A short description." # The title of the example.
1818
API_LOADER="api_loader_dynamic" # The type of loader to use (api_loader_dynamic or api_loader_default).
1919

2020
# Path to the source folder for the repo archive; substitute with your own path.
@@ -85,8 +85,9 @@ touch "${OUTPUT_DIR}/${NAME}/README.md"
8585
cat > "${OUTPUT_DIR}/${NAME}/README.md" << EOF
8686
# Google Maps JavaScript Sample
8787
88-
This sample is generated from @googlemaps/js-samples located at
89-
https://github.com/googlemaps-samples/js-api-samples.
88+
## ${NAME}
89+
90+
${TITLE}
9091
9192
## Setup
9293
@@ -132,4 +133,4 @@ git add "${OUTPUT_DIR}/${NAME}/index.html"
132133
git add "${OUTPUT_DIR}/${NAME}/style.css"
133134
git add "${OUTPUT_DIR}/${NAME}/package.json"
134135
git add "${OUTPUT_DIR}/${NAME}/tsconfig.json"
135-
git add "${OUTPUT_DIR}/${NAME}/README.md"
136+
git add "${OUTPUT_DIR}/${NAME}/README.md"

0 commit comments

Comments
 (0)