File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change 11/* Utility functions */
22
33// Change the authors credit to mapping contributors credit
4- // Right now this will run on any author credit, not scoped to AAMs
4+ // add postProcess: [ addPlatformMaintainers ] in respecConfig
5+ // In AAMs to change Authors to Platform Mapping Maintainers in the header
6+
7+ function addPlatformMaintainers ( ) {
8+ document . querySelectorAll ( "div.head dt" ) . forEach ( function ( node ) {
9+ if ( node . textContent . trim ( ) == "Authors:" ) node . textContent = "Platform Mapping Maintainers:" ;
10+ } )
11+ }
12+
513require ( [ "core/pubsubhub" ] , function ( respecEvents ) {
614 "use strict" ;
715 respecEvents . sub ( 'end' , function ( message ) {
816 if ( message === 'core/link-to-dfn' ) {
9- document . querySelectorAll ( "div.head dt" ) . forEach ( function ( node ) {
10- if ( node . textContent . trim ( ) == "Authors:" ) node . textContent = "Platform Mapping Maintainers:" ;
11- } ) ;
17+ addPlatformMaintainers ( ) ;
1218 }
1319 } )
14- } )
15-
20+ } )
You can’t perform that action at this time.
0 commit comments