[1146] | 1 |
|
---|
| 2 | # Shared Sandcastle build script overrides.
|
---|
| 3 |
|
---|
| 4 | function 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 |
|
---|
| 13 | function 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 |
|
---|
| 24 | function 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 |
|
---|
| 37 | function 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 | }
|
---|