Skip to content

Commit

Permalink
Fix navigation issue at Luigi documentation website
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleychh authored Oct 26, 2021
1 parent 8966746 commit d87d025
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions website/docs/src/luigi-config/extended/navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,23 @@ const getDocuItems = () => {
headers: {
'Strict-Transport-Security': 'max-age=31536000; includeSubDomains; preload'
}
}).then(function (obj) {
return obj.json();
}).then(function (json) {
return json.map((child) => {
child.viewUrl = child.viewUrl.replace('__BASE_URL__', baseUrl);
return child;
});
}).catch(function (err) {
console.error(`Error: ${err}`);
})
}
.then(function(obj) {
return obj.json();
})
.then(function(json) {
return json.map(child => {
child.viewUrl = child.viewUrl.replace('__BASE_URL__', baseUrl);
return child;
});
})
.catch(function(err) {
console.error(`Error: ${err}`);
});
};

class Navigation {
addNavHrefs = true;
nodes = {
defaultChildNode: 'docs',
children: [
Expand Down Expand Up @@ -74,8 +78,7 @@ class Navigation {
getProductSwitcherItems = () => {
const items = [
{
icon:
'https://pbs.twimg.com/profile_images/1143452953858183170/QLk-HGmK_bigger.png',
icon: 'https://pbs.twimg.com/profile_images/1143452953858183170/QLk-HGmK_bigger.png',
label: 'hybris',
externalLink: {
url: 'https://www.hybris.com',
Expand Down

0 comments on commit d87d025

Please sign in to comment.