Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit c648492

Browse files
Merge pull request #249 from chakra-ui/fix/docs-generation
Fix/docs generation on Vercel
2 parents f06b2c5 + 46afd0c commit c648492

File tree

16 files changed

+1903
-975
lines changed

16 files changed

+1903
-975
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,5 @@ packages/*/node_modules
3434
lerna-debug.log
3535
.now
3636
config/.env
37-
packages/nuxt-chakra/.github
37+
packages/nuxt-chakra/.github
38+
packages/chakra-ui-docs/static/sw.js

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"mixpanel-browser": "^2.36.0",
115115
"node-fetch": "^2.6.0",
116116
"node-sass": "^4.13.1",
117-
"nuxt": "^2.12.2",
117+
"nuxt": "^2.13.3",
118118
"portal-vue": "^2.1.6",
119119
"prismjs": "^1.19.0",
120120
"register-service-worker": "^1.6.2",
@@ -141,7 +141,7 @@
141141
"@testing-library/user-event": "^10.0.0",
142142
"@testing-library/vue": "^4.1.0",
143143
"@vue/devtools": "^5.3.3",
144-
"babel-eslint": "^10.0.1",
144+
"babel-eslint": "^10.1.0",
145145
"bundlesize": "^0.18.0",
146146
"cross-env": "^7.0.2",
147147
"eslint-config-prettier": "^6.10.0",

packages/chakra-ui-docs/nuxt.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ export default {
4040
'css/page.css'
4141
],
4242
buildModules: [
43-
'@nuxtjs/eslint-module'
43+
'@nuxtjs/eslint-module',
44+
'modules/routes'
4445
],
4546
modules: [
4647
'@nuxtjs/emotion',
47-
'@nuxtjs/pwa',
48-
'modules/routes'
48+
'@nuxtjs/pwa'
4949
],
5050
router: {
5151
prefetchLinks: true

packages/chakra-ui-docs/package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"private": true,
66
"scripts": {
77
"dev": "nuxt",
8-
"build": "nuxt generate --max_old_space_size=8000",
8+
"build": "yarn build-static && yarn export",
99
"build-static": "nuxt build --target static",
1010
"export": "nuxt export",
1111
"start": "nuxt start --max_old_space_size=8000",
@@ -35,7 +35,6 @@
3535
"@nuxtjs/emotion": "^0.0.1",
3636
"@nuxtjs/now-builder": "^0.17.0",
3737
"@nuxtjs/pwa": "^3.0.0-0",
38-
"@nuxtjs/router": "^1.5.0",
3938
"copy-to-clipboard": "^3.3.1",
4039
"core-js": "2",
4140
"dotenv-defaults": "^1.1.1",
@@ -45,7 +44,7 @@
4544
"mdx-vue-loader": "^1.0.2",
4645
"mixpanel-browser": "^2.36.0",
4746
"node-sass": "^4.13.1",
48-
"nuxt": "^2.12.2",
47+
"nuxt": "^2.13.3",
4948
"prismjs": "^1.19.0",
5049
"sass-loader": "^8.0.2",
5150
"vue": "^2.6.11",
@@ -59,7 +58,7 @@
5958
"devDependencies": {
6059
"@nuxtjs/eslint-config": "^2.0.0",
6160
"@nuxtjs/eslint-module": "^1.0.0",
62-
"babel-eslint": "^10.0.1",
61+
"babel-eslint": "^10.1.0",
6362
"eslint": "^6.1.0",
6463
"eslint-config-prettier": "^6.10.0",
6564
"eslint-plugin-nuxt": ">=0.4.2",

packages/chakra-ui-docs/pages/alert.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The status of the alerts can be changed by passing the `status` prop. This affec
7373
```
7474

7575
### Custom Alert icons
76-
You can also use custom Alert icons by passing the name of the icon in the `name` prop of the `CAlertIcon`. <nuxt-link to="/icons">Click here</nuxt-link> to see how to add icons to your Chakra app.
76+
You can also use custom Alert icons by passing the name of the icon in the `name` prop of the `CAlertIcon`. [Click here](/icon) to see how to add icons to your Chakra app.
7777

7878
```vue live=true
7979
<c-alert>

packages/chakra-ui-docs/pages/breadcrumb.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,4 +182,4 @@ The `CBreadcrumbLink` composes the <nuxt-link to="/link">CLink</nuxt-link> compo
182182

183183
### BreadcrumbSeparator Props
184184

185-
The BreadcrumbSeparator composes the <nuxt-link to="/boc">CBox</nuxt-link> component so it accepts all CBox props.
185+
The BreadcrumbSeparator composes the <nuxt-link to="/box">CBox</nuxt-link> component so it accepts all CBox props.

packages/chakra-ui-docs/pages/button.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Use the `variant` prop to change the visual style of the `CButton`. You can set
7070

7171
### Button with Icon
7272

73-
You can add left and right icons to the Button component. See how to [add icons](#/icons) to your project.
73+
You can add left and right icons to the Button component. See how to [add icons](#/icon) to your project.
7474

7575
```vue live=true
7676
<c-button-group :spacing="4">

packages/chakra-ui-docs/pages/grid.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ time.
5151

5252
## Props
5353

54-
> `CGrid` composes the `CBox` component. So it accepts all Box props along with the related CSS grid props. See <nuxt-link to="/box#props">Box</nuxt-link> component for list of props
54+
> `CGrid` composes the `CBox` component. So it accepts all Box props along with the related CSS grid props. See [Box](/box#props) component for list of props

packages/chakra-ui-docs/pages/iconbutton.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ the button.
6565
### With custom icon
6666

6767
The `CIconButton` component accepts all icons accessible under `this.$chakra.icons`. You can
68-
see <nuxt-link to="/icons#using-an-icon-library">Icon</nuxt-link> to see how to add fontawesome icons
68+
see <nuxt-link to="/icon#using-an-icon-library">Icon</nuxt-link> to see how to add fontawesome icons
6969
to Chakra UI.
7070

7171
```vue live=true

0 commit comments

Comments
 (0)