Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix the intersphinx references for the new reference methodology
  • Loading branch information
scbedd committed Jan 21, 2025
commit fafd09b8cbcb43093e98386218c615b2f87c897f
16 changes: 8 additions & 8 deletions doc/sphinx/_static/js/get_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ function currentPackage(){
function httpGetAsync(targetUrl, callback)
{
var xmlHttp = new XMLHttpRequest();
xmlHttp.onreadystatechange = function() {
xmlHttp.onreadystatechange = function() {
if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
callback(xmlHttp.responseText);
}
xmlHttp.open("GET", targetUrl, true); // true for asynchronous
xmlHttp.open("GET", targetUrl, true); // true for asynchronous
xmlHttp.send(null);
}

Expand All @@ -45,8 +45,8 @@ function hideSelectors(selectors){

function populateOptions(optionSelector, otherSelectors){
if(currentPackage()){
var versionRequestUrl = "https://azuresdkdocs.blob.core.windows.net/$web/" + SELECTED_LANGUAGE + "/" + currentPackage() + "/versioning/versions"
var versionRequestUrl = "https://azuresdkdocs.z19.web.core.windows.net/" + SELECTED_LANGUAGE + "/" + currentPackage() + "/versioning/versions"

httpGetAsync(versionRequestUrl, function(responseText){
if(responseText){
options = responseText.match(/[^\r\n]+/g)
Expand All @@ -68,7 +68,7 @@ function populateOptions(optionSelector, otherSelectors){

function populateVersionDropDown(selector, values){
var select = $(selector)

$('option', select).remove()

$.each(values, function(index, text) {
Expand All @@ -80,17 +80,17 @@ function populateVersionDropDown(selector, values){
select.selectedIndex = 0
}
else {
select.val(version)
select.val(version)
}
}

function getPackageUrl(language, package, version){
return "https://azuresdkdocs.blob.core.windows.net/$web/" + language + "/" + package + "/"+ version + "/index.html"
return "https://azuresdkdocs.z19.web.core.windows.net/" + language + "/" + package + "/"+ version + "/index.html"
}

function populateIndexList(selector, packageName)
{
url = "https://azuresdkdocs.blob.core.windows.net/$web/" + SELECTED_LANGUAGE + "/" + packageName + "/versioning/versions"
url = "https://azuresdkdocs.z19.web.windows.net/" + SELECTED_LANGUAGE + "/" + packageName + "/versioning/versions"

httpGetAsync(url, function (responseText){
if(responseText){
Expand Down
4 changes: 2 additions & 2 deletions doc/sphinx/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@
'trio': ('https://trio.readthedocs.io/en/stable/', None),
'msal': ('https://msal-python.readthedocs.io/en/latest/', None),
# Azure packages
'azure-core': ('https://azuresdkdocs.blob.core.windows.net/$web/python/azure-core/latest/', None),
'azure-identity': ('https://azuresdkdocs.blob.core.windows.net/$web/python/azure-identity/latest/', None),
'azure-core': ('https://azuresdkdocs.z19.web.core.windows.net/python/azure-core/latest/', None),
'azure-identity': ('https://azuresdkdocs.z19.web.core.windows.net/python/azure-identity/latest/', None),
}

autodoc_member_order = 'groupwise'
Expand Down
4 changes: 2 additions & 2 deletions doc/sphinx/individual_build_conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@
'trio': ('https://trio.readthedocs.io/en/stable/', None),
'msal': ('https://msal-python.readthedocs.io/en/latest/', None),
# Azure packages
'azure-core': ('https://azuresdkdocs.blob.core.windows.net/$web/python/azure-core/1.0.0/', None),
'azure-identity': ('https://azuresdkdocs.blob.core.windows.net/$web/python/azure-identity/1.0.0/', None),
'azure-core': ('https://azuresdkdocs.z19.web.core.windows.net/python/azure-core/1.0.0/', None),
'azure-identity': ('https://azuresdkdocs.z19.web.core.windows.net/python/azure-identity/1.0.0/', None),
}

autodoc_member_order = 'groupwise'
Expand Down
Loading