From 0c159e121b1d56c40905236f92e63ba211490934 Mon Sep 17 00:00:00 2001 From: Fred Boniface Date: Thu, 24 Oct 2024 20:54:59 +0100 Subject: [PATCH] Adjust merge script to add "gw" as TOC --- pis/gw.yaml | 2 +- scripts/merge-yaml.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pis/gw.yaml b/pis/gw.yaml index 574400e..368cc84 100644 --- a/pis/gw.yaml +++ b/pis/gw.yaml @@ -2684,7 +2684,7 @@ pis: - code: "6121" stops: [cdf,nwp,fit,bri,kyn,olf,bth,ffd,avf,boa,tro,wsb,wmn,sal,rom,sou,frm,ftn,pms,pmh] - code: "6122" - stops: [cdf,nwp,stj,pwy,fit,bri,kyn,olf,bth,boa,tro,wsg,wmn,sal,rom,sou,frm,ftn,pms,pmh] + stops: [cdf,nwp,stj,pwy,fit,bri,kyn,olf,bth,boa,tro,wsb,wmn,sal,rom,sou,frm,ftn,pms,pmh] - code: "6123" stops: [bri,nls,yat,wor,wsm,hig,bwt,tau,tvp,exd,nta,tot,ivy,ply,sts,sgm,lsk,bod,los,par,sau,tru,red,cbn,hyl,ser,pnz] - code: "6124" diff --git a/scripts/merge-yaml.js b/scripts/merge-yaml.js index 3465caa..f1a69a8 100644 --- a/scripts/merge-yaml.js +++ b/scripts/merge-yaml.js @@ -39,6 +39,7 @@ function sortAndMergeYAMLFiles() { if (item.stops.length > 0) { outputString += ` - code: "${item.code}"\n`; outputString += ` stops: [${item.stops.map(stop => `${stop}`).join(',')}]\n`; + outputString += ` toc: "gw"`; } });