PageRenderTime 14ms CodeModel.GetById 9ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/Main/Source/Sandcastle/Presentation/Shared/SharedDocModel.ps1

#
Powershell | 44 lines | 37 code | 6 blank | 1 comment | 0 complexity | 2da09d525ea10e03c69145886cb47af9 MD5 | raw file
Possible License(s): CC-BY-SA-3.0
 1
 2# Shared Sandcastle build script overrides.
 3
 4function CreateOutputTemplate {
 5	WriteInfo "Creating output template."
 6    MakePath $TempDir\Output\html
 7    MakePath $TempDir\Output\Media
 8    copy-item -r $DxRoot\Presentation\$Style\icons $TempDir\Output
 9    copy-item -r $DxRoot\Presentation\$Style\scripts $TempDir\Output
10    copy-item -r $DxRoot\Presentation\$Style\styles $TempDir\Output
11}
12
13function CreateChmTemplate {
14	WriteInfo "Creating CHM template."
15    MakePath $TempDir\Chm\html
16    copy-item -r $TempDir\Output\media $TempDir\Chm
17    copy-item -r $TempDir\Output\icons $TempDir\Chm
18    copy-item -r $TempDir\Output\scripts $TempDir\Chm
19    copy-item -r $TempDir\Output\styles $TempDir\Chm
20
21    MakePath $TempDir\Intellisense
22}
23
24function CreateHxsTemplate {
25	WriteInfo "Creating HxS template."
26	$s = "$DxRoot\Presentation\Shared\HxsTemplate"
27	$d = "$TempDir\Output\$Name"
28	copy-item $s\template.HxF "$($d).HxF"
29	copy-item $s\template_A.HxK "$($d)_A.HxK"
30	copy-item $s\template_B.HxK "$($d)_B.HxK"
31	copy-item $s\template_F.HxK "$($d)_F.HxK"
32	copy-item $s\template_K.HxK "$($d)_K.HxK"
33	copy-item $s\template_N.HxK "$($d)_N.HxK"
34	copy-item $s\template_S.HxK "$($d)_S.HxK"
35}
36
37function CreateWebsiteTemplate {
38	WriteInfo "Creating website template."
39	MakePath $WebOutputDir
40	MakePath $WebOutputDir\api
41    copy-item -r $DxRoot\Presentation\$Style\icons $WebOutputDir
42    copy-item -r $DxRoot\Presentation\$Style\styles $WebOutputDir
43    copy-item -r -force $WebTemplate\* $WebOutputDir
44}