patridge / learn-metadata-tool

Chrome extension for Microsoft Learn folks to find content maintainers and GitHub content pages.
https://chrome.google.com/webstore/detail/microsoft-learn-maintenan/kagphmnlicelfcbbhhmgjcpgnbponlda
MIT License
2 stars 0 forks source link

GitHub Markdown URL for Learn pages sometimes not valid #62

Open patridge opened 3 years ago

patridge commented 3 years ago

[Edit: updated URLs after Microsoft Docs => Microsoft Learn rebrand]

Example: https://learn.microsoft.com/en-us/training/modules/azure-compute-fundamentals/azure-container-services Markdown file link: https://github.com/MicrosoftDocs/learn-pr/blob/main/learn-pr/azure-fundamentals/azure-compute-fundamentals/includes/azure-container-services.md

Because this module uses azure-container-services.yml but 5-azure-container-services.md for the Markdown, that URL logic is failing.

patridge commented 3 years ago

[Edit: updated URLs after Microsoft Docs => Microsoft Learn rebrand]

Another example found in #61

Page: https://learn.microsoft.com/en-us/training/modules/fundamental-azure-concepts/knowledge-check Markdown (fail: 404): https://github.com/MicrosoftDocs/learn-pr/blob/live/learn-pr/azure-fundamentals/fundamental-azure-concepts/includes/knowledge-check.md

patridge commented 3 years ago

Seems we need some way to look up the unit YAML, and then find the referenced content include MD file from there to get the MD edit URL.