File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
packages/gitbook/src/components Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,9 @@ type AIAction = {
21
21
22
22
export function AIActionsDropdown ( props : {
23
23
markdown ?: string ;
24
- markdownUrl : string ;
24
+ markdownPageUrl : string ;
25
25
} ) {
26
- const { markdown, markdownUrl } = props ;
26
+ const { markdown, markdownPageUrl } = props ;
27
27
28
28
const chatController = useAIChatController ( ) ;
29
29
const chat = useAIChatState ( ) ;
@@ -47,7 +47,7 @@ export function AIActionsDropdown(props: {
47
47
icon : < AIChatIcon /> ,
48
48
label : 'Ask Docs Assistant' ,
49
49
description : 'Ask our Docs Assistant about this page' ,
50
- onClick : ( ) => { } ,
50
+ onClick : handleOpenAIAssistant ,
51
51
} ,
52
52
...( markdown
53
53
? [
@@ -74,7 +74,7 @@ export function AIActionsDropdown(props: {
74
74
description : 'View this page as plain text' ,
75
75
isExternal : true ,
76
76
onClick : ( ) => {
77
- window . open ( markdownUrl , '_blank' ) ;
77
+ window . open ( markdownPageUrl , '_blank' ) ;
78
78
} ,
79
79
} ,
80
80
] ;
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ export async function PageHeader(props: {
102
102
{ page . layout . tableOfContents ? (
103
103
< AIActionsDropdown
104
104
markdown = { markdownResult . data }
105
- markdownUrl = { `${ context . linker . toPathInSite ( page . path ) } .md` }
105
+ markdownPageUrl = { `${ context . linker . toPathInSite ( page . path ) } .md` }
106
106
/>
107
107
) : null }
108
108
</ div >
You can’t perform that action at this time.
0 commit comments