Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Announcement] 📢📢📢Move xref.docs.microsoft.com to a new endpoint #8958

Closed
yufeih opened this issue Jul 11, 2023 · 10 comments
Closed

Comments

@yufeih
Copy link
Contributor

yufeih commented Jul 11, 2023

With the move to https://learn.microsoft.com and for a more unified API integration experience, Microsoft Learn Engineering team is moving the https://xref.docs.microsoft.com endpoint to the new https://learn.microsoft.com/api/xref endpoint and planning on retire the xref.docs.microsoft.com domain at the end of this calendar year.

The new https://learn.microsoft.com/api/xref endpoint is effectively available from now and will receive the same SLA and support as the https://xref.docs.microsoft.com endpoint. This is an example query from both endpoints:

The old xref.docs.microsoft.com domain will still be supported until the end of this calendar year, giving users time to migrate to the new endpoint:

  • If you explicitly set the xrefService property to https://xref.docs.microsoft.com/query?uid={uid}, change the value to https://learn.microsoft.com/api/xref/query?uid={uid}.
  • If you depend on the https://xref.docs.microsoft.com endpoint for other reasons, change the base URL to https://learn.microsoft.com/api/xref.

This move does not retire the docs.microsoft.com domain, which would still be supported and be redirected to learn.microsoft.com.
This move does not change any functionality of the xref service, the API surface area would remain the same.

@yufeih yufeih pinned this issue Jul 11, 2023
@yufeih yufeih changed the title [Announcement] Move xref.docs.microsoft.com to a new endpoint [Announcement] 📢📢📢Move xref.docs.microsoft.com to a new endpoint Jul 11, 2023
@KalleOlaviNiemitalo
Copy link

KalleOlaviNiemitalo commented Jul 11, 2023

Are the endpoint and the SLA going to be documented at https://learn.microsoft.com/en-us/training/support/integrations?

It isn't really "training", but I don't see where else learn.microsoft.com APIs are documented.

@yufeih
Copy link
Contributor Author

yufeih commented Jul 12, 2023

No. With #8595 docfx now does not depend on the xref service to resolve BCL types. Deprecated APIs are not documented on MS learn. We still keep the xref service endpoint at the moment for people not updated to the latest version of docfx and uses the endpoint directly for other purposes.

@yufeih yufeih unpinned this issue Jul 15, 2023
MSDN-WhiteKnight added a commit to MSDN-WhiteKnight/dotnet-docs-ru that referenced this issue Aug 2, 2023
@yufeih yufeih closed this as completed Oct 9, 2023
@gfraiteur
Copy link

Is there any new restriction to use this service? I am intermittently getting "access denied" when building our doc (Metalama).

@glopesdev
Copy link

@gfraiteur @yufeih same here, unable to build docs with either old or new xrefService due to 403 access denied.

@gfraiteur
Copy link

We figured out that the 403 seems to be caused by a throttling mechanism. When this happens, the whole office is losing access to the whole learn.microsoft.com for a few minutes. Needless to say, this is highly annoying, and our online doc no longer has completely resolved XRefs.

@glopesdev
Copy link

@gfraiteur thanks for the quick reply, I tried changing my IP and indeed this solved the issue, so it seems like a throttling mechanism is indeed in place.

@filzrev
Copy link
Contributor

filzrev commented Dec 20, 2023

The old xref.docs.microsoft.com domain will still be supported until the end of this calendar year, giving users time to migrate to the new endpoint:

Support for xref.docs.microsoft.com is scheduled to end of this month.
But it seems that a lot of docfx users are using docfx v2.59.4 and not updating xrefService URL.

Is this endpoint stopped according to schedule that described above?

Misha-133 added a commit to discord-net/Discord.Net that referenced this issue Feb 11, 2024
* [Docs] Get docs working on latest docfx version.

Removed light-dark-theme as it didn't work with modern docfx, and Material provides the features it provided anyways.

Gotta figure out how to get the description generator and "last modified" plugins to work.

* [Docs] Get docs working on latest docfx version.

Removed light-dark-theme as it didn't work with modern docfx, and Material provides the features it provided anyways.

Gotta figure out how to get the description generator and "last modified" plugins to work.

* [Docs] Re-add search index extractor.

* [Docs] Use material theme and override derived tree style.

Also adds a tiny GitHub icon on the navbar.

* [Docs] Exclude DebugTools project.

* [Docs] Use better method for overriding things.

Totally not because DocFX won't allow me to have an override template.

* [Docs] Improve styling overrides.

* [Docs] Fix links in FAQs and guides.

* [Docs] Use new xref service.

The old xref service is being deprecated by the end of the year.
See dotnet/docfx#8958

* [Docs] Replace (c) with proper copyright symbol.

* [Docs] Fix formatting in docfx.json file.

Thanks, VSCode.

* [Docs] Remove non-working post processors.

They don't work, and *personally* I feel like they're unnecessary considering you can check the last modification date in the (linked) GitHub page. I honestly have no idea what the other post processor does and honestly the code doesn't help much either.

* [Docs] Fix "in this article" being too thin.

Fixes #2778 (comment)

* [Docs] Get examples working again.

* [Docs] Make properties be separated more clearly.

* [Docs] Change docs index to reflect the new nightly MyGet feed.

* [Docs] Get docs working on latest docfx version.

Removed light-dark-theme as it didn't work with modern docfx, and Material provides the features it provided anyways.

Gotta figure out how to get the description generator and "last modified" plugins to work.

* [Docs] Get docs working on latest docfx version.

Removed light-dark-theme as it didn't work with modern docfx, and Material provides the features it provided anyways.

Gotta figure out how to get the description generator and "last modified" plugins to work.

* [Docs] Re-add search index extractor.

* [Docs] Use material theme and override derived tree style.

Also adds a tiny GitHub icon on the navbar.

* [Docs] Exclude DebugTools project.

* [Docs] Use better method for overriding things.

Totally not because DocFX won't allow me to have an override template.

* [Docs] Improve styling overrides.

* [Docs] Fix links in FAQs and guides.

* [Docs] Use new xref service.

The old xref service is being deprecated by the end of the year.
See dotnet/docfx#8958

* [Docs] Replace (c) with proper copyright symbol.

* [Docs] Fix formatting in docfx.json file.

Thanks, VSCode.

* [Docs] Remove non-working post processors.

They don't work, and *personally* I feel like they're unnecessary considering you can check the last modification date in the (linked) GitHub page. I honestly have no idea what the other post processor does and honestly the code doesn't help much either.

* [Docs] Fix "in this article" being too thin.

Fixes #2778 (comment)

* [Docs] Get examples working again.

* [Docs] Make properties be separated more clearly.

* [Docs] Change docs index to reflect the new nightly MyGet feed.

* [Docs] Fix index image not switching when changing themes.

Co-Authored-By: exsersewo <[email protected]>

* add updated description generator postprocessor

* update postprocessor

* got it working

* downgrade postprocessor docfx

* [Docs] Add left margin to side navigation links.

* remove dup docs cuz `<inheritdoc />`

---------

Co-authored-by: exsersewo <[email protected]>
Co-authored-by: Misha133 <[email protected]>
Co-authored-by: Mihail Gribkov <[email protected]>
@mikeebowen
Copy link

With the move to https://learn.microsoft.com and for a more unified API integration experience, Microsoft Learn Engineering team is moving the https://xref.docs.microsoft.com endpoint to the new https://learn.microsoft.com/api/xref endpoint and planning on retire the xref.docs.microsoft.com domain at the end of this calendar year.

The new https://learn.microsoft.com/api/xref endpoint is effectively available from now and will receive the same SLA and support as the https://xref.docs.microsoft.com endpoint. This is an example query from both endpoints:

The old xref.docs.microsoft.com domain will still be supported until the end of this calendar year, giving users time to migrate to the new endpoint:

  • If you explicitly set the xrefService property to https://xref.docs.microsoft.com/query?uid={uid}, change the value to https://learn.microsoft.com/api/xref/query?uid={uid}.
  • If you depend on the https://xref.docs.microsoft.com endpoint for other reasons, change the base URL to https://learn.microsoft.com/api/xref.

This move does not retire the docs.microsoft.com domain, which would still be supported and be redirected to learn.microsoft.com. This move does not change any functionality of the xref service, the API surface area would remain the same.

The links in your post get 404.

@gfraiteur
Copy link

It seems that https://learn.microsoft.com/api/xref/ does not solve the problem we are having: being victim to an IP-based usage threshold. When we compile our documentation, after a few seconds, the whole IP gets an Access Denied error on the whole https://learn.microsoft.com domain. We have to wait a couple of minutes before getting access back. It's not possible to compile our documentation in these conditions.

@filzrev
Copy link
Contributor

filzrev commented Jun 29, 2024

xrefService endpoint is retired as announced at #9659
And xrefService option is no longer supported on latest version of docfx.

When using older version of docfx or using xref link inside conceptual document.
It need to set xref option instead.
https://dotnet.github.io/docfx/docs/links-and-cross-references.html#cross-reference-to-net-basic-class-library

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants