Skip to content

Commit

Permalink
chore: Put example style guide in the static folder
Browse files Browse the repository at this point in the history
Docusaurus doesn't let us to access these files otherwise.

facebook/docusaurus#2833 (comment)

Ref styleguidist#1601
  • Loading branch information
sapegin committed Jun 10, 2020
1 parent 118e95a commit 80adf6f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions site/scripts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,11 @@ set -e
# Deploy to Netlify

EXAMPLE_DIR="../examples/basic"
PUBLIC_DIR="build"
STATIC_DIR="static"

echo "Node $(node -v)"
echo "npm $(npm -v)"

# Build the site
echo
echo "Building the site..."
npm run sync
npm run build

# Build a basic example
echo
echo "Building the basic example..."
Expand All @@ -27,5 +21,11 @@ cd -
# Copy to the public folder
echo
echo "Copying the basic example..."
mkdir -p "$PUBLIC_DIR/examples/basic"
cp -R $EXAMPLE_DIR/styleguide/* "$PUBLIC_DIR/examples/basic"
mkdir -p "$STATIC_DIR/examples/basic"
cp -R $EXAMPLE_DIR/styleguide/* "$STATIC_DIR/examples/basic"

# Build the site
echo
echo "Building the site..."
npm run sync
npm run build

0 comments on commit 80adf6f

Please sign in to comment.