Skip to content

Commit a321006

Browse files
authored
Update generate-index.sh (#77)
1 parent a7ed233 commit a321006

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/generate-index.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ find "${SCRIPT_DIR}" -maxdepth 1 -mindepth 1 -type d | while read -r subdir; do
2727
DIR_NAME=$(basename "${subdir}")
2828

2929
# Construct the link.
30-
LINK_URL="${DIR_NAME}/samples/app/dist/"
30+
LINK_URL="/samples/${DIR_NAME}/app/dist/"
3131
LINK_TEXT="${DIR_NAME}"
3232

3333
# Create the list item.
@@ -43,4 +43,4 @@ echo "HTML file generated: ${OUTPUT_FILE}"
4343
echo "from ${SCRIPT_DIR}/${OUTPUT_FILE}"
4444
echo "to ${DIST_DIR}/${OUTPUT_FILE}"
4545

46-
cp "${PROJECT_ROOT}/${OUTPUT_FILE}" "${DIST_DIR}/${OUTPUT_FILE}"
46+
cp "${PROJECT_ROOT}/${OUTPUT_FILE}" "${DIST_DIR}/${OUTPUT_FILE}"

0 commit comments

Comments
 (0)