Some checks failed
No response / noResponse (push) Has been cancelled
CI / Continuous releases (push) Has been cancelled
CI / test-dev (macos-latest) (push) Has been cancelled
CI / test-dev (ubuntu-latest) (push) Has been cancelled
CI / test-dev (windows-latest) (push) Has been cancelled
Maintenance / main (push) Has been cancelled
Scorecards supply-chain security / Scorecards analysis (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
35 lines
1.2 KiB
TypeScript
35 lines
1.2 KiB
TypeScript
import path from 'path';
|
|
import { LANGUAGES } from 'docs/config';
|
|
import { ProjectSettings } from '@mui-internal/api-docs-builder';
|
|
import findApiPages from '@mui-internal/api-docs-builder/utils/findApiPages';
|
|
import generateUtilityClass, { isGlobalState } from '@mui/utils/generateUtilityClass';
|
|
import { getJoyUiComponentInfo } from './getJoyUiComponentInfo';
|
|
|
|
export const projectSettings: ProjectSettings = {
|
|
output: {
|
|
apiManifestPath: path.join(process.cwd(), 'docs/data/joy/pagesApi.js'),
|
|
},
|
|
typeScriptProjects: [
|
|
{
|
|
name: 'joy',
|
|
rootPath: path.join(process.cwd(), 'packages/mui-joy'),
|
|
entryPointPath: 'src/index.ts',
|
|
},
|
|
],
|
|
getApiPages: () => findApiPages('docs/pages/joy-ui/api'),
|
|
getComponentInfo: getJoyUiComponentInfo,
|
|
translationLanguages: LANGUAGES,
|
|
skipComponent(filename: string) {
|
|
// Container's demo isn't ready
|
|
// GlobalStyles's demo isn't ready
|
|
return (
|
|
filename.match(
|
|
/(ThemeProvider|CssVarsProvider|Container|ColorInversion|GlobalStyles|InitColorSchemeScript)/,
|
|
) !== null
|
|
);
|
|
},
|
|
translationPagesDirectory: 'docs/translations/api-docs-joy',
|
|
generateClassName: generateUtilityClass,
|
|
isGlobalClassName: isGlobalState,
|
|
};
|