MCPcopy Create free account

hub / github.com/contentlayerdev/contentlayer / functions

Functions636 in github.com/contentlayerdev/contentlayer

↓ 246 callersMethodmap
(fn: (item: T) => U)
packages/@contentlayer/utils/src/single-item.ts:4
↓ 52 callersMethodremove
(paths: readonly string[])
packages/@contentlayer/utils/src/node/fs-watcher.ts:112
↓ 45 callersFunctiondefineNestedType
( def: Thunk<NestedTypeDef<DefName> | NestedUnnamedTypeDef>, // NOTE we're not using the generic `DefName`
packages/@contentlayer/source-files/src/schema/defs/index.ts:95
↓ 43 callersFunctiondefineDocumentType
( def: Thunk<DocumentTypeDef<DefName>>, // NOTE we're not using the generic `DefName` here because it caus
packages/@contentlayer/source-files/src/schema/defs/index.ts:103
↓ 42 callersMethodfilter
(fn: (item: T) => boolean)
packages/@contentlayer/utils/src/single-item.ts:8
↓ 32 callersMethodadd
(paths: readonly string[])
packages/@contentlayer/utils/src/node/fs-watcher.ts:100
↓ 23 callersFunctionwithPrefix
(url: string | undefined, pathPrefix: string = '/')
examples/archive/playground-azimuth-contentful/src/utils/withPrefix.ts:3
↓ 23 callersFunctionwithPrefix
(url: string | undefined, pathPrefix: string = '/')
examples/archive/playground-azimuth-colocated/src/utils/withPrefix.ts:3
↓ 23 callersFunctionwithPrefix
(url: string | undefined, pathPrefix: string = '/')
examples/archive/playground-azimuth/src/utils/withPrefix.ts:3
↓ 20 callersFunctionerrorToString
(error: any)
packages/@contentlayer/utils/src/index.ts:69
↓ 17 callersFunctionparseFieldDataEff
(fieldType: TFieldType)
packages/@contentlayer/source-files/src/fetchData/mapping/index.ts:195
↓ 15 callersFunctionmakeSource
(args)
packages/@contentlayer/source-files/src/index.ts:78
↓ 14 callersFunctionaggregateFetchDataErrors
({ errors, documentCount, options, flags, shouldFail, schemaDef, contentDirPath, verbose, }: {
packages/@contentlayer/source-files/src/errors/aggregate.ts:87
↓ 13 callersFunctionrunTest
({ documentTypes, contentDirPath: contentDirPath_, relativeFilePath: relativeFilePath_, }: { documentT
packages/@contentlayer/source-files/src/__test__/fetchData/utils.ts:21
↓ 13 callersFunctionwithPrefix
(...path_: string[])
packages/@contentlayer/core/src/generation/generate-dotpkg.ts:173
↓ 12 callersFunctionmakeErrors
( countRecord: Partial<Record<FetchDataError.FetchDataError['_tag'], number>>, schemaDef: core.SchemaDef,
packages/@contentlayer/source-files/src/__test__/errors/utils.ts:59
↓ 11 callersFunctionhtmlToReact
(html: string | undefined)
examples/archive/playground-azimuth-contentful/src/utils/htmlToReact.tsx:10
↓ 11 callersFunctionhtmlToReact
(html: string | undefined)
examples/archive/playground-azimuth-colocated/src/utils/htmlToReact.tsx:10
↓ 11 callersFunctionhtmlToReact
(html: string | undefined)
examples/archive/playground-azimuth/src/utils/htmlToReact.tsx:10
↓ 10 callersFunctionunknownToRelativePosixFilePath
(path_: string, cwd?: AbsolutePosixFilePath)
packages/@contentlayer/utils/src/file-paths.ts:42
↓ 9 callersFunctiongetFromDocumentContext
(key: K)
packages/@contentlayer/source-files/src/fetchData/DocumentContext.ts:47
↓ 9 callersFunctionmarkdownify
(markdown)
examples/archive/playground-azimuth-contentful/src/utils/markdownify.js:8
↓ 9 callersFunctionmarkdownify
(markdown)
examples/archive/playground-azimuth-colocated/src/utils/markdownify.tsx:8
↓ 9 callersFunctionmarkdownify
(markdown)
examples/archive/playground-azimuth/src/utils/markdownify.js:8
↓ 9 callersMethodrm
(path: string, params: { force: true; recursive?: boolean })
packages/@contentlayer/utils/src/fs_.ts:89
↓ 8 callersFunctionfilePathJoin
(...paths: string[])
packages/@contentlayer/utils/src/file-paths.ts:80
↓ 8 callersFunctiongetFlattenedPath
(relativeFilePath: string)
packages/@contentlayer/source-files/src/fetchData/mapping/index.ts:97
↓ 8 callersFunctionrenderUnion
(typeNames: readonly string[])
packages/@contentlayer/core/src/generation/generate-types.ts:231
↓ 8 callersFunctiontestValue
({ type, expectedValue, rawFieldData, options, }: { type: 'date' rawFieldData: any
packages/@contentlayer/source-files/src/__test__/mapping/getDataForFieldDef.spec.ts:17
↓ 7 callersFunctioncasesHandled
(x: never)
packages/@contentlayer/utils/src/index.ts:84
↓ 7 callersFunctionclassNames
(...args: any[])
examples/archive/playground-azimuth-contentful/src/utils/classNames.tsx:5
↓ 7 callersFunctionclassNames
(...args: any[])
examples/archive/playground-azimuth-colocated/src/utils/classNames.tsx:5
↓ 7 callersFunctionclassNames
(...args: any[])
examples/archive/playground-azimuth/src/utils/classNames.tsx:5
↓ 7 callersFunctionunknownToAbsolutePosixFilePath
(path_: string, cwd?: AbsolutePosixFilePath)
packages/@contentlayer/utils/src/file-paths.ts:58
↓ 6 callersFunctionabsolutePosixFilePath
(path_: string)
packages/@contentlayer/utils/src/file-paths.ts:7
↓ 6 callersFunctiondoNTimes
(n_: number | undefined, fn: (i: number) => void)
packages/@contentlayer/source-files/src/__test__/errors/utils.ts:136
↓ 6 callersFunctiongenerateFakeFilePath
(extension = 'md')
packages/@contentlayer/source-files/src/__test__/errors/utils.ts:56
↓ 6 callersFunctionmakeNestedDocument
({ rawObjectData, fieldDefs, nestedTypeName, coreSchemaDef, options, documentFilePath, contentDi
packages/@contentlayer/source-files/src/fetchData/mapping/index.ts:109
↓ 6 callersFunctionprop
(key: K)
packages/@contentlayer/core/src/generation/generate-types.ts:240
↓ 6 callersFunctionsanitizeString
(_: string)
packages/archive/source-sanity/src/provideSchema.ts:280
↓ 6 callersFunctiont
()
examples/archive/playground-azimuth-contentful/public/js/plugins.js:8
↓ 6 callersFunctiont
()
examples/archive/playground-azimuth-colocated/public/js/plugins.js:8
↓ 6 callersFunctiont
()
examples/archive/playground-azimuth/public/js/plugins.js:8
↓ 5 callersFunctiongetDataVariableName
({ docDef }: { docDef: DocumentTypeDef })
packages/@contentlayer/core/src/generation/common.ts:7
↓ 5 callersFunctiongetFieldDefValues
(fieldDefs: LocalSchema.FieldDefs)
packages/@contentlayer/source-files/src/schema/provideSchema.ts:123
↓ 5 callersFunctionisPosixFilePathString
(path_: string)
packages/@contentlayer/utils/src/file-paths.ts:33
↓ 5 callersFunctionunknownFilePath
(path_: string)
packages/@contentlayer/utils/src/file-paths.ts:76
↓ 5 callersFunctionwriteFile
(filePath: string, content: string)
packages/@contentlayer/utils/src/node/fs.ts:105
↓ 4 callersFunctionconcrete
(fileWatcher: FileWatcher)
packages/@contentlayer/utils/src/node/fs-watcher.ts:191
↓ 4 callersFunctione
(t,e)
examples/archive/playground-azimuth-contentful/public/js/plugins.js:15
↓ 4 callersFunctione
(t,e)
examples/archive/playground-azimuth-colocated/public/js/plugins.js:15
↓ 4 callersFunctione
(t,e)
examples/archive/playground-azimuth/public/js/plugins.js:15
↓ 4 callersFunctionfoldM_
( self: These<E, A>, onSuccess: (a: A) => These<E1, A1>, onBoth: (a: A, e: E) => These<E2, A2>, onFail
packages/@contentlayer/utils/src/effect/These.ts:35
↓ 4 callersFunctiongetContentlayerVersion
()
packages/@contentlayer/utils/src/node/version.ts:14
↓ 4 callersFunctiongetDataForFieldDef
({ fieldDef, rawFieldData, isRootDocument, coreSchemaDef, options, documentFilePath, contentDirP
packages/@contentlayer/source-files/src/fetchData/mapping/index.ts:154
↓ 4 callersFunctiongetFieldDefEntries
(fieldDefs: LocalSchema.FieldDefs)
packages/@contentlayer/source-files/src/schema/provideSchema.ts:115
↓ 4 callersFunctiongetMDXComponent
(code: string, globals: Record<string, unknown> = {})
packages/next-contentlayer/src/hooks/useMDXComponent.ts:22
↓ 4 callersFunctionmakeNestedDocument
({ rawObjectData, fieldDefs, typeName, schemaDef, imageUrlBuilder, }: { rawObjectData: Sanity.Data
packages/archive/source-sanity/src/fetchData.ts:76
↓ 4 callersFunctionn
(t,n,i)
examples/archive/playground-azimuth-contentful/public/js/plugins.js:15
↓ 4 callersFunctionn
(t,n,i)
examples/archive/playground-azimuth-colocated/public/js/plugins.js:15
↓ 4 callersFunctionn
(t,n,i)
examples/archive/playground-azimuth/public/js/plugins.js:15
↓ 4 callersFunctionprovideJaegerTracing
(serviceName: string)
packages/@contentlayer/utils/src/tracing-effect/index.ts:25
↓ 4 callersFunctionwarningMessage
(msg: string)
packages/@contentlayer/core/src/validate-tsconfig.ts:25
↓ 3 callersMethodapply
(compiler: webpack.Compiler)
packages/next-contentlayer/src/index.ts:84
↓ 3 callersFunctionconcrete
(esbuildWatcher: EsbuildWatcher)
packages/@contentlayer/core/src/getConfig/esbuild.ts:126
↓ 3 callersFunctionconvertSchema
( { documentTypeDefMap, nestedTypeDefMap }: core.SchemaDef, extensions: core.PluginExtensions, )
packages/contentlayer-stackbit-yaml-generator/src/cli/convert.ts:6
↓ 3 callersFunctiondocumentOrObjectDefToStackbitYamlModel
({ def, type, }: { def: core.DocumentTypeDef | core.NestedTypeDef type: Stackbit.YamlModel['type'] u
packages/contentlayer-stackbit-yaml-generator/src/cli/convert.ts:34
↓ 3 callersFunctionfieldDefEntryToCoreFieldDef
( [name, fieldDef]: FieldDefEntry, fieldOptions: core.FieldOptions, )
packages/@contentlayer/source-files/src/schema/provideSchema.ts:133
↓ 3 callersFunctionfieldDefToStackbitField
({ fieldDef, fieldExtension, }: { fieldDef: core.FieldDef fieldExtension: core.StackbitExtension.Field
packages/contentlayer-stackbit-yaml-generator/src/cli/convert.ts:81
↓ 3 callersFunctionidToFileName
(id: string)
packages/@contentlayer/core/src/generation/generate-dotpkg.ts:511
↓ 3 callersFunctionisDocument
({ contentTypeId, schemaOverrides, }: { contentTypeId: string schemaOverrides: SchemaOverrides.Normali
packages/@contentlayer/source-contentful/src/provideSchema.ts:73
↓ 3 callersFunctionlocalized
(val: T)
packages/contentful-generator/src/index.ts:47
↓ 3 callersFunctionmakeCacheItemFromFilePath
({ relativeFilePath, filePathPatternMap, coreSchemaDef, contentDirPath, options, previousCache,
packages/@contentlayer/source-files/src/fetchData/makeCacheItemFromFilePath.ts:18
↓ 3 callersFunctionmakeNestedDocument
({ entryId, allEntries, allAssets, fieldDefs, typeName, schemaDef, schemaOverrides, options, }
packages/@contentlayer/source-contentful/src/fetchData/mapping.ts:62
↓ 3 callersFunctionnot
(fn: Fn)
packages/contentlayer-stackbit-yaml-generator/src/cli/convert.ts:208
↓ 3 callersFunctionpick
(obj: Obj, keys: Keys[])
packages/@contentlayer/client/src/utils.ts:10
↓ 3 callersFunctionprovideTracing
( tracingServiceName: string, tracer: 'dummy' | 'otel' | 'based-on-env' = 'based-on-env', )
packages/@contentlayer/utils/src/tracing-effect/index.ts:28
↓ 3 callersFunctionrenderTypeSource
(documentTypes: DocumentTypes)
packages/@contentlayer/source-files/src/__test__/type-generation/basic.spec.ts:10
↓ 3 callersFunctionsanityFieldToCoreFieldDef
(objectTypeNames: string[])
packages/archive/source-sanity/src/provideSchema.ts:144
↓ 3 callersFunctionschemaFromFixture
(fixtureName: string)
packages/@contentlayer/experimental-source-files-stackbit/src/__test__/stackbit.spec.ts:31
↓ 3 callersMethodshutdown
()
packages/@contentlayer/utils/src/node/fs-watcher.ts:91
↓ 3 callersFunctionstackbitFieldToField
(ctx: SharedCtx)
packages/@contentlayer/experimental-source-files-stackbit/src/mapping.ts:36
↓ 3 callersMethodsubscribe
()
packages/@contentlayer/utils/src/node/fs-watcher.ts:182
↓ 3 callersFunctiontoYamlString
(json: any)
packages/contentlayer-stackbit-yaml-generator/src/cli/utils.ts:3
↓ 3 callersFunctiontraverseNestedDef
(objectDef: LocalSchema.NestedTypeDef)
packages/@contentlayer/source-files/src/schema/provideSchema.ts:289
↓ 3 callersFunctionuseLiveReload
()
packages/next-contentlayer/src/hooks/useLiveReload.ts:11
↓ 2 callersFunctionaddArgsToSpan
(span: Span, argsMapper: ArgKeysOrArgsMapper<any>, args: any[])
packages/@contentlayer/utils/src/tracing.ts:79
↓ 2 callersFunctionaddRawDocumentToVFile
(rawDocumentData: RawDocumentData)
packages/@contentlayer/core/src/markdown/unified.ts:10
↓ 2 callersFunctionconvertChildren
(children: any[], index: any)
examples/archive/playground-azimuth-contentful/src/utils/htmlToReact.tsx:7
↓ 2 callersFunctionconvertChildren
(children: any[], index: any)
examples/archive/playground-azimuth-colocated/src/utils/htmlToReact.tsx:7
↓ 2 callersFunctionconvertChildren
(children: any[], index: any)
examples/archive/playground-azimuth/src/utils/htmlToReact.tsx:7
↓ 2 callersFunctiondataCacheFileName
(schemaHash: string)
packages/@contentlayer/core/src/DataCache.ts:82
↓ 2 callersFunctiondefineFields
(fields: TFieldDefs)
packages/@contentlayer/source-files/src/schema/defs/index.ts:111
↓ 2 callersFunctiondefineTransform
(transform: Transform)
packages/contentlayer-stackbit-yaml-generator/src/lib/index.ts:5
↓ 2 callersFunctiondynamicBuild
({ config, verbose }: { config: Config; verbose: boolean })
packages/@contentlayer/core/src/dynamic-build.ts:98
↓ 2 callersFunctionenvironmentGetAssets
({ limit, skip, environment, }: { limit: number skip?: number environment: Contentful.Environment
packages/@contentlayer/source-contentful/src/contentful.ts:35
↓ 2 callersFunctionenvironmentGetContentTypes
( environment: Contentful.Environment, )
packages/@contentlayer/source-contentful/src/contentful.ts:7
↓ 2 callersFunctionenvironmentGetEntries
({ limit, skip, environment, }: { limit: number skip?: number environment: Contentful.Environment
packages/@contentlayer/source-contentful/src/contentful.ts:18
↓ 2 callersFunctionfail
(e: E)
packages/@contentlayer/utils/src/effect/These.ts:29
↓ 2 callersFunctionfailOrSkip
({ errors, flags, }: { errors: readonly FetchDataError.FetchDataError[] flags: Flags })
packages/@contentlayer/source-files/src/errors/aggregate.ts:164
next →1–100 of 636, ranked by callers