Skip to content

Commit

Permalink
fix the intersphinx references for a new reference methodology (Azure…
Browse files Browse the repository at this point in the history
  • Loading branch information
scbedd authored Jan 21, 2025
1 parent df6bb6c commit c78bdad
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
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

0 comments on commit c78bdad

Please sign in to comment.