Generate Azure Wiki-friendly markdown files about the most viewed pages of a specific Azure DevOps Wiki.
$ dotnet add package WikiPageStatsGeneratorWiki Page Stats Generator is a dotnet app that generates Azure Wiki-friendly markdown files about the most viewed pages of a specific Azure DevOps Wiki.
Based on this URL use the following parameters:
dotnet tool install --global WikiPageStatsGenerator
# obtain an Azure PAT:
# https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate?view=azure-devops&tabs=Windows#create-a-pat
# this assumes you want to output the markdown files to `/wiki`
WikiPageStatsGenerator \
--azure-pat <azure-pat> \
--organization <organization> #vimaster \
--project <project> #newtendoland \
--wiki-identifier <wiki> #newtendoland-wiki \
--output-path /wiki
This will generate a file at /wiki/Most-Viewed-Pages.md with the following content:
