File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ export declare type BaseDocumentationContainer = {
80
80
export declare type ProcessBlock = {
81
81
main : boolean ;
82
82
renderer : boolean ;
83
+ exported : boolean ;
83
84
} ;
84
85
export declare type ModuleDocumentationContainer = {
85
86
type : 'Module' ;
Original file line number Diff line number Diff line change @@ -755,9 +755,16 @@ export const convertListToTypedKeys = (listTokens: Token[]): TypedKeyList => {
755
755
756
756
export const findProcess = ( tokens : Token [ ] ) : ProcessBlock => {
757
757
for ( const tk of tokens ) {
758
- if ( tk . type === 'inline' && tk . content . indexOf ( 'Process' ) === 0 ) {
758
+ if (
759
+ tk . type === 'inline' &&
760
+ ( tk . content . startsWith ( 'Process' ) || tk . content . startsWith ( 'Exported in' ) )
761
+ ) {
759
762
const ptks = tk . children ! . slice ( 2 , tk . children ! . length - 1 ) ;
760
- const procs : ProcessBlock = { main : false , renderer : false } ;
763
+ const procs : ProcessBlock = {
764
+ main : false ,
765
+ renderer : false ,
766
+ exported : tk . content . startsWith ( 'Exported in' ) ,
767
+ } ;
761
768
for ( const ptk of ptks ) {
762
769
if ( ptk . type !== 'text' ) continue ;
763
770
if ( ptk . content === 'Main' ) procs . main = true ;
@@ -766,7 +773,7 @@ export const findProcess = (tokens: Token[]): ProcessBlock => {
766
773
return procs ;
767
774
}
768
775
}
769
- return { main : true , renderer : true } ;
776
+ return { main : true , renderer : true , exported : false } ;
770
777
} ;
771
778
772
779
export const slugifyHeading = ( heading : string ) : string => {
You can’t perform that action at this time.
0 commit comments