Skip to content

Commit

Permalink
Delete redundant files and point to common scripts (Azure#17292)
Browse files Browse the repository at this point in the history
  • Loading branch information
sima-zhu authored and annelo-msft committed Feb 17, 2021
1 parent 97fa855 commit 8dd8de7
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 1,176 deletions.
5 changes: 3 additions & 2 deletions doc/ApiDocGeneration/Generate-Api-Docs.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ $DocOutApiDir = "${DocOutDir}/api"
$DocOutHtmlDir = "${DocOutDir}/_site"
$MDocTool = "${BinDirectory}/mdoc/mdoc.exe"
$DocFxTool = "${BinDirectory}/docfx/docfx.exe"
$DocCommonGenDir = "$RepoRoot/eng/common/docgeneration"

if ($LibType -eq 'management') {
$ArtifactName = $ArtifactName.Substring($ArtifactName.LastIndexOf('.Management') + 1)
Expand Down Expand Up @@ -128,7 +129,7 @@ Write-Verbose "Copy over generated yml and other assets"
Copy-Item "${YamlOutDir}/*"-Destination "${DocOutApiDir}" -Recurse -Force
Copy-Item "${DocGenDir}/assets/docfx.json" -Destination "${DocOutDir}" -Recurse -Force
New-Item -Path "${DocOutDir}" -Name templates -ItemType directory
Copy-Item "${DocGenDir}/templates/**" -Destination "${DocOutDir}/templates" -Recurse -Force
Copy-Item "${DocCommonGenDir}/templates/**" -Destination "${DocOutDir}/templates" -Recurse -Force

Write-Verbose "Create Toc for Site Navigation"
New-Item "${DocOutDir}/toc.yml" -Force
Expand All @@ -138,7 +139,7 @@ Write-Verbose "Build Doc Content"
& "${DocFxTool}" build "${DocOutDir}/docfx.json"

Write-Verbose "Copy over site Logo"
Copy-Item "${DocGenDir}/assets/logo.svg" -Destination "${DocOutHtmlDir}" -Recurse -Force
Copy-Item "${DocCommonGenDir}/assets/logo.svg" -Destination "${DocOutHtmlDir}" -Recurse -Force

Write-Verbose "Compress and copy HTML into the staging Area"
Compress-Archive -Path "${DocOutHtmlDir}/*" -DestinationPath "${ArtifactStagingDirectory}/${ArtifactName}/${ArtifactName}.docs.zip" -CompressionLevel Fastest
150 changes: 0 additions & 150 deletions doc/ApiDocGeneration/Generate-DocIndex.ps1

This file was deleted.

76 changes: 0 additions & 76 deletions doc/ApiDocGeneration/assets/logo.svg

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 8dd8de7

Please sign in to comment.