Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch 1 #36409

Closed
wants to merge 123 commits into from
Closed

Patch 1 #36409

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
123 commits
Select commit Hold shift + click to select a range
fadfc23
Clarify push protection works with secrets.yml
felickz Jan 27, 2023
d264657
Update content/code-security/secret-scanning/configuring-secret-scann…
mchammer01 Feb 3, 2023
0c9454d
Fix dependabot example auto-label
Rotzbua Jan 29, 2023
c59e91b
Update content/code-security/dependabot/working-with-dependabot/autom…
rachaelrenk Feb 2, 2023
20ae084
Update content/code-security/dependabot/working-with-dependabot/autom…
rachaelrenk Feb 2, 2023
b3ed540
Update base64 command to include -i option
koneksa-sunny Jan 11, 2023
67fdc02
Update installing-an-apple-certificate-on-macos-runners-for-xcode-dev…
koneksa-sunny Jan 11, 2023
1367af2
Update contexts.md
krzysztof-pawlicki-nemo Jan 26, 2023
76b5c0b
modify wording
skedwards88 Feb 2, 2023
0e1337d
correct internal redirecting links (get-started/importing-your-projec…
peterbe Feb 2, 2023
7e34063
Resolve Liquid in AUTOTITLE page titles (#34382)
peterbe Feb 2, 2023
b924dca
GHES Patch Release Notes (#34380)
release-controller[bot] Feb 2, 2023
6c18574
Update OpenAPI Description (#34376)
docubot Feb 2, 2023
3169f41
go to top of page when clicking pagination links (#34386)
peterbe Feb 2, 2023
5c5fcd2
Improve screenshot instructions per team feedback (#34396)
meowius Feb 2, 2023
875a366
Removes specific references to very old GHES versions (#34352)
subatoi Feb 3, 2023
4215c68
Bump http-cache-semantics from 4.1.0 to 4.1.1 (#34404)
dependabot[bot] Feb 3, 2023
91b7405
[2023-01-27]: Sorting across all layouts on Projects (#34141)
guntrip Feb 3, 2023
e094c25
Update to remove a circular reference based on user feedback (#34414)
felicitymay Feb 3, 2023
b89179c
Minor grammatical updates (#34402)
corycalahan Feb 3, 2023
61ecd6f
GraphQL schema update (#34419)
Octomerger Feb 3, 2023
a820b7b
Remove unused heading from mini-TOCS in `content/README.md` (#34415)
lecoursen Feb 3, 2023
92b4902
Deprecate GHES 3.3 (#34328)
heiskr Feb 3, 2023
737dcad
Removed inaccurate paragraph (#34289)
KewinTien Feb 3, 2023
7ad5e00
Delete orphaned assets (2023-01-30-16-31) (#34266)
docubot Feb 3, 2023
e63a031
Update OpenAPI Description (#34417)
docubot Feb 3, 2023
8cebdf1
Dynamically serve .webp and .avif from a .png URL (#34412)
peterbe Feb 3, 2023
9e90a11
Disallow query strings on dynamic assets (#34416)
peterbe Feb 3, 2023
ff69ea8
Version fine-grained PAT REST articles for GHES 3.8 (#34377)
skedwards88 Feb 3, 2023
41bf45f
correct internal redirecting links (get-started/customizing...) (#34387)
peterbe Feb 3, 2023
1646b5b
Update prebuild use of asterisk in devcontainer (#34435)
bjbennet Feb 3, 2023
d0727dd
Update repository permission example without asterisk wildcard (#34436)
bjbennet Feb 3, 2023
15ddbd0
[2023-02-06] Self-serve CC billing for GHAS (Public Beta) (#34017)
rachaelrenk Feb 3, 2023
9ac1cb2
GraphQL schema update (#34441)
Octomerger Feb 4, 2023
03b912c
add wsl tip on windows
lesleyrs Feb 5, 2023
2bc9cc9
Update data/reusables/gpg/copy-ssh-public-key.md
saritai Feb 7, 2023
152af1a
Host github.com works, Host *.github.com does not
simonw Jan 27, 2023
07c4d78
Fix typo: "subscription"
SeanKilleen Feb 5, 2023
bb27298
Update deleting-a-codespace.md
likev Feb 4, 2023
d1185dd
Update troubleshooting-included-usage.md
likev Feb 4, 2023
122868a
GraphQL schema update (#34445)
Octomerger Feb 5, 2023
fdc6af3
Update IP allow list for managed users repos (#34403)
vgrl Feb 5, 2023
4ddc926
Fix duplicate headers in the GitHub Actions docs (#34373)
lecoursen Feb 6, 2023
24f7af6
Add troubleshooting article for secret scanning (#33684)
mchammer01 Feb 6, 2023
b219b9f
Fix headers that skip levels in the GitHub Actions docs (#34374)
lecoursen Feb 6, 2023
319076c
Change "4 months" to "1 year" in "About your personal dashboard" (#34…
yamiacat Feb 6, 2023
b53ed0a
Update OpenAPI Description (#34440)
docubot Feb 6, 2023
38b63ac
correct internal redirecting links (authentication/keeping-your-...) …
peterbe Feb 6, 2023
9a8ae0b
correct internal redirecting links (get-started/getting-started) (#34…
peterbe Feb 6, 2023
6656d1b
correct internal redirecting links (get-started/using-github) (#34459)
peterbe Feb 6, 2023
3e5a3b9
Fix typo (#34469)
subatoi Feb 6, 2023
806c7f8
[email protected] (#34456)
peterbe Feb 6, 2023
71fd730
Fixed example to match the text (one folder name) (#23531)
MrBrunoSilva Feb 6, 2023
9090eb6
Update understanding-the-search-syntax.md (#23509)
amysimmons Feb 6, 2023
ece8394
Fix duplicate headers for issue event types (#34472)
jhosman Feb 6, 2023
47ad444
rename Guides featured links to Start here (#34425)
rsese Feb 6, 2023
9aea9b2
Fix duplicate headers in "Managing deploy keys" article (#34468)
saritai Feb 6, 2023
899c6ba
Fix duplicate headers in github-event-types and media-types (#34470)
skedwards88 Feb 6, 2023
e2e9b26
Update enterprise cache admin content (#34103)
SiaraMist Feb 6, 2023
0167200
Run and test server with test fixture root (#33816)
peterbe Feb 6, 2023
c7771a8
Update/campus experts application update (#34383)
juanpflores Feb 6, 2023
773b69d
Bug when using AUTOTITLE on links with query string (#34487)
peterbe Feb 6, 2023
d9e8c51
Fix double breadcrumbs (#34494)
gracepark Feb 7, 2023
6554afe
Remove obsolete `workflow_dispatch` trigger from "cleanup caches" exa…
andreasabel Feb 7, 2023
cf5a9a4
Improve workflow_dispatch syntax doc (#34166)
yoannchaudet Feb 7, 2023
7dab489
Move release note about SSH authentication and the Git protocol for G…
mattpollard Feb 7, 2023
691d0a6
Add details for prebuild setting (#34480)
hubwriter Feb 7, 2023
4c688ae
Update OpenAPI Description (#34464)
docubot Feb 7, 2023
d16ee6a
Adding emphasis to always expression warning (#34238)
vmjoseph Feb 7, 2023
6a53893
Correct jupyter command for GitHub CLI (#34479)
hubwriter Feb 7, 2023
dd7a169
Update form-schema required key information (#23525)
MagnusHJensen Feb 7, 2023
f037f2e
correct internal redirecting links (get-started/learning-about-) (#34…
peterbe Feb 7, 2023
e672470
Fixes automatically publish package. (#23678)
rahulpandey70 Feb 7, 2023
8504341
GraphQL schema update (#34511)
Octomerger Feb 7, 2023
ab44d3a
[2023-02-23]: PayPal Changes for GitHub Sponsors - [GA] (#34342)
sophietheking Feb 7, 2023
933b49c
specify npm size limit in docs (#34408)
dhruvsaraiya Feb 7, 2023
65cfdac
Removes duplicate headers for accessibility audit (#34474)
subatoi Feb 7, 2023
363f39b
catch typos near 'AUTOTITLE' (#34493)
peterbe Feb 7, 2023
050e12b
[DO NOT MERGE] GitHub Enterprise Server 3.8 release candidate (#34113)
mattpollard Feb 7, 2023
9986a0f
[2023-02-07]: Dependabot Alerts default permissions: write and mainta…
sophietheking Feb 7, 2023
aafccff
Add release candidate banner for GitHub Enterprise Server 3.8 (#34518)
mattpollard Feb 7, 2023
41d2310
recover from Liquid rendering errors in release notes (#34484)
peterbe Feb 7, 2023
de17256
Update .dockerignore (#34318)
rachmari Feb 7, 2023
b743818
document how to write fixture based tests (#34491)
peterbe Feb 7, 2023
896f840
Quick fix: Update UI text in Enterprise Actions admin settings (#34523)
SiaraMist Feb 7, 2023
beb1230
remove all hardcode language internal links (#34526)
peterbe Feb 7, 2023
d427e1e
Rework the `improve manage encrypted secrets` dependabot article (#34…
mchammer01 Feb 7, 2023
f0c3607
remove calendar-date versioning for GHES 3.8 (#34529)
rachmari Feb 7, 2023
fd1fa3c
Update about-code-owners.md
Sethbarrie Jan 13, 2023
ba2ed96
Tweak language and add context
sabrowning1 Feb 7, 2023
80c0ded
Search Results page updates (#34498)
gracepark Feb 7, 2023
8f72d3d
Fix release notes referring to the API Versioning feature in GHES 3.8…
davidjarzebowski Feb 7, 2023
03d9b24
Corrected code block language (#23752)
willsawyerrrr Feb 8, 2023
cf0fb6c
Update installing-github-apps.md (#34437)
loujr Feb 8, 2023
f0162e5
Remove breaking and unnecessary style (#34544)
gracepark Feb 8, 2023
01a2a00
chore: remove typo
kamilkulik Feb 8, 2023
2779e63
Add note to use bash shell on Windows
dawei-wang Jan 4, 2023
4df1037
Fix formatting
dawei-wang Jan 4, 2023
89b45a5
Remove reusable workflow limitation when used with composite action
micnncim Jan 30, 2023
6ae6569
Added missing parameters to GitHub app manifest.
OlayinkaAtobiloye Feb 6, 2023
86517c7
Updated the code changes to use Variables as opposed to hardcoding wh…
OlayinkaAtobiloye Feb 7, 2023
65b258a
Updated the code changes to use Variables as opposed to hardcoding wh…
OlayinkaAtobiloye Feb 7, 2023
367d018
[Improvement]: Fix duplicate headers for Core Productivity (#34405)
sophietheking Feb 8, 2023
e04f136
Remove hard-coded version in link within "Enabling Server Statistics …
mattpollard Feb 8, 2023
8c4bfa7
Remove link that doesn't render within "Configuring email for notific…
mattpollard Feb 8, 2023
5a83faf
fix hydration warning in version picker (#34539)
peterbe Feb 8, 2023
e0575fc
Remove content about the CodeQL runner (#34430)
sabrowning1 Feb 8, 2023
9db2927
Update screenshots for `images/help/server-statistics` directory (#34…
lecoursen Feb 8, 2023
a0e9bcc
[2023-02-07] Merge Queue: update docs for public beta (#34198)
georgebrock Feb 8, 2023
adc6bbd
Reworks parameters-based content to avoid duplicate headers (#34550)
subatoi Feb 8, 2023
3acfd4a
[Actions] Adding packages:read to default Github token (#34332)
ajaykn Feb 8, 2023
fb04353
Delete optimize-images.yml (#34565)
heiskr Feb 8, 2023
b726952
Update screenshots in the `images/azure` directory (#34520)
lecoursen Feb 8, 2023
e125c8e
GraphQL schema update (#34569)
Octomerger Feb 8, 2023
657d0c6
Create subject scaffold script (#33751)
heiskr Feb 8, 2023
dbfc3d1
Add Team Discussions migration tooling and deprecation announcement t…
saritai Feb 8, 2023
7fb27b3
Update README.md
heiskr Feb 8, 2023
d7769b7
Edit Repository Rules FGP (#34284)
patrick-knight Feb 8, 2023
308d840
Fix a few more duplicate headers in "Workflow syntax for GitHub Actio…
lecoursen Feb 8, 2023
82dfe5f
Bump hot-shots from 9.0.0 to 10.0.0 (#34542)
dependabot[bot] Feb 8, 2023
f90f604
override existing broken-links comment (#34557)
peterbe Feb 8, 2023
cd058f2
format large numbers per locale (#34579)
peterbe Feb 8, 2023
52425d7
Create Drakogang
drakogang Feb 19, 2025
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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .devcontainer/Drakogang
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

2 changes: 0 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ docs/
node_modules/
script/
tests/
# These files are currently being added by automation in github/github. We will be removing the files permanently when we fix the broken automation in github/github.
lib/rest/static/dereferenced
# Folder is cloned during the preview + prod workflows, the assets are merged into other locations for use before the build
docs-early-access/
# During the preview deploy untrusted user code may be cloned into this directory
Expand Down
50 changes: 47 additions & 3 deletions .github/actions-scripts/rendered-content-link-checker.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@ async function main(core, octokit, uploadArtifact, opts = {}) {
)
}
}
} else {
// It might be that the PR got a comment about >0 flaws before,
// and now it can update that comment to say all is well again.
if (shouldComment) {
await commentOnPR(core, octokit, flaws, opts)
}
}
}

Expand Down Expand Up @@ -327,7 +333,7 @@ async function linkReports(core, octokit, newReport, opts) {

const [owner, repo] = reportRepository.split('/')

core.debug('Attempting to link reports...')
core.info('Attempting to link reports...')
// Find previous broken link report issue
let previousReports
try {
Expand All @@ -346,7 +352,7 @@ async function linkReports(core, octokit, newReport, opts) {
core.setFailed('Error listing issues for repo')
throw error
}
core.debug(`Found ${previousReports.length} previous reports`)
core.info(`Found ${previousReports.length} previous reports`)

if (previousReports.length <= 1) {
core.info('No previous reports to link to')
Expand Down Expand Up @@ -422,10 +428,48 @@ async function commentOnPR(core, octokit, flaws, opts) {
return
}

const findAgainSymbol = '<!-- rendered-content-link-checker-comment-finder -->'

const body = flawIssueDisplay(flaws, opts, false)

const { data } = await octokit.rest.issues.listComments({
owner,
repo,
issue_number: pullNumber,
})
let previousCommentId
for (const { body, id } of data) {
if (body.includes(findAgainSymbol)) {
previousCommentId = id
}
}

// Since failed external urls aren't included in PR comment, body may be empty
if (!body) {
core.info('No flaws qualify for comment')

if (previousCommentId) {
const nothingComment = 'Previous broken links comment now moot. 👌😙'
await octokit.rest.issues.updateComment({
owner,
repo,
comment_id: previousCommentId,
body: `${nothingComment}\n\n${findAgainSymbol}`,
})
core.info(`Updated comment on PR: ${pullNumber} (${previousCommentId})`)
}
return
}

if (previousCommentId) {
const noteComment = '(*The original automated comment was updated*)'
await octokit.rest.issues.updateComment({
owner,
repo,
comment_id: previousCommentId,
body: `${body}\n\n${noteComment}\n\n${findAgainSymbol}`,
})
core.info(`Updated comment on PR: ${pullNumber} (${previousCommentId})`)
return
}

Expand All @@ -434,7 +478,7 @@ async function commentOnPR(core, octokit, flaws, opts) {
owner,
repo,
issue_number: pullNumber,
body,
body: `${body}\n\n${findAgainSymbol}`,
})
core.info(`Created comment on PR: ${pullNumber}`)
} catch (error) {
Expand Down
6 changes: 4 additions & 2 deletions .github/actions/node-npm-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ runs:
steps:
- name: Cache node_modules
uses: actions/cache@9b0c1fce7a93df8e3bb8926b0d6e9d89e92f20a7
id: cache-node_modules
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('package*.json') }}
key: ${{ runner.os }}-node_modules-${{ hashFiles('package*.json') }}-${{ hashFiles('.github/actions/node-npm-setup/action.yml') }}

- name: Setup Node.js
uses: actions/setup-node@8c91899e586c5b171469028077307d293428b516
Expand All @@ -18,5 +19,6 @@ runs:
cache: npm

- name: Install dependencies
if: ${{ steps.cache-node_modules.outputs.cache-hit != 'true' }}
shell: bash
run: npm install --prefer-offline --no-audit --ignore-scripts
run: npm ci
72 changes: 0 additions & 72 deletions .github/workflows/optimize-images.yml

This file was deleted.

6 changes: 6 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
'routing',
'unit',
'linting',
'rendering-fixtures',
];
if (context.payload.repository.full_name === 'github/docs-internal') {
all.push('translations');
Expand Down Expand Up @@ -110,6 +111,10 @@ jobs:
.github/actions-scripts/merge-early-access.sh
rm -fr docs-early-access

- name: Check the test fixture data (if applicable)
if: ${{ matrix.test-group == 'rendering-fixtures' }}
run: ./script/copy-fixture-data.js --check

- name: Clone all translations
if: ${{ matrix.test-group == 'translations' }}
uses: ./.github/actions/clone-translations
Expand Down Expand Up @@ -172,4 +177,5 @@ jobs:
# tests run only in English. The exception is the
# `tests/translations/` suite which needs all languages to be set up.
ENABLED_LANGUAGES: ${{ matrix.test-group == 'translations' && 'all' || '' }}
ROOT: ${{ matrix.test-group == 'rendering-fixtures' && 'tests/fixtures' || ''}}
run: npm test -- tests/${{ matrix.test-group }}/
Binary file added assets/images/azure/azure-aad-app-storage-ids.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed assets/images/azure/azure-resources-search.png
Binary file not shown.
Binary file removed assets/images/azure/azure-storage-containers.png
Binary file not shown.
Binary file removed assets/images/azure/azure-storage-permissions.png
Binary file not shown.
Binary file not shown.
Binary file removed assets/images/azure/github-ae-azure-portal-form.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed assets/images/help/2fa/totp-click-enter-code.png
Binary file not shown.
Binary file removed assets/images/help/2fa/totp-enter-code.png
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Binary file removed assets/images/help/branches/branches-link.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/images/help/classroom/canvas-sync-roster.png
Diff not rendered.
Diff not rendered.
Binary file removed assets/images/help/classroom/sakai-sync-roster.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/images/help/education/upload-image-link.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file modified assets/images/help/enterprises/enterprise-licensing-tab.png
Binary file removed assets/images/help/enterprises/members-pending.png
Diff not rendered.
Binary file modified assets/images/help/enterprises/your-enterprises-list.png
Binary file modified assets/images/help/enterprises/your-enterprises.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/images/help/issues/new_project_beta.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/images/help/pages/choose-theme.png
Diff not rendered.
Binary file removed assets/images/help/personal_token_ghae.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/images/help/pull_requests/create-a-fork.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/images/help/saml/okta-sign-on-tab.png
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Binary file removed assets/images/help/stars/star-a-project.png
Diff not rendered.
Binary file removed assets/images/personal_token.png
Diff not rendered.
2 changes: 1 addition & 1 deletion components/article/ArticlePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export const ArticlePage = () => {
<ClientSideHighlight />
{router.pathname.includes('/rest/') && <RestRedirect />}
<div className="container-xl px-3 px-md-6 my-4">
<div className={cx('my-3 mr-auto width-full')} data-search="breadcrumbs">
<div className={cx('my-3 mr-auto width-full')}>
<Breadcrumbs />
</div>
<ArticleGridLayout
Expand Down
8 changes: 5 additions & 3 deletions components/context/ProductLandingContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export type ProductLandingContextT = {
productUserExamples: Array<{ username: string; description: string }>
productCommunityExamples: Array<{ repo: string; description: string }>
featuredArticles: Array<{
label: string // Guides
key: string // Featured article section key (startHere, popular, etc.)
label: string // Start here, Popular, etc.
viewAllHref?: string // If provided, adds a "View All ->" to the header
viewAllTitleText?: string // Adds 'title' attribute text for the "View All" href
articles: Array<FeaturedLink>
Expand Down Expand Up @@ -133,16 +134,17 @@ export const getProductLandingContextFromRequest = async (

featuredArticles: Object.entries(req.context.featuredLinks || [])
.filter(([key]) => {
return key === 'guides' || key === 'popular' || key === 'videos'
return key === 'startHere' || key === 'popular' || key === 'videos'
})
.map(([key, links]: any) => {
return {
key,
label:
key === 'popular' || key === 'videos'
? req.context.page.featuredLinks[key + 'Heading'] || req.context.site.data.ui.toc[key]
: req.context.site.data.ui.toc[key],
viewAllHref:
key === 'guides' && !req.context.currentCategory && hasGuidesPage
key === 'startHere' && !req.context.currentCategory && hasGuidesPage
? `${req.context.currentPath}/guides`
: '',
articles: links.map((link: any) => {
Expand Down
10 changes: 10 additions & 0 deletions components/hooks/useNumberFormatter.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { useRouter } from 'next/router'

export function useNumberFormatter() {
const { locale } = useRouter()
return {
formatInteger: (num: number) => {
return new Intl.NumberFormat(locale).format(num)
},
}
}
4 changes: 3 additions & 1 deletion components/landing/FeaturedArticles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ export const FeaturedArticles = () => {
return (
<div className="d-lg-flex gutter my-6 py-6">
{featuredArticles.map((section, i) => {
const viewAllTitleText =
section.key === 'startHere' ? `All '${section.label}' content` : `All ${section.label}`
return (
<div
key={section.label + i}
Expand All @@ -20,7 +22,7 @@ export const FeaturedArticles = () => {
<ArticleList
title={section.label}
viewAllHref={section.viewAllHref}
{...(section.viewAllHref ? { viewAllTitleText: `All ${section.label}` } : {})}
{...(section.viewAllHref ? { viewAllTitleText } : {})}
articles={section.articles}
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion components/landing/ProductLanding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const ProductLanding = () => {
<div data-search="article-body">
{router.query.productId === 'rest' && <RestRedirect />}
<LandingSection className="pt-3">
<div className={cx('my-3 mr-auto width-full')} data-search="breadcrumbs">
<div className={cx('my-3 mr-auto width-full')}>
<Breadcrumbs />
</div>
<LandingHero />
Expand Down
2 changes: 1 addition & 1 deletion components/landing/TocLanding.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const TocLanding = () => {
<ClientSideRedirects />

<div className="container-xl px-3 px-md-6 my-4">
<div className={cx('my-3 mr-auto width-full')} data-search="breadcrumbs">
<div className={cx('my-3 mr-auto width-full')}>
<Breadcrumbs />
</div>
<ArticleGridLayout>
Expand Down
3 changes: 2 additions & 1 deletion components/rest/RestOperation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ import { LinkIconHeading } from 'components/article/LinkIconHeading'
import { Link } from 'components/Link'
import { useTranslation } from 'components/hooks/useTranslation'
import { RestPreviewNotice } from './RestPreviewNotice'
import styles from './RestOperation.module.scss'
import { ParameterTable } from 'components/parameter-table/ParameterTable'
import { RestCodeSamples } from './RestCodeSamples'
import { RestStatusCodes } from './RestStatusCodes'
import { Operation } from './types'

import styles from './RestOperation.module.scss'

type Props = {
operation: Operation
}
Expand Down
5 changes: 1 addition & 4 deletions components/rest/RestStatusCodes.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import cx from 'classnames'

import { useTranslation } from 'components/hooks/useTranslation'
import styles from './RestOperation.module.scss'
import { StatusCode } from './types'

type Props = {
Expand All @@ -18,7 +15,7 @@ export function RestStatusCodes({ statusCodes, slug }: Props) {
<a href={`#${slug}--status-codes`}>{t('rest.reference.http_status_code')}</a>
</h3>

<table className={cx(styles.restResponseTable, 'd-block')}>
<table>
<thead>
<tr className="text-left">
<th>{t('rest.reference.status_code')}</th>
Expand Down
8 changes: 8 additions & 0 deletions components/search/SearchResults.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.search_result {
mark {
background-color: transparent;
font-weight: bold;
}

word-wrap: break-word;
}
Loading
Loading