1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-20 00:08:02 +01:00

docs: show links to other sidebars when the navbar is collapsed (#6096)

This change adds links to Unleash Academy from the docs sidebar and
vice versa when the nav bar is collapsed (on narrow screens).
This commit is contained in:
Thomas Heartman 2024-02-01 15:10:30 +09:00 committed by GitHub
parent 542acd30a9
commit 58836d3ab2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 0 deletions

View File

@ -29,6 +29,12 @@ module.exports = {
'unleash-academy/managing-unleash-for-devops',
],
},
{
type: 'ref',
id:'welcome',
label: 'Docs',
className: 'show-when-collapsed',
}
],
documentation: [
'welcome',
@ -488,5 +494,11 @@ module.exports = {
},
],
},
{
type: 'ref',
id:'unleash-academy/introduction',
label: 'Unleash Academy',
className: 'show-when-collapsed',
}
],
};

View File

@ -58,6 +58,12 @@
}
}
@media (min-width: 997px) {
.show-when-collapsed {
display: none;
}
}
footer {
--ifm-footer-link-hover-color: var(--ifm-footer-link-color);
}