We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54db2f3 commit 8311f34Copy full SHA for 8311f34
1 file changed
scripts/plugins/navigation.js
@@ -3,7 +3,7 @@
3
// Extracts the main menu and sub-menu links form locale's site.json and
4
// adds them to the metadata. This data is used in the navigation template
5
module.exports = function buildNavigation (latestVersions) {
6
- return function (files, metalsmith, done) {
+ return (files, metalsmith, done) => {
7
const meta = metalsmith.metadata()
8
meta.nav = {}
9
generateNavigation(meta.site, 'main')
@@ -14,7 +14,7 @@ module.exports = function buildNavigation (latestVersions) {
14
if (obj.link && obj.text) {
15
parent.push(obj)
16
}
17
- Object.keys(obj).forEach(function (key) {
+ Object.keys(obj).forEach((key) => {
18
if (obj[key].link && obj[key].text) {
19
// Insert latest versions for API docs
20
if (key === 'api-current') {
0 commit comments