Skip to content

Commit

Permalink
Convert script to cjs file
Browse files Browse the repository at this point in the history
  • Loading branch information
sophialittlejohn committed Jan 13, 2025
1 parent 2f5fb40 commit ef531bd
Show file tree
Hide file tree
Showing 55 changed files with 4 additions and 3,626 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ async function main() {
const repoUrl = `https://${process.env.GITHUB_TOKEN}@github.com/org/sdk-docs.git`
await git.clone(repoUrl, './sdk-docs')

// TODO: remove: Change into the sdk-docs directory and checkout the branch
await git.cwd('./sdk-docs').checkout('generate-docs')

// Copy docs to the target location
await copyDocs(
'./docs', // source directory
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ jobs:
if: steps.commit_check.outputs.has_changes == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node ./.github/ci-scripts/update-sdk-docs.js
run: node ./.github/ci-scripts/update-sdk-docs.cjs
192 changes: 0 additions & 192 deletions docs/_README.md

This file was deleted.

68 changes: 0 additions & 68 deletions docs/_globals.md

This file was deleted.

Loading

0 comments on commit ef531bd

Please sign in to comment.