Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
97 commits
Select commit Hold shift + click to select a range
063d93e
Merge pull request #33633 from github/repo-sync
Octomerger Dec 16, 2022
b8aa33a
Unify language in the API docs for Actions (#33367)
subatoi Dec 16, 2022
103024a
Unify language in the API docs for Activities (#33495)
subatoi Dec 16, 2022
dfa14f1
[2022-12-15] Actions SBOMs (#33486)
guntrip Dec 16, 2022
e95cc99
Unify API language for GitHub Apps (#33603)
subatoi Dec 16, 2022
1009591
New translation batch for es (#33635)
docubot Dec 16, 2022
a97de55
Fix broken link in GitHub Pages article (#33634)
mchammer01 Dec 16, 2022
91b5527
[Improvement] Change how we talk about subscription in About GitHub C…
sophietheking Dec 16, 2022
f069722
New translation batch for ja (#33636)
docubot Dec 16, 2022
ead114b
Unify language in the API docs for secret scanning endpoints (#33599)
Dec 16, 2022
8abf8aa
New translation batch for pt (#33637)
docubot Dec 16, 2022
521353d
Unify language in the API docs for teams endpoints (#33598)
Dec 16, 2022
7bbae8b
Unify language in the API docs for license endpoints (#33602)
Dec 16, 2022
4b43a48
Unify language in the API docs for gist endpoints (#33601)
Dec 16, 2022
755e416
New translation batch for zh (#33638)
docubot Dec 16, 2022
fbc5d8f
New translation batch for ru (#33639)
docubot Dec 16, 2022
25df0ae
New translation batch for ko (#33640)
docubot Dec 16, 2022
7ab42f5
New translation batch for fr (#33641)
docubot Dec 16, 2022
6b343a1
New translation batch for de (#33642)
docubot Dec 16, 2022
8ec4ddf
use keepPreviousData for uswSWR in Search component (#33592)
Dec 16, 2022
d46ff70
Remove large image whose display is shrunk by the CSS (and doesn't lo…
mchammer01 Dec 16, 2022
2964a77
Merge branch 'main' into repo-sync
Octomerger Dec 16, 2022
c6119f6
Merge pull request #33644 from github/repo-sync
Octomerger Dec 16, 2022
7a29f92
Add info about Copilot TP user trial eligibility (#33582)
lucascosti Dec 16, 2022
83642ac
Unify language in the API docs for Issues endpoints (#33141)
saritai Dec 16, 2022
1c651eb
Merge branch 'main' into repo-sync
Octomerger Dec 16, 2022
b104f99
Merge pull request #33647 from github/repo-sync
Octomerger Dec 16, 2022
f669d0d
Unify language in the API docs for organizations (#33604)
jhosman Dec 16, 2022
b850d43
Differentiate and relocate notes about the security overview for GitH…
mattpollard Dec 16, 2022
cc4fe65
revert https://github.com/github/docs-internal/pull/33532 (#33649)
rsese Dec 16, 2022
00868e3
Update OpenAPI Descriptions (#33648)
github-openapi-bot Dec 16, 2022
7e4e76a
only run openapi workflow when PR is initially opened (#33662)
rachmari Dec 19, 2022
0b98bbc
Update OpenAPI Descriptions (#33652)
github-openapi-bot Dec 20, 2022
90b0f27
Update OpenAPI Descriptions (#33676)
github-openapi-bot Jan 3, 2023
b6bf2c1
Update hubber-contribution-help.yml (#25750)
myarb Jan 3, 2023
ce40654
[Improvement]: make pricing model clearer for Dependabot #6770 (#33305)
am-stead Jan 3, 2023
f14eac4
Secret scanning: Scan Issues body and comments [Public Beta] - tweak …
mchammer01 Jan 3, 2023
2a0ba96
Updating link to Copilot Privacy FAQ (#33542)
tgrall Jan 3, 2023
081abe6
document issue form "id" query parameters (#33578)
buckelij Jan 3, 2023
ed691b7
updating docs with secret scanning partners (#33580)
nattywombat Jan 3, 2023
9293b0a
update GitHub Copilot FAQ link (#33643)
saisdavid Jan 3, 2023
c5525ce
Enterprise bug fixes for the week of December 12, 2022 (#33645)
lecoursen Jan 3, 2023
3d6a456
Update app_manager_role.md reusable (#33646)
smarj Jan 3, 2023
215f757
Update audit-log-search-by-user.md (#33654)
hpsin Jan 3, 2023
97d416c
Add bot note to "About billing for GitHub Advanced Security" (#33673)
greysteil Jan 3, 2023
e353fa3
Add security overview content for filtering for teams with write acce…
sabrowning1 Jan 3, 2023
028c523
Document explicitly what branch protections are migrated from GitHub …
lecoursen Jan 3, 2023
569792c
[Improvement]: Include SAML SSO URL Expiry Period for Clarity (#33687)
jusuchin85 Jan 3, 2023
57105f3
Specify that private profiles are not included on Discussion most hel…
gnfisher Jan 3, 2023
4017288
Fix links in "About EMUs" appearing as a code block (#33688)
guntrip Jan 3, 2023
9deeebd
Unify language in the REST API for repos (#33691)
Jan 3, 2023
020ed4c
Unify language in the REST API for interactions (#33692)
Jan 3, 2023
9ea53fa
Unify language in the REST API guides (#33693)
Jan 3, 2023
6bd018b
Fix broken links for repos and Copilot (#33694)
vgrl Jan 3, 2023
d4e1ed9
Clarify when and where `ghe-repl-stop` should be run (#33702)
ThatStoney Jan 3, 2023
414d5d5
Lou branch 002 (#33703)
loujr Jan 3, 2023
c2cc8bf
Update about-self-hosted-runners.md (#33656)
Pantelis-Santorinios Jan 3, 2023
55fea0d
Unify language in the REST API for deployments (#33690)
Jan 3, 2023
1eb8c3e
Improvements to Projects Insights articles (#33695)
guntrip Jan 3, 2023
e650b4c
remove removeNewlinesFromInlineTags from renderContent (#33586)
Jan 3, 2023
ba28628
Update max heap size troubleshooting for JetBrains support in Codespa…
hubwriter Jan 3, 2023
d48898e
Revert "Add security overview content for filtering for teams with wr…
sabrowning1 Jan 3, 2023
5294b31
Bump actions/stale from 6.0.1 to 7.0.0 (#33685)
dependabot[bot] Jan 3, 2023
1d3dcc4
Merge pull request #33715 from github/repo-sync
Octomerger Jan 3, 2023
3bd0823
Unify API terminology around 'REST API' for Migrations content (#33672)
subatoi Jan 3, 2023
14b7da4
Merge pull request #33717 from github/repo-sync
Octomerger Jan 3, 2023
d329ac7
Unify terminology around 'REST API' for Metrics (#33671)
subatoi Jan 3, 2023
56f9e5a
[2022-12-12]: Enterprise customers can create custom banner messages …
sophietheking Jan 3, 2023
b148e78
cheerio-to-text@0.2.2 (#33712)
Jan 3, 2023
4a8f23e
upgrade @babel/core@7.20.7 (#33713)
Jan 3, 2023
b5d383b
Bump json5 from 1.0.1 to 1.0.2 (#33714)
dependabot[bot] Jan 3, 2023
b240055
Permissions statement rendering on automated pages (#33718)
Jan 3, 2023
ad961a3
jest@29.3.1 and eslint@8.31.0 (#33721)
Jan 3, 2023
11dc8cc
Rm translations directory (#33720)
heiskr Jan 3, 2023
f8aebef
parse5@7.1.2 (#33722)
Jan 3, 2023
4e90665
Update OpenAPI Descriptions (#33716)
github-openapi-bot Jan 3, 2023
67d635e
[2023-01-05]: Secret scanning: Push protection for enterprise level c…
sophietheking Jan 3, 2023
bd32702
Add Announcement banners category and subcategories (#31947)
sophietheking Jan 3, 2023
b5bc61d
Merge pull request #33725 from github/repo-sync
Octomerger Jan 3, 2023
9d31cc9
Merge pull request #33727 from github/repo-sync
Octomerger Jan 3, 2023
0829d72
Merge pull request #33729 from github/repo-sync
Octomerger Jan 4, 2023
79b2b2d
make it possible to filter by version (#33628)
Jan 4, 2023
eb82bbb
Merge pull request #33730 from github/repo-sync
Octomerger Jan 4, 2023
d8d8506
Update OpenAPI Descriptions (#33728)
github-openapi-bot Jan 4, 2023
091637d
Update procedure for adding billing information to a personal account…
guntrip Jan 4, 2023
292e491
Unify language around 'REST API' for Enterprise Admin resources (#33674)
subatoi Jan 4, 2023
5d8675d
Unify language around API terminology for Releases (#33668)
subatoi Jan 4, 2023
a239cdc
Merge pull request #33734 from github/repo-sync
Octomerger Jan 4, 2023
af0deaa
understand feature-based `ifversion` in link checker (#33631)
Jan 4, 2023
3a8e231
Automatic forking in GitHub Codespaces (#33549)
isaacmbrown Jan 4, 2023
226b8a7
use whitespace trimming Liquid tags (#33724)
Jan 4, 2023
a9639c1
Clarify REST API rate limit info (#33705)
Jan 4, 2023
7a4c6ac
correct Surrogate-Key for static manifest assets (#33735)
Jan 4, 2023
d8f706b
Merge pull request #33741 from github/repo-sync
Octomerger Jan 4, 2023
83af189
Translation cleanup (#33738)
heiskr Jan 4, 2023
b8f44b1
test translations suite in CI (#33739)
Jan 4, 2023
d183d92
Fix Actions default workflow permissions (#33697)
ajaykn Jan 4, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
1 change: 0 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
ALLOW_TRANSLATION_COMMITS=
5 changes: 0 additions & 5 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,6 @@ Dockerfile @github/docs-engineering
package-lock.json @github/docs-engineering
package.json @github/docs-engineering

# Localization
/.github/actions-scripts/msft-create-translation-batch-pr.js @github/docs-engineering
/.github/workflows/msft-create-translation-batch-pr.yml @github/docs-engineering
/translations/ @Octomerger

# Site Policy
/content/site-policy/ @github/site-policy-admins

Expand Down
142 changes: 0 additions & 142 deletions .github/actions-scripts/msft-create-translation-batch-pr.js

This file was deleted.

57 changes: 42 additions & 15 deletions .github/actions-scripts/rendered-content-link-checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import { JSONFile } from 'lowdb/node'

import shortVersions from '../../middleware/contextualizers/short-versions.js'
import contextualize from '../../middleware/context.js'
import features from '../../middleware/contextualizers/features.js'
import getRedirect from '../../lib/get-redirect.js'
import warmServer from '../../lib/warm-server.js'
import liquid from '../../lib/render-content/liquid.js'
Expand Down Expand Up @@ -165,6 +166,8 @@ if (import.meta.url.endsWith(process.argv[1])) {
* patient {boolean} - Wait longer and retry more times for rate-limited external URLS
* bail {boolean} - Throw an error on the first page (not permalink) that has >0 flaws
* externalServerErrorsAsWarning {boolean} - Treat >=500 errors or temporary request errors as warning
* filter {Array<string>} - strings to match the pages' relativePath
* versions {Array<string>} - only certain pages' versions (e.g. )
*
*/
async function main(core, octokit, uploadArtifact, opts = {}) {
Expand All @@ -174,6 +177,7 @@ async function main(core, octokit, uploadArtifact, opts = {}) {
random,
language = 'en',
filter,
version,
max,
verbose,
checkExternalLinks = false,
Expand Down Expand Up @@ -203,8 +207,15 @@ async function main(core, octokit, uploadArtifact, opts = {}) {
}

const filters = filter || []
if (!Array.isArray(filters)) {
core.warning(`filters, ${filters} is not an array`)
if (filters && !Array.isArray(filters)) {
throw new Error(`filters, ${filters} is not an array`)
}

let versions = version || []
if (versions && typeof versions === 'string') {
versions = [versions]
} else if (!Array.isArray(versions)) {
throw new Error(`versions, '${version}' is not an array`)
}

if (random) {
Expand All @@ -227,7 +238,9 @@ async function main(core, octokit, uploadArtifact, opts = {}) {
debugTimeStart(core, 'processPages')
const t0 = new Date().getTime()
const flawsGroups = await Promise.all(
pages.map((page) => processPage(core, page, pageMap, redirects, opts, externalLinkCheckerDB))
pages.map((page) =>
processPage(core, page, pageMap, redirects, opts, externalLinkCheckerDB, versions)
)
)
const t1 = new Date().getTime()
debugTimeEnd(core, 'processPages')
Expand Down Expand Up @@ -554,13 +567,16 @@ function getPages(pageList, languages, filters, files, max) {
.slice(0, max ? Math.min(max, pageList.length) : pageList.length)
}

async function processPage(core, page, pageMap, redirects, opts, db) {
async function processPage(core, page, pageMap, redirects, opts, db, versions) {
const { verbose, verboseUrl, bail } = opts

const allFlawsEach = await Promise.all(
page.permalinks.map((permalink) => {
return processPermalink(core, permalink, page, pageMap, redirects, opts, db)
})
page.permalinks
.filter((permalink) => {
return !versions.length || versions.includes(permalink.pageVersion)
})
.map((permalink) => {
return processPermalink(core, permalink, page, pageMap, redirects, opts, db)
})
)

const allFlaws = allFlawsEach.flat()
Expand Down Expand Up @@ -776,9 +792,17 @@ async function checkHrefLink(
}
} else if (href.startsWith('#')) {
if (checkAnchors) {
const countDOMItems = $(href).length
if (countDOMItems !== 1) {
return { WARNING: `Anchor is an empty string` }
// You don't need a DOM ID (or <a name="top">) for `<a href="#top">`
// to work in all modern browsers.
if (href !== '#top') {
// If the link is `#foo` it could either match `<element id="foo">`
// or it could match `<a name="foo">`.
const countDOMItems = $(href).length + $(`a[name="${href.slice(1)}"]`).length
if (countDOMItems === 0) {
return { WARNING: `Anchor on the same page can't be found by ID` }
} else if (countDOMItems > 1) {
return { WARNING: `Matches multiple points in the page` }
}
}
}
} else if (href.startsWith('/')) {
Expand Down Expand Up @@ -1094,15 +1118,18 @@ async function renderInnerHTML(page, permalink) {
pagePath,
cookies: {},
}
// This will create and set `req.context = {...}`
await contextualize(req, res, next)
await shortVersions(req, res, next)
const context = Object.assign({}, req.context, { page })
context.relativePath = page.relativePath
req.context.page = page
await features(req, res, next)

req.context.relativePath = page.relativePath

// These lines do what the ubiquitous `renderContent` function does,
// but at an absolute minimum to get a string of HTML.
const markdown = await liquid.parseAndRender(page.markdown, context)
const processor = createMinimalProcessor(context)
const markdown = await liquid.parseAndRender(page.markdown, req.context)
const processor = createMinimalProcessor(req.context)
const vFile = await processor.process(markdown)
return vFile.toString()
}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/hubber-contribution-help.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ jobs:

- When you're ready for the Docs team to review this PR, add the *ready-for-doc-review* label to your PR, and it will be automatically added to the [Docs Content review board](https://github.com/orgs/github/memexes/901?layout=table&groupedBy%5BcolumnId%5D=11024). **Please factor in at least 72 hours for a review, even longer if this is a substantial change.**
- If you're adding a release note, request a technical review. The Docs team will review the PR after the technical review is complete.
- If this is a major update to the docs, you might want to go back and open an [issue](https://github.com/github/docs-content/issues/new/choose) to ensure we've covered all areas of the docs in these updates. Not doing so may result in delays or inaccurate documentation."
- If your updates to the docs are more than a simple fix, you might want to go back and open an [issue](https://github.com/github/docs-content/issues/new/choose) to ensure we've covered all areas of the docs in these updates. Not doing so may result in delays or inaccurate documentation."

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR: ${{ github.event.pull_request.html_url }}
Loading