File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 33// Extracts the main menu and sub-menu links form locale's site.json and
44// adds them to the metadata. This data is used in the navigation template
55module . exports = function buildNavigation ( latestVersions ) {
6- return function ( files , metalsmith , done ) {
6+ return ( files , metalsmith , done ) => {
77 const meta = metalsmith . metadata ( )
88 meta . nav = { }
99 generateNavigation ( meta . site , 'main' )
@@ -14,7 +14,7 @@ module.exports = function buildNavigation (latestVersions) {
1414 if ( obj . link && obj . text ) {
1515 parent . push ( obj )
1616 }
17- Object . keys ( obj ) . forEach ( function ( key ) {
17+ Object . keys ( obj ) . forEach ( ( key ) => {
1818 if ( obj [ key ] . link && obj [ key ] . text ) {
1919 // Insert latest versions for API docs
2020 if ( key === 'api-current' ) {
You can’t perform that action at this time.
0 commit comments