Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/github/docs
/ functions
Functions
802 in github.com/github/docs
⨍
Functions
802
◇
Types & classes
49
↓ 517 callers
Function
test
(suffix)
lib/get-redirect.js:190
↓ 200 callers
Function
get
( route, opts = { method: 'get', body: undefined, followRedirects: false, followAllRedirec
tests/helpers/e2etest.js:5
↓ 168 callers
Function
getDOM
( route, { headers, allow500s, allow404 } = { headers: undefined, allow500s: false, allow404:
tests/helpers/e2etest.js:71
↓ 90 callers
Function
next
()
script/dev-toc/generate.js:35
↓ 67 callers
Function
renderContent
(template = '', context = {}, options = {})
lib/render-content/renderContent.js:14
↓ 58 callers
Function
useTranslation
(namespaces: string | Array<string>)
components/hooks/useTranslation.ts:6
↓ 52 callers
Function
checkEvent
(data, code)
tests/routing/events.js:7
↓ 49 callers
Method
init
(opts)
lib/page.js:37
↓ 34 callers
Function
getRedirect
(uri, context)
lib/get-redirect.js:27
↓ 29 callers
Function
useMainContext
()
components/context/MainContext.tsx:198
↓ 23 callers
Function
frontmatter
(markdown, opts = {})
lib/frontmatter.js:276
↓ 22 callers
Function
formatLinkError
(message, links)
tests/linting/lint-files.js:291
↓ 20 callers
Function
getApplicableVersions
(versionsObj, filepath, opts = {})
lib/get-applicable-versions.js:12
↓ 20 callers
Function
versionSatisfiesRange
(release, range)
lib/version-satisfies-range.js:5
↓ 17 callers
Function
asyncMiddleware
(fn)
middleware/index.js:79
↓ 17 callers
Method
render
()
pages/_document.tsx:32
↓ 17 callers
Function
useVersion
()
components/hooks/useVersion.ts:9
↓ 16 callers
Function
nl
(str)
tests/unit/render-content.js:7
↓ 15 callers
Function
getJSON
(route, opts)
tests/helpers/e2etest.js:93
↓ 14 callers
Function
parse
(tagToken)
lib/liquid-tags/data.js:10
↓ 14 callers
Function
sendEvent
({ type, version = '1.0.0', ...props }: SendEventProps)
components/lib/events.ts:100
↓ 13 callers
Function
getMainContext
(req: any, res: any)
components/context/MainContext.tsx:115
↓ 12 callers
Function
removeLiquidStatements
(content, release, nextOldestRelease, file)
script/helpers/remove-liquid-statements.js:20
↓ 11 callers
Function
allowIndex
(path)
tests/rendering/block-robots.js:5
↓ 11 callers
Function
defaultCacheControl
(res)
middleware/cache-control.js:67
↓ 11 callers
Function
dup
(obj)
src/graphql/lib/validator.js:240
↓ 11 callers
Function
getAutomatedPageContextFromRequest
(req: any)
components/context/AutomatedPageContext.tsx:27
↓ 10 callers
Function
difference
(obj1, obj2)
src/rest/scripts/test-open-api-schema.js:156
↓ 10 callers
Function
findPage
(href, pages, redirects)
lib/find-page.js:4
↓ 10 callers
Function
getContent
(content)
tests/linting/lint-files.js:297
↓ 10 callers
Function
getPathWithoutLanguage
(href)
lib/path-utils.js:21
↓ 9 callers
Function
checkCachingHeaders
(res, defaultSurrogateKey = false, minMaxAge = 60 * 60)
tests/helpers/caching-headers.js:3
↓ 9 callers
Function
getRest
(version, apiVersion, category, subCategory)
src/rest/lib/index.js:72
↓ 9 callers
Function
getRoot
(languageCode)
lib/languages.js:23
↓ 9 callers
Function
parseUserAgent
(ua = navigator.userAgent)
components/lib/user-agent.ts:22
↓ 9 callers
Function
readJsonFile
(xpath)
lib/read-json-file.js:4
↓ 9 callers
Method
renderProp
(propName, context, opts = { unwrap: false })
lib/page.js:269
↓ 8 callers
Function
cacheControlFactory
( maxAge = 60 * 60, { key = 'cache-control', public_ = true, immutable = false, maxAgeZero = false } = {}
middleware/cache-control.js:12
↓ 8 callers
Function
readCompressedJsonFileFallback
(xpath)
lib/read-json-file.js:22
↓ 8 callers
Function
readFrontmatter
(markdown, opts = { validateKeyNames: false, validateKeyOrder: false })
lib/read-frontmatter.js:6
↓ 8 callers
Function
setFastlySurrogateKey
(res, enumKey, isCustomKey = false)
middleware/set-fastly-surrogate-key.js:17
↓ 8 callers
Function
useProductLandingContext
()
components/context/ProductLandingContext.tsx:69
↓ 7 callers
Function
getAutomatedPageMiniTocItems
( items, context, depth = 2, markdownHeading = '' )
lib/get-mini-toc-items.js:138
↓ 7 callers
Function
getMetaContent
(name: string)
components/lib/events.ts:95
↓ 7 callers
Function
getMiniTocItems
(html, maxHeadingLevel = 2, headingScope = '')
lib/get-mini-toc-items.js:6
↓ 7 callers
Function
getPathWithoutVersion
(href)
lib/path-utils.js:26
↓ 7 callers
Function
removeFPTFromPath
(path)
lib/remove-fpt-from-path.js:7
↓ 7 callers
Function
renderContentWithFallback
(page, property, context, options)
lib/render-with-fallback.js:18
↓ 7 callers
Function
walkFiles
(dir, ext, opts = {})
script/helpers/walk-files.js:12
↓ 6 callers
Function
makeLanguageSurrogateKey
(langCode = null)
middleware/set-fastly-surrogate-key.js:38
↓ 6 callers
Function
makeRequestResponse
(url, currentVersion = 'free-pro-team@latest')
tests/unit/find-page-middleware.js:12
↓ 6 callers
Function
mergeExamples
(requestExamples, responseExamples)
src/rest/scripts/utils/create-rest-examples.js:49
↓ 6 callers
Function
noTrack
()
middleware/learning-track.js:7
↓ 6 callers
Function
parsePageSectionsIntoRecords
(page)
script/search/parse-page-sections-into-records.js:10
↓ 6 callers
Function
readCompressedJsonFileFallbackLazily
(xpath)
lib/read-json-file.js:40
↓ 5 callers
Function
archivedEnterpriseVersionsAssets
(req, res, next)
middleware/archived-enterprise-versions-assets.js:21
↓ 5 callers
Function
cacheAggressively
(res)
middleware/archived-enterprise-versions.js:44
↓ 5 callers
Function
cleanPreviewTitle
(title)
src/graphql/scripts/build-changelog.js:158
↓ 5 callers
Function
dataDirectory
(dir, opts = {})
lib/data-directory.js:10
↓ 5 callers
Function
executeWithFallback
(context, callable, fallback)
lib/render-with-fallback.js:59
↓ 5 callers
Function
filterFiles
(tuples)
tests/linting/lint-files.js:321
↓ 5 callers
Function
getCssTheme
(cookieValue = '')
components/hooks/useTheme.ts:73
↓ 5 callers
Function
getVersionStringFromPath
(href, supportedOnly = false)
lib/path-utils.js:36
↓ 5 callers
Function
memoize
(func)
lib/get-data.js:286
↓ 5 callers
Function
mockRequest
(path, { headers })
tests/unit/static-assets.js:8
↓ 5 callers
Function
mockResponse
()
tests/unit/static-assets.js:25
↓ 5 callers
Function
setDefaultFastlySurrogateKey
(req, res, next)
middleware/set-fastly-surrogate-key.js:28
↓ 5 callers
Function
walkFiles
(pathToWalk, ext)
script/content-migrations/use-short-versions.js:14
↓ 4 callers
Function
addLink
(span, link_name, link_href)
script/bookmarklets/pr-link-source.js:84
↓ 4 callers
Method
buildRedirects
()
lib/page.js:138
↓ 4 callers
Function
clickDropdown
(e: React.RefObject<HTMLDivElement>)
components/guides/ArticleCards.tsx:33
↓ 4 callers
Method
destroy
()
tests/helpers/data-directory.js:85
↓ 4 callers
Function
filenameToKey
(filename)
lib/filename-to-key.js:17
↓ 4 callers
Method
generatePayloadHmac
* Generate a SHA256 hash of the payload using the secret * to authenticate with Hydro * @param {string} body
lib/hydro.js:77
↓ 4 callers
Function
getComponentTheme
(cookieValue = '')
components/hooks/useTheme.ts:90
↓ 4 callers
Function
getGraphqlVersion
(version)
src/graphql/lib/index.js:85
↓ 4 callers
Function
getPath
(productDir, link, filename)
tests/content/category-pages.js:217
↓ 4 callers
Function
head
(route, opts = { followRedirects: false })
tests/helpers/e2etest.js:52
↓ 4 callers
Function
injectDoctocatLinks
(html)
tests/unit/mini-toc-items.js:11
↓ 4 callers
Function
isApiVersioned
(version)
lib/all-versions.js:123
↓ 4 callers
Function
languageCacheControl
(res)
middleware/cache-control.js:76
↓ 4 callers
Function
loadPageMap
(pageList)
lib/page-data.js:285
↓ 4 callers
Function
makeHref
(root, filePath)
script/move-content.js:234
↓ 4 callers
Function
matchesVersionString
(input)
lib/render-content/liquid.js:7
↓ 4 callers
Function
pathLanguagePrefixed
(path)
lib/languages.js:140
↓ 4 callers
Method
process
()
src/rest/scripts/utils/webhook.js:50
↓ 4 callers
Function
splitVersion
(version)
lib/render-content/liquid.js:14
↓ 4 callers
Function
updateFile
(filepath, content)
src/graphql/scripts/update-files.js:155
↓ 4 callers
Function
useProductGuidesContext
()
components/context/ProductGuidesContext.tsx:31
↓ 3 callers
Function
addToChildren
(newPath, positions, opts)
script/move-content.js:350
↓ 3 callers
Function
blockIndex
(path)
middleware/block-robots.js:20
↓ 3 callers
Function
catchMiddlewareError
(fn)
middleware/catch-middleware-error.js:1
↓ 3 callers
Function
createChangelogEntry
( oldSchemaString, newSchemaString, previews, oldUpcomingChanges, newUpcomingChanges )
src/graphql/scripts/build-changelog.js:40
↓ 3 callers
Function
formatReleases
(releaseNotes)
lib/release-notes-utils.js:9
↓ 3 callers
Function
getChangelogCacheKey
(prefix, feedUrl)
lib/changelog.js:68
↓ 3 callers
Function
getConditionalsToUpdate
(content)
script/enterprise-server-releases/add-ghec-to-fpt.js:112
↓ 3 callers
Function
getContents
(owner, repo, ref, path)
script/helpers/git-utils.js:84
↓ 3 callers
Function
getDataByDir
(dottedPath, dir, englishRoot)
lib/get-data.js:126
↓ 3 callers
Function
getDataFilepath
(id, graphqlVersion)
src/graphql/scripts/update-files.js:108
↓ 3 callers
Function
getExceptionRedirects
(exceptionsTxtFile)
lib/redirects/exception-redirects.js:4
next →
1–100 of 802, ranked by callers