Skip to content

Commit

Permalink
Fix the Prepare docs site configuration step
Browse files Browse the repository at this point in the history
- Remove unneeded `cd`s
- Use the correct version name in the `config.json` prepared for the
  Docusaurus site
  • Loading branch information
ptgott committed Dec 16, 2024
1 parent f773585 commit a52e488
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/doc-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,10 @@ jobs:
run: |
echo "" > .gitmodules
rm -rf content/*
cd content || exit 1
# Rather than using a submodule, copy the teleport source into the
# content directory.
cp -r "$GITHUB_WORKSPACE/teleport" "$GITHUB_WORKSPACE/docs/content/current"
cd "$GITHUB_WORKSPACE/docs" || exit 1
jq -nr --arg version "$BRANCH" '{"versions": [{"name": $version,"branch": $version, "deprecated": false, "isDefault": true }]}' > config.json
jq -nr --arg version "current" '{"versions": [{"name": $version,"branch": $version,"deprecated": false,"isDefault": true}]}' > config.json
NEW_PACKAGE_JSON=$(jq '.scripts."git-update" = "echo Skipping submodule update"' package.json);
NEW_PACKAGE_JSON=$(jq '.scripts."prepare-sanity-data" = "echo Using pre-populated Sanity data"' <<< "$NEW_PACKAGE_JSON");
echo "$NEW_PACKAGE_JSON" > package.json;
Expand Down

0 comments on commit a52e488

Please sign in to comment.