PageRenderTime 37ms CodeModel.GetById 13ms RepoModel.GetById 0ms app.codeStats 1ms

/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. # Shared Sandcastle build script overrides.
  2. function CreateOutputTemplate {
  3. WriteInfo "Creating output template."
  4. MakePath $TempDir\Output\html
  5. MakePath $TempDir\Output\Media
  6. copy-item -r $DxRoot\Presentation\$Style\icons $TempDir\Output
  7. copy-item -r $DxRoot\Presentation\$Style\scripts $TempDir\Output
  8. copy-item -r $DxRoot\Presentation\$Style\styles $TempDir\Output
  9. }
  10. function CreateChmTemplate {
  11. WriteInfo "Creating CHM template."
  12. MakePath $TempDir\Chm\html
  13. copy-item -r $TempDir\Output\media $TempDir\Chm
  14. copy-item -r $TempDir\Output\icons $TempDir\Chm
  15. copy-item -r $TempDir\Output\scripts $TempDir\Chm
  16. copy-item -r $TempDir\Output\styles $TempDir\Chm
  17. MakePath $TempDir\Intellisense
  18. }
  19. function CreateHxsTemplate {
  20. WriteInfo "Creating HxS template."
  21. $s = "$DxRoot\Presentation\Shared\HxsTemplate"
  22. $d = "$TempDir\Output\$Name"
  23. copy-item $s\template.HxF "$($d).HxF"
  24. copy-item $s\template_A.HxK "$($d)_A.HxK"
  25. copy-item $s\template_B.HxK "$($d)_B.HxK"
  26. copy-item $s\template_F.HxK "$($d)_F.HxK"
  27. copy-item $s\template_K.HxK "$($d)_K.HxK"
  28. copy-item $s\template_N.HxK "$($d)_N.HxK"
  29. copy-item $s\template_S.HxK "$($d)_S.HxK"
  30. }
  31. function CreateWebsiteTemplate {
  32. WriteInfo "Creating website template."
  33. MakePath $WebOutputDir
  34. MakePath $WebOutputDir\api
  35. copy-item -r $DxRoot\Presentation\$Style\icons $WebOutputDir
  36. copy-item -r $DxRoot\Presentation\$Style\styles $WebOutputDir
  37. copy-item -r -force $WebTemplate\* $WebOutputDir
  38. }