Skip to content

Commit

Permalink
ci: bring back yarn build:docs
Browse files Browse the repository at this point in the history
  • Loading branch information
theo-mesnil committed Sep 18, 2023
1 parent 00a30d0 commit 6e21841
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
dist/
docs/out
docs/.next
website/out
website/.next
.cache/
node_modules/
.DS_Store
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
"scripts": {
"build:core": "./scripts/core.sh",
"build:docs": "lerna run doc --concurrency 2",
"build:packages": "lerna run build --ignore docs --ignore @welcome-ui/core",
"build:packages": "lerna run build --ignore docs --ignore website --ignore @welcome-ui/core",
"build:types": "lerna run types",
"build": "yarn webfont:build && yarn build:core && yarn build:packages && yarn build:types",
"build": "yarn webfont:build && yarn build:core && yarn build:packages && yarn build:types && yarn build:docs",
"check:audit": "/bin/bash -c 'yarn audit --level critical; [[ $? -ge 16 ]] && exit 1 || exit 0'",
"clean": "lerna clean",
"docs:build": "cd website && yarn && yarn next build",
"docs:build": "cd website && yarn && yarn build",
"docs:deploy": "yarn && yarn icons:build && yarn build && yarn docs:build",
"docs:dev": "cd website && yarn dev -p 3020",
"first:install": "yarn && yarn build && yarn icons:build",
"homerun": "yarn clean --yes && rm -rf node_modules/ docs/.next/ && yarn cache clean && yarn && yarn build && yarn start",
"homerun": "yarn clean --yes && rm -rf node_modules/ website/.next/ && yarn cache clean && yarn && yarn build && yarn start",
"icons:build": "lerna run build --scope @welcome-ui/icons",
"icons:collect": "node -r esm scripts/icons-collect.js",
"icons:optimize": "node -r esm scripts/icons-optimize.js",
Expand Down
2 changes: 1 addition & 1 deletion website/build-app/components/Mdx/Pre.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface PreProps {
children: React.ReactNode[]
}

export function Pre({ children, ...rest }: PreProps) {
export function Pre({ children }: PreProps) {
// @ts-ignore
const [code] = children[0].props.children
const [codeUpdated, setCodeUpdate] = React.useState(code)
Expand Down

0 comments on commit 6e21841

Please sign in to comment.