Skip to content

Commit

Permalink
Ensure Management is at the bottom of the ToC (as is correct placemen…
Browse files Browse the repository at this point in the history
…t for Management libraries in ToC)
  • Loading branch information
danieljurek committed Nov 15, 2024
1 parent 09fb2e6 commit d36dc28
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions eng/scripts/docs/Docs-ToC.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,12 @@ function Get-javascript-UpdatedDocsMsToc($toc) {
}

# Sort the items in the Cognitive Services ToC so OpenAI ends up in the
# correct place
$services[$i].items = $services[$i].items | Sort-Object -Property name
# correct place. The "Management" item should always be at the end of the
# list.
$management = $services[$i].items | Where-Object { $_.name -eq 'Management' }
$sortedItems = $services[$i].items | Where-Object { $_.name -ne 'Management' } | Sort-Object -Property name

$services[$i].items = $sortedItems + $management
}
}

Expand Down

0 comments on commit d36dc28

Please sign in to comment.