* Fixed the docindex.yml and rename the files * Reset the mutated changes * Force checkout as the changes have already copied out * Minor changes for parameters * Update Generate-DocIndex.ps1 * Update Generate-DocIndex.ps1 * Update Generate-DocIndex.ps1 * Added function to common * Update Generate-DocIndex.ps1 Co-authored-by: Sima Zhu <sizhu@microsoft.com> Co-authored-by: Sima Zhu <48036328+sima-zhu@users.noreply.github.com>
37 lines
1.4 KiB
PowerShell
37 lines
1.4 KiB
PowerShell
$RepoRoot = Resolve-Path "${PSScriptRoot}..\..\..\.."
|
|
$EngDir = Join-Path $RepoRoot "eng"
|
|
$EngCommonDir = Join-Path $EngDir "common"
|
|
$EngCommonScriptsDir = Join-Path $EngCommonDir "scripts"
|
|
$EngScriptsDir = Join-Path $EngDir "scripts"
|
|
|
|
# Import required scripts
|
|
. (Join-Path $EngCommonScriptsDir SemVer.ps1)
|
|
. (Join-Path $EngCommonScriptsDir ChangeLog-Operations.ps1)
|
|
. (Join-Path $EngCommonScriptsDir Package-Properties.ps1)
|
|
. (Join-Path $EngCommonScriptsDir logging.ps1)
|
|
. (Join-Path $EngCommonScriptsDir Invoke-GitHubAPI.ps1)
|
|
. (Join-Path $EngCommonScriptsDir Invoke-DevOpsAPI.ps1)
|
|
. (Join-Path $EngCommonScriptsDir artifact-metadata-parsing.ps1)
|
|
|
|
# Setting expected from common languages settings
|
|
$Language = "Unknown"
|
|
$PackageRepository = "Unknown"
|
|
$packagePattern = "Unknown"
|
|
$MetadataUri = "Unknown"
|
|
|
|
# Import common language settings
|
|
$EngScriptsLanguageSettings = Join-path $EngScriptsDir "Language-Settings.ps1"
|
|
if (Test-Path $EngScriptsLanguageSettings) {
|
|
. $EngScriptsLanguageSettings
|
|
}
|
|
if (-not $LanguageShort)
|
|
{
|
|
$LangaugeShort = $Language
|
|
}
|
|
|
|
# Transformed Functions
|
|
$GetPackageInfoFromRepoFn = "Get-${Language}-PackageInfoFromRepo"
|
|
$GetPackageInfoFromPackageFileFn = "Get-${Language}-PackageInfoFromPackageFile"
|
|
$PublishGithubIODocsFn = "Publish-${Language}-GithubIODocs"
|
|
$UpdateDocCIFn = "Update-${Language}-CIConfig"
|
|
$GetGithubIoDocIndexFn = "Get-${Language}-GithubIoDocIndex" |