diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 16292ef7..2146499d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,7 @@ on: mdx: required: true type: string + description: 'path to the MDX docs folder. Should be relative to the root of the repository, not starting with `./`, eg: `docs`' libname: required: true type: string @@ -67,7 +68,7 @@ jobs: set -ex docker run --rm --init \ - -v "$MDX":/app/docs \ + -v "./$MDX":/app/docs \ -e BASE_PATH \ -e DIST_DIR="$MDX/out$BASE_PATH" \ -e MDX \ @@ -90,7 +91,7 @@ jobs: -e THEME_IMPORTANT \ -e THEME_WARNING \ -e THEME_CAUTION \ - ghcr.io/pmndrs/docs:1 npm run build + ghcr.io/pmndrs/docs:2 npm run build env: BASE_PATH: ${{ steps.set-base-path.outputs.BASE_PATH }} MDX: ${{ inputs.mdx }} diff --git a/docs/getting-started/introduction.mdx b/docs/getting-started/introduction.mdx index 99ed05b9..32261307 100644 --- a/docs/getting-started/introduction.mdx +++ b/docs/getting-started/introduction.mdx @@ -180,7 +180,7 @@ $ ( export _PORT=60141 - export MDX=./docs + export MDX=docs export NEXT_PUBLIC_LIBNAME="React Three Fiber" export NEXT_PUBLIC_LIBNAME_SHORT="r3f" export BASE_PATH= @@ -205,7 +205,7 @@ $ ( rm -rf "$MDX/out" docker run --rm --init -it \ - -v "$MDX":/app/docs \ + -v "./$MDX":/app/docs \ -e MDX \ -e NEXT_PUBLIC_LIBNAME \ -e BASE_PATH \