Skip to content

Commit 1e80657

Browse files
authored
Merge branch 'main' into copilot-ga-megabranch
2 parents b2e9d0b + 97c2e48 commit 1e80657

File tree

163 files changed

+6716
-5874
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

163 files changed

+6716
-5874
lines changed

.github/workflows/pa11y.yml

Lines changed: 0 additions & 42 deletions
This file was deleted.

.pa11yci

Lines changed: 0 additions & 102 deletions
This file was deleted.
24.5 KB
Loading
43.9 KB
Loading
6.01 KB
Loading
32.2 KB
Loading
-1.49 KB
Loading

components/context/ArticleContext.tsx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,11 @@ export type LearningTrack = {
88
}
99

1010
export type MiniTocItem = {
11-
platform: string
12-
contents: string
11+
platform?: string
12+
contents: {
13+
href: string
14+
title: string
15+
}
1316
items?: MiniTocItem[]
1417
}
1518

components/context/RestContext.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
import { createContext, useContext } from 'react'
2-
3-
export type MiniTocItem = {
4-
platform: string
5-
contents: string & { title: string; href: string }
6-
items?: MiniTocItem[]
7-
}
2+
import type { MiniTocItem } from 'components/context/ArticleContext'
83

94
export type RestContextT = {
105
title: string

components/sidebar/RestCollapsibleSection.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ import { ActionList } from '@primer/react'
77
import { Link } from 'components/Link'
88
import { ProductTreeNode } from 'components/context/MainContext'
99
import { EventType, sendEvent } from 'components/lib/events'
10-
import { MiniTocItem, useRestContext } from 'components/context/RestContext'
10+
import { useRestContext } from 'components/context/RestContext'
11+
import type { MiniTocItem } from 'components/context/ArticleContext'
1112
import styles from './SidebarProduct.module.scss'
1213

1314
type SectionProps = {

0 commit comments

Comments
 (0)