File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,9 @@ export interface ExportSettingsData
33
33
exportPreset : string ;
34
34
openAfterExport : boolean ;
35
35
36
+ // 生成默认首页
37
+ generateIndexPage : boolean ;
38
+
36
39
// Graph View Settings
37
40
graphAttractionForce : number ;
38
41
graphLinkLength : number ;
@@ -81,6 +84,9 @@ export const DEFAULT_EXP_SETTINGS: ExportSettingsData =
81
84
exportPreset : '' ,
82
85
openAfterExport : false ,
83
86
87
+ //
88
+ generateIndexPage : true ,
89
+
84
90
// Graph View Settings
85
91
graphAttractionForce : 1 ,
86
92
graphLinkLength : 10 ,
Original file line number Diff line number Diff line change @@ -143,8 +143,13 @@ export class HTMLGenerator {
143
143
const dataNode = this . generateRootDirNode ( file , prefix , usingDocument ) ;
144
144
leftSidebar . appendChild ( dataNode ) ;
145
145
file . downloads . push ( new Downloadable ( '_common-left-tree.html' , fileTree . outerHTML , rootDir ) ) ;
146
+ // TODO: 摆脱includeFileTree限制,定制优化index首页UI样式
147
+ if ( InvioSettingTab . settings . generateIndexPage ) {
148
+ file . downloads . push ( new Downloadable ( 'index.html' , fileTree . outerHTML , rootDir ) ) ;
149
+ }
146
150
}
147
151
152
+
148
153
await this . appendFooter ( file ) ;
149
154
await this . fillInHead ( file , rootPath , remoteDomain ) ;
150
155
You can’t perform that action at this time.
0 commit comments