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
33 lines
1.1 KiB
TypeScript
33 lines
1.1 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 { getSystemComponentInfo } from './getSystemComponentInfo';
|
|
|
|
export const projectSettings: ProjectSettings = {
|
|
output: {
|
|
apiManifestPath: path.join(process.cwd(), 'docs/data/system/pagesApi.js'),
|
|
},
|
|
typeScriptProjects: [
|
|
{
|
|
name: 'system',
|
|
rootPath: path.join(process.cwd(), 'packages/mui-system'),
|
|
entryPointPath: 'src/index.d.ts',
|
|
},
|
|
],
|
|
getApiPages: () => findApiPages('docs/pages/system/api'),
|
|
getComponentInfo: getSystemComponentInfo,
|
|
translationLanguages: LANGUAGES,
|
|
skipComponent(filename) {
|
|
return (
|
|
filename.match(
|
|
/(ThemeProvider|CssVarsProvider|DefaultPropsProvider|GlobalStyles|InitColorSchemeScript)/,
|
|
) !== null
|
|
);
|
|
},
|
|
translationPagesDirectory: 'docs/translations/api-docs',
|
|
generateClassName: generateUtilityClass,
|
|
isGlobalClassName: isGlobalState,
|
|
};
|