@@ -52,6 +52,7 @@ public static void SetGlobals(WebDocument document, WebDocumentOptions options,
52
52
document . Global . Put ( "slideMargin" , 10 ) ;
53
53
document . Global . Put ( "embedImages" , options . EmbedImages ) ;
54
54
document . Global . Put ( "animateTransitions" , options . AnimateTransitions ) ;
55
+ document . Global . Put ( "navigationEnabled" , false ) ;
55
56
document . Global . Put ( "imagesPath" , imagesPath ) ;
56
57
document . Global . Put ( "fontsPath" , fontsPath ) ;
57
58
document . Global . Put ( "mediaPath" , mediaPath ) ;
@@ -73,6 +74,10 @@ public static WebDocument ToSinglePageWebDocument(
73
74
document . Global . Put ( "scriptsPath" , outputPath ) ;
74
75
75
76
document . AddCommonInputOutput ( options , templatesPath , outputPath , pres ) ;
77
+
78
+ if ( ! options . EmbedImages )
79
+ document . AddThumbnailsOutput ( document . Global . Get < string > ( "imagesPath" ) , pres ) ;
80
+
76
81
return document ;
77
82
}
78
83
@@ -88,23 +93,21 @@ public static WebDocument ToMultiPageWebDocument(
88
93
89
94
SetGlobals ( document , options , outputPath ) ;
90
95
91
- document . AddCommonInputOutput ( options , templatesPath , outputPath , pres ) ;
92
-
93
96
string slidesPath = Path . Combine ( outputPath , "slides" ) ;
94
97
string stylesPath = Path . Combine ( outputPath , "styles" ) ;
95
98
string scriptsPath = Path . Combine ( outputPath , "scripts" ) ;
96
99
97
100
document . Global . Put ( "slidesPath" , slidesPath ) ;
98
101
document . Global . Put ( "stylesPath" , stylesPath ) ;
99
102
document . Global . Put ( "scriptsPath" , scriptsPath ) ;
103
+
104
+ document . AddCommonInputOutput ( options , templatesPath , outputPath , pres ) ;
100
105
101
106
document . AddMultiPageInputTemplates ( templatesPath ) ;
102
107
document . AddMultiPageOutputFiles ( slidesPath , pres ) ;
103
108
104
109
if ( ! options . EmbedImages )
105
- {
106
110
document . AddThumbnailsOutput ( document . Global . Get < string > ( "imagesPath" ) , pres ) ;
107
- }
108
111
109
112
return document ;
110
113
}
@@ -135,6 +138,7 @@ private static void AddCommonInputOutput(this WebDocument document, WebDocumentO
135
138
document . Input . AddTemplate < Presentation > ( "styles-pres" , Path . Combine ( templatesPath , @"styles\pres.css" ) ) ;
136
139
document . Input . AddTemplate < MasterSlide > ( "styles-master" , Path . Combine ( templatesPath , @"styles\master.css" ) ) ;
137
140
document . Input . AddTemplate < Presentation > ( "scripts-animation" , Path . Combine ( templatesPath , @"scripts\animation.js" ) ) ;
141
+ document . Input . AddTemplate < Presentation > ( "scripts-navigation" , Path . Combine ( templatesPath , @"scripts\navigation.js" ) ) ;
138
142
139
143
document . Input . AddTemplate < Presentation > ( "index" , Path . Combine ( templatesPath , "index.html" ) ) ;
140
144
document . Input . AddTemplate < Slide > ( "slide" , Path . Combine ( templatesPath , "slide.html" ) ) ;
@@ -154,6 +158,7 @@ private static void AddCommonInputOutput(this WebDocument document, WebDocumentO
154
158
document . Output . Add ( Path . Combine ( stylesPath , "pres.css" ) , "styles-pres" , pres ) ;
155
159
document . Output . Add ( Path . Combine ( stylesPath , "master.css" ) , "styles-master" , ( MasterSlide ) pres . Masters [ 0 ] ) ;
156
160
document . Output . Add ( Path . Combine ( scriptsPath , "animation.js" ) , "scripts-animation" , pres ) ;
161
+ document . Output . Add ( Path . Combine ( scriptsPath , "navigation.js" ) , "scripts-navigation" , pres ) ;
157
162
158
163
document . AddEmbeddedFontsOutput ( document . Global . Get < string > ( "fontsPath" ) , pres ) ;
159
164
document . AddVideoOutput ( document . Global . Get < string > ( "mediaPath" ) , pres ) ;
0 commit comments