MicrosoftDocs / azure-docs-sdk-python

Azure Python SDK documentation, hosted on docs.microsoft.com.
https://docs.microsoft.com/python/api
Creative Commons Attribution 4.0 International
124 stars 235 forks source link

Add redirections for simplifying TOC has removed distribution level pages #1879

Closed junshi356 closed 3 months ago

junshi356 commented 3 months ago

Add .openpublishing.redirection.simplify-package-structure.json containing redirections from previously distribution level pages (now removed from main branch) to top level namespaces.

learn-build-service-prod[bot] commented 3 months ago

Learn Build status updates of commit a6800ed:

:white_check_mark: Validation status: passed

File Status Preview URL Details
.openpublishing.publish.config.json :white_check_mark:Succeeded
redirections/.openpublishing.redirection.simplify-package-structure.json :white_check_mark:Succeeded View (azure-python)
View (azure-python-preview)
View (azure-python-previous)

For more details, please refer to the build report.

For any questions, please:

junshi356 commented 3 months ago

Evidence:

On learn live branch:

https://learn.microsoft.com/en-us/python/api/azure-communication-phonenumbers/?view=azure-python goes to distribution page

https://review.learn.microsoft.com/en-us/python/api/azure-communication-phonenumbers/index?view=azure-python&branch=pr-en-us-1879 redirects to namespace page. (We've deleted distribution page in simplify TOC user story) -> https://review.learn.microsoft.com/en-us/python/api/azure-communication-phonenumbers/azure.communication.phonenumbers?view=azure-python&branch=pr-en-us-1879

For legacy moniker:

https://learn.microsoft.com/en-us/python/api/azure-cosmos/index?view=azure-python-previous goes to distribution page

https://review.learn.microsoft.com/en-us/python/api/azure-cosmos/index?view=azure-python-previous&branch=pr-en-us-1879 redirects to namespace page

For preview moniker:

https://learn.microsoft.com/en-us/python/api/azure-mgmt-healthcareapis/index?view=azure-python-preview goes to distribution page

https://review.learn.microsoft.com/en-us/python/api/azure-mgmt-healthcareapis/index?view=azure-python-preview&branch=pr-en-us-1879 redirects to namespace page