diff --git a/core/help/docs-devsite.sh b/core/help/docs-devsite.sh index f9d19a1b3125..1bdd0c4b97fb 100755 --- a/core/help/docs-devsite.sh +++ b/core/help/docs-devsite.sh @@ -9,12 +9,12 @@ DOCS_DIR="$SCRIPT_DIR/docs" ROOT_DIR="$(cd "$SCRIPT_DIR/../.." && pwd)" # Copy root README.md to getting-started.md -mkdir -p $DOCS_DIR +mkdir -p "$DOCS_DIR" echo "Copying root README.md to help/docs/getting-started.md..." cp "$ROOT_DIR/README.md" "$DOCS_DIR/getting-started.md" # Generate toc.yaml -echo "Generating toc.yaml in $ABS_DIR..." +echo "Generating toc.yaml in $DOCS_DIR..." TOC_FILE="$DOCS_DIR/toc.yaml" # Write the top-level structure @@ -27,11 +27,11 @@ echo " name: 'Getting started'" >> "$TOC_FILE" echo " href: getting-started.md" >> "$TOC_FILE" # Find .md files and append to TOC -for f in $(ls "$ROOT_DIR"/docs/*.md | sort); do +for f in "$ROOT_DIR"/docs/*.md; do if [ -f "$f" ]; then filename=$(basename "$f") echo "Copying $filename to help/docs/$filename..." - cp $f $DOCS_DIR + cp "$f" "$DOCS_DIR" case "$filename" in "authentication.md") name="Authentication" diff --git a/core/help/package.json b/core/help/package.json index 3db87c4b4e73..1b2d60c4aa28 100644 --- a/core/help/package.json +++ b/core/help/package.json @@ -1,4 +1,6 @@ { + "name": "@google-cloud/help", + "private": true, "version": "1.0.0", "scripts": { "docs": "./docs-devsite.sh",