Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changing inputs.mdx requirements #311

Closed
wants to merge 1 commit into from
Closed
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
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 \
Expand All @@ -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 }}
Expand Down
4 changes: 2 additions & 2 deletions docs/getting-started/introduction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand All @@ -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 \
Expand Down