Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/styleguidist/react-styleguidist
/ functions
Functions
497 in github.com/styleguidist/react-styleguidist
⨍
Functions
497
◇
Types & classes
209
↓ 148 callers
Function
test
(val)
test/deabsdeepSerializer.js:79
↓ 89 callers
Function
render
(methods: string[])
src/client/rsg-components/Methods/Methods.spec.tsx:26
↓ 45 callers
Function
getConfig
* Read, parse and validate config file or passed config. * * @param {object|string} [config] All config options or config file name or nothing. * @
src/scripts/config.ts:36
↓ 41 callers
Method
render
()
src/client/rsg-components/Styled/Styled.tsx:39
↓ 33 callers
Function
getText
(node: { innerHTML: string })
src/client/rsg-components/Props/Props.spec.tsx:10
↓ 33 callers
Function
sanitizeConfig
( config: T, schema: Record<keyof T, ConfigSchemaOptions<T>>, rootDir: string )
src/scripts/utils/sanitizeConfig.ts:58
↓ 30 callers
Method
get
(key: string)
src/typings/dependencies/react-docgen.ts:11
↓ 23 callers
Function
renderJs
(propTypes: string[], defaultProps: string[] = [])
src/client/rsg-components/Props/Props.spec.tsx:35
↓ 22 callers
Function
getUrl
( { name, slug, example, anchor, isolated, nochrome, absolute, hashPath, useSlugAsIdParam,
src/client/utils/getUrl.ts:79
↓ 19 callers
Function
makeWebpackConfig
* Return Styleguidist Webpack config. * * @param {string} [env=production] 'production' or 'development'. * @return {object}
src/scripts/index.esm.ts:63
↓ 18 callers
Function
getImports
(code: string)
src/loaders/utils/getImports.ts:8
↓ 16 callers
Method
render
()
src/client/rsg-components/TableOfContents/TableOfContents.tsx:89
↓ 15 callers
Function
expectSnapshotToMatch
(markdown: string)
src/client/rsg-components/Markdown/Markdown.spec.tsx:7
↓ 15 callers
Function
getProps
(doc: DocumentationObject, filepath?: string)
src/loaders/utils/getProps.ts:58
↓ 14 callers
Function
getComponentFiles
( components?: string | string[] | (() => string[]) | undefined, rootDir?: string, ignore?: string[] )
src/loaders/utils/getComponentFiles.ts:40
↓ 12 callers
Method
error
(msg: string)
src/typings/dependencies/glogg.ts:6
↓ 11 callers
Function
getRouteData
( sections: Rsg.Section[], hash: string, pagePerSection = false )
src/client/utils/getRouteData.ts:22
↓ 10 callers
Function
compileCode
( code: string, compilerConfig: TransformOptions, onError?: (err: Error) => void )
src/client/utils/compileCode.ts:15
↓ 10 callers
Function
deabs
(x: string[])
src/loaders/utils/__tests__/getComponentFiles.spec.ts:11
↓ 10 callers
Function
getNameFromFilePath
(filePath: string)
src/loaders/utils/getNameFromFilePath.ts:12
↓ 10 callers
Function
transpileImports
(code: string)
src/client/utils/transpileImports.ts:10
↓ 9 callers
Function
generate
(keys: string[], dep: string, base: string, fn: string)
src/client/utils/rewriteImports.ts:17
↓ 9 callers
Function
getQueryOptions
(options = {})
src/loaders/__tests__/examples-loader.spec.ts:17
↓ 9 callers
Function
parseExample
( content: string, lang?: string | null, modifiers?: string, updateExample: (example: Omit<Rsg.CodeExample
src/loaders/utils/parseExample.ts:13
↓ 9 callers
Function
requireIt
(filepath: string)
src/loaders/utils/requireIt.ts:10
↓ 8 callers
Function
chunkify
( markdown: string, updateExample?: (example: Omit<Rsg.CodeExample, 'type'>) => Omit<Rsg.CodeExample, 'type'
src/loaders/utils/chunkify.ts:22
↓ 8 callers
Function
getPageTitle
( sections: Rsg.Section[], baseTitle: string, displayMode: string )
src/client/utils/getPageTitle.ts:16
↓ 8 callers
Function
hasInHash
(hash: string, search: string)
src/client/utils/handleHash.ts:31
↓ 8 callers
Function
makeProp
( name: string, required = false, defaultValue: any = undefined, type: PropTypeDescriptor = { name: 'strin
src/loaders/utils/__tests__/sortProps.spec.ts:4
↓ 8 callers
Function
mergeWebpackConfig
( baseConfig: MetaConfig, userConfig: MetaConfig, env = 'production' )
src/scripts/utils/mergeWebpackConfig.ts:48
↓ 8 callers
Method
warn
(msg: string)
src/typings/dependencies/glogg.ts:5
↓ 7 callers
Function
createServer
( config: Rsg.SanitizedStyleguidistConfig, env: 'development' | 'production' | 'none' )
src/scripts/create-server.ts:6
↓ 7 callers
Function
getFilterRegExp
(query: string)
src/client/utils/getFilterRegExp.ts:7
↓ 7 callers
Function
getInfoFromHash
( hash: string )
src/client/utils/getInfoFromHash.ts:16
↓ 7 callers
Function
scale
(value: number)
examples/styled-components/src/theme.ts:3
↓ 7 callers
Function
splitExampleCode
(code: string)
src/client/utils/splitExampleCode.ts:18
↓ 7 callers
Function
testComponent
(name: string)
src/scripts/__tests__/config.spec.ts:6
↓ 6 callers
Function
deabsDeep
* Recursively replace absolute paths in object keys and values or in array values with a “~”. * * @param {object} obj * @param {object} [options]
test/deabsdeepSerializer.js:17
↓ 6 callers
Method
debug
(msg: string)
src/typings/dependencies/glogg.ts:3
↓ 6 callers
Function
getClasses
(plugins: WebpackPlugin[] = [], name: string)
src/scripts/__tests__/make-webpack-config.spec.ts:22
↓ 6 callers
Method
getExampleFilename
(componentPath: string)
src/typings/RsgStyleguidistConfig.ts:41
↓ 6 callers
Function
getHash
(hash: string, prependHash?: string)
src/client/utils/handleHash.ts:42
↓ 6 callers
Function
getSections
( sections: Rsg.ConfigSection[], config: Rsg.SanitizedStyleguidistConfig, parentDepth?: number )
src/loaders/utils/getSections.ts:59
↓ 6 callers
Method
on
(event: string | symbol, listener: (...args: any[]) => void)
src/typings/dependencies/glogg.ts:7
↓ 6 callers
Function
processComponents
( components: Rsg.Component[], { useRouterLinks, useHashId, hashPath }: HrefOptions )
src/client/utils/processComponents.ts:17
↓ 6 callers
Function
processSection
( section: Rsg.ConfigSection, config: Rsg.SanitizedStyleguidistConfig, parentDepth?: number )
src/loaders/utils/getSections.ts:75
↓ 6 callers
Method
render
()
src/client/rsg-components/Preview/Preview.tsx:133
↓ 6 callers
Function
renderComponent
(content = 'tooltip', placement?: TooltipPlacement)
src/client/rsg-components/Tooltip/Tooltip.spec.tsx:5
↓ 6 callers
Function
setupLogger
( methods?: Record<string, (message: string) => void>, verbose?: boolean, defaults?: Record<string, (messag
src/scripts/logger.ts:26
↓ 5 callers
Function
filterComponentsByName
( components: Rsg.Component[], query: string )
src/client/utils/filterComponentsByName.ts:11
↓ 5 callers
Function
findSection
( sections: Rsg.Section[], name: string )
src/client/utils/findSection.ts:11
↓ 5 callers
Function
findUserWebpackConfig
(resolve?: (input: string) => string)
src/scripts/utils/findUserWebpackConfig.ts:20
↓ 5 callers
Function
getComponent
(module: Module, name?: string)
src/client/utils/getComponent.ts:16
↓ 5 callers
Function
getExamples
( file: string, displayName: string, examplesFile?: string | false, defaultExample?: string | false )
src/loaders/utils/getExamples.ts:12
↓ 5 callers
Function
getType
(prop: PropDescriptor)
src/client/rsg-components/Props/util.ts:21
↓ 5 callers
Function
highlightCode
(code: string, lang?: string)
src/loaders/utils/highlightCode.ts:33
↓ 5 callers
Function
renderStyleguide
( styleguide: StyleguideObject, codeRevision: number, loc: { hash: string; pathname: string; search: string
src/client/utils/renderStyleguide.tsx:25
↓ 5 callers
Function
unquote
(string?: string)
src/client/rsg-components/Props/util.ts:6
↓ 5 callers
Function
useStyleGuideContext
()
src/client/rsg-components/Context/Context.ts:27
↓ 4 callers
Function
filterSectionsByName
( sections: Rsg.TOCItem[], query: string )
src/client/utils/filterSectionsByName.ts:12
↓ 4 callers
Function
format
(message: string)
src/scripts/logger.ts:9
↓ 4 callers
Function
getHashAsArray
(hash: string, prependHash?: string)
src/client/utils/handleHash.ts:53
↓ 4 callers
Function
getMarkdown
(props: TagProps)
src/client/rsg-components/JsDoc/JsDoc.tsx:21
↓ 4 callers
Function
getParameterByName
(hash: string, name: string)
src/client/utils/handleHash.ts:66
↓ 4 callers
Method
once
(actionName: string, action: (msg: string) => void)
src/typings/dependencies/glogg.ts:8
↓ 4 callers
Function
printErrorWithLink
* @param {string} message * @param {string} linkTitle * @param {string} linkUrl
src/bin/styleguidist.js:223
↓ 4 callers
Function
processSections
( sections: Rsg.Section[], { useRouterLinks, useHashId = false, hashPath = [] }: HrefOptions )
src/client/utils/processSections.ts:11
↓ 4 callers
Function
renderShape
(props: Record<string, PropDescriptor>)
src/client/rsg-components/Props/renderExtra.tsx:43
↓ 4 callers
Function
sortProps
* Sorts an array of properties by their 'required' property first and 'name' * property second. * * @param {array} props * @return {array} Sorted
src/loaders/utils/sortProps.ts:11
↓ 3 callers
Function
absolutize
(filepath: string)
src/loaders/examples-loader.ts:16
↓ 3 callers
Function
filterComponentsInSectionsByExactName
( sections: Rsg.Section[], name: string, recursive: boolean )
src/client/utils/filterComponentsInSectionsByExactName.ts:12
↓ 3 callers
Function
getAst
(code: string)
src/client/utils/getAst.ts:15
↓ 3 callers
Function
getAst
( code: string, plugins: ((BaseParser: typeof Parser) => typeof Parser)[] = [] )
src/loaders/utils/getAst.ts:14
↓ 3 callers
Function
getComponentFilesFromSections
( sections: Rsg.ConfigSection[], rootDir?: string, ignore?: string[] )
src/loaders/utils/getComponentFilesFromSections.ts:12
↓ 3 callers
Function
getDefaultWebpackConfig
()
src/scripts/__tests__/index.esm.spec.ts:9
↓ 3 callers
Function
getDoctrineTags
(documentation: Annotation)
src/loaders/utils/getProps.ts:30
↓ 3 callers
Function
highlightCodeInMarkdown
(markdown: string)
src/loaders/utils/highlightCodeInMarkdown.ts:19
↓ 3 callers
Method
info
(msg: string)
src/typings/dependencies/glogg.ts:4
↓ 3 callers
Function
propsToArray
(props: any)
src/client/rsg-components/Props/Props.spec.tsx:8
↓ 3 callers
Method
render
()
src/client/rsg-components/Wrapper/Wrapper.ts:18
↓ 3 callers
Function
renderType
(type: ExtendedPropTypeDescriptor)
src/client/rsg-components/Props/renderType.tsx:12
↓ 3 callers
Function
showSpaces
(string?: string)
src/client/rsg-components/Props/util.ts:44
↓ 3 callers
Function
verboseLog
* @param {string} header * @param {object} object
src/bin/styleguidist.js:337
↓ 2 callers
Function
absolutize
(files: string[])
src/loaders/utils/__tests__/getComponentFiles.spec.ts:24
↓ 2 callers
Function
alias
(key: string)
src/client/utils/rewriteImports.ts:7
↓ 2 callers
Method
apply
()
src/scripts/utils/__tests__/mergeWebpackConfig.spec.ts:7
↓ 2 callers
Function
compile
(code: string, config: TransformOptions)
src/client/utils/compileCode.ts:4
↓ 2 callers
Function
deabs
(s)
test/deabsdeepSerializer.js:23
↓ 2 callers
Function
deabs
(x: string[])
src/loaders/utils/__tests__/getComponentFilesFromSections.spec.ts:26
↓ 2 callers
Function
evalInContext
( header: string, require: (module: string) => any, code: string )
src/loaders/utils/client/evalInContext.ts:13
↓ 2 callers
Method
executeCode
()
src/client/rsg-components/Preview/Preview.tsx:77
↓ 2 callers
Function
expandDefaultComponent
(source: string, componentName: string)
src/loaders/utils/expandDefaultComponent.ts:11
↓ 2 callers
Function
filterComponentExamples
( component: Rsg.Component, index: number )
src/client/utils/filterComponentExamples.ts:12
↓ 2 callers
Function
filterComponentsByExactName
( components: Rsg.Component[], name: string )
src/client/utils/filterComponentsByExactName.ts:10
↓ 2 callers
Function
filterComponentsWithExample
( sections: Rsg.LoaderSection[] )
src/loaders/utils/filterComponentsWithExample.ts:9
↓ 2 callers
Function
filterSectionExamples
(section: Rsg.Section, index = -1)
src/client/utils/filterSectionExamples.ts:11
↓ 2 callers
Function
findFileCaseInsensitive
(filepath: string)
src/scripts/utils/findFileCaseInsensitive.ts:13
↓ 2 callers
Function
getAllContentPages
( sections: Rsg.LoaderSection[] )
src/loaders/utils/getAllContentPages.ts:9
↓ 2 callers
Method
getComponentPathLine
(componentPath: string)
src/typings/RsgStyleguidistConfig.ts:40
↓ 2 callers
Function
getComponentPatternsFromSections
(sections: Rsg.ConfigSection[])
src/loaders/utils/getComponentPatternsFromSections.ts:10
next →
1–100 of 497, ranked by callers