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

[core] Clean up API docs builder config #132

Merged
Merged
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
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -439,5 +439,12 @@ module.exports = {
'import/prefer-default-export': 'off',
},
},
{
files: ['scripts/buildApiDocs/**/*'],
rules: {
'import/no-default-export': 'error',
'import/prefer-default-export': 'off',
},
},
],
};
2 changes: 1 addition & 1 deletion docs/pages/base-ui/api/form-control.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,6 @@
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-base/src/FormControl/FormControl.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-form-control/\">Form Control</a></li>\n<li><a href=\"/joy-ui/react-input/\">Input</a></li>\n<li><a href=\"/material-ui/react-checkbox/\">Checkbox</a></li>\n<li><a href=\"/material-ui/react-radio-button/\">Radio Group</a></li>\n<li><a href=\"/material-ui/react-switch/\">Switch</a></li>\n<li><a href=\"/material-ui/react-text-field/\">Text Field</a></li></ul>",
"demos": "<ul><li><a href=\"/base-ui/react-form-control/\">Form Control</a></li></ul>",
"cssComponent": false
}
2 changes: 1 addition & 1 deletion docs/pages/base-ui/api/snackbar.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,6 @@
"forwardsRefTo": "HTMLDivElement",
"filename": "/packages/mui-base/src/Snackbar/Snackbar.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-snackbar/\">Snackbar</a></li>\n<li><a href=\"/joy-ui/react-snackbar/\">Snackbar</a></li>\n<li><a href=\"/material-ui/react-snackbar/\">Snackbar</a></li></ul>",
"demos": "<ul><li><a href=\"/base-ui/react-snackbar/\">Snackbar</a></li></ul>",
"cssComponent": false
}
2 changes: 1 addition & 1 deletion docs/pages/base-ui/api/textarea-autosize.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"forwardsRefTo": "HTMLTextAreaElement",
"filename": "/packages/mui-base/src/TextareaAutosize/TextareaAutosize.tsx",
"inheritance": null,
"demos": "<ul><li><a href=\"/base-ui/react-textarea-autosize/\">Textarea Autosize</a></li>\n<li><a href=\"/material-ui/react-textarea-autosize/\">Textarea Autosize</a></li></ul>",
"demos": "<ul><li><a href=\"/base-ui/react-textarea-autosize/\">Textarea Autosize</a></li></ul>",
"cssComponent": false
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"release:publish:dry-run": "pnpm publish --recursive --tag latest --registry=\"http://localhost:4873/\"",
"release:tag": "node scripts/releaseTag.mjs",
"docs:api": "rimraf --glob ./docs/pages/**/api-docs ./docs/pages/**/api && pnpm docs:api:build",
"docs:api:build": "tsx --tsconfig ./scripts/buidApiDocs/tsconfig.json ./scripts/buidApiDocs/index.ts",
"docs:api:build": "tsx --tsconfig ./scripts/buildApiDocs/tsconfig.json ./scripts/buildApiDocs/index.ts",
"docs:build": "pnpm --filter docs build",
"docs:build-sw": "pnpm --filter docs build-sw",
"docs:deploy": "pnpm --filter docs run deploy",
Expand Down Expand Up @@ -83,7 +83,6 @@
"@babel/preset-typescript": "^7.23.3",
"@babel/register": "^7.23.7",
"@mnajdova/enzyme-adapter-react-18": "^0.2.0",
"@mui-internal/api-docs-builder-core": "workspace:^",
"@mui-internal/docs-utils": "^1.0.2",
"@mui/internal-markdown": "^1.0.0",
"@mui/internal-scripts": "^1.0.1",
Expand Down Expand Up @@ -117,6 +116,7 @@
"cpy-cli": "^5.0.0",
"cross-env": "^7.0.3",
"danger": "^11.3.1",
"docs": "workspace:^",
"enzyme": "^3.11.0",
"eslint": "^8.57.0",
"eslint-config-airbnb": "^19.0.4",
Expand Down
6 changes: 0 additions & 6 deletions packages/api-docs-builder-core/.eslintrc.js

This file was deleted.

This file was deleted.

This file was deleted.

23 changes: 0 additions & 23 deletions packages/api-docs-builder-core/baseUi/migratedBaseComponents.ts

This file was deleted.

31 changes: 0 additions & 31 deletions packages/api-docs-builder-core/package.json

This file was deleted.

5 changes: 0 additions & 5 deletions packages/api-docs-builder-core/tsconfig.json

This file was deleted.

101 changes: 3 additions & 98 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading