diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index a1774a82..b5d98cdb 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -23,6 +23,8 @@ jobs: - name: Setup mdBook uses: peaceiris/actions-mdbook@v1 + with: + mdbook-version: '0.4.40' - name: Install node uses: actions/setup-node@v3 diff --git a/build-docs.sh b/build-docs.sh index 1901d8a0..ecfa8653 100755 --- a/build-docs.sh +++ b/build-docs.sh @@ -1,13 +1,13 @@ #!/bin/bash root_path="solidity/interfaces" -core_path="node_modules/@defi-wonderland/prophet-core-contracts" +core_path="node_modules/@defi-wonderland/prophet-core" # generate docs in a temporary directory temp_folder="technical-docs" -mkdir ./solidity/contracts/core -mkdir ./solidity/interfaces/core +mkdir -p ./solidity/contracts/core +mkdir -p ./solidity/interfaces/core cp -r $core_path/solidity/contracts/* ./solidity/contracts/core cp -r $core_path/solidity/interfaces/* ./solidity/interfaces/core