MCPcopy
hub / github.com/github/docs / getPreviews

Function getPreviews

src/graphql/lib/index.js:52–58  ·  view source on GitHub ↗
(version)

Source from the content-addressed store, hash-verified

50}
51
52export function getPreviews(version) {
53 const graphqlVersion = getGraphqlVersion(version)
54 if (!previews) {
55 previews = readCompressedJsonFileFallbackLazily('./src/graphql/data/previews.json')()
56 }
57 return previews[graphqlVersion]
58}
59
60export async function getMiniToc(context, type, items, depth = 2, markdownHeading = '') {
61 const { currentLanguage, currentVersion } = context

Callers 2

getServerSidePropsFunction · 0.90
graphql.jsFile · 0.90

Calls 2

getGraphqlVersionFunction · 0.85

Tested by

no test coverage detected