(version)
| 50 | } |
| 51 | |
| 52 | export 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 | |
| 60 | export async function getMiniToc(context, type, items, depth = 2, markdownHeading = '') { |
| 61 | const { currentLanguage, currentVersion } = context |
no test coverage detected