Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions core/help/docs-devsite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down
2 changes: 2 additions & 0 deletions core/help/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"name": "@google-cloud/help",
"private": true,
"version": "1.0.0",
"scripts": {
"docs": "./docs-devsite.sh",
Expand Down
Loading