import {SHARED_HEADER,SHARED_HEAD} from './portal-navigation.mjs'; import {mkdirSync,writeFileSync} from 'node:fs'; const path=new URL('../integrations/forgejo/templates/custom/',import.meta.url); mkdirSync(path,{recursive:true}); writeFileSync(new URL('header.tmpl',path),SHARED_HEAD+'\n\n\n'); writeFileSync(new URL('body_outer_pre.tmpl',path),SHARED_HEADER+'\n'); writeFileSync(new URL('footer.tmpl',path),'
\n');