plugins Ġ{ ĊĠĠĠ Ġid (" com . github . mon os oul . markdown . page . generator ") Ċ } Ċ Ċ evaluation Dep ends On (": player ") Ċ evaluation Dep ends On (": intellij - plugin ") Ċ Ċ tasks . jar Ġ{ ĊĠĠĠ Ġenabled Ġ= Ġfalse Ċ } Ċ Ċ val Ġcopy Css Task Ġby Ġtasks . register < Copy >(" copy Css ") Ġ{ ĊĠĠĠ Ġfrom ("${ project . project Dir }/ src / main / markdown ") Ġ{ ĊĠĠĠĠĠĠĠ Ġinclude (" *. css ") ĊĠĠĠ Ġ} ĊĠĠĠ Ġinto ("${ project . build Dir }/ docs ") Ċ } Ċ Ċ val Ġcopy Markdown Task Ġby Ġtasks . register < Copy >(" copy Markdown ") Ġ{ ĊĠĠĠ Ġfrom ("${ project . project Dir }/ ../ LICENSE . md ") ĊĠĠĠ Ġfrom ("${ project . project Dir }/ ../ standalone - dependencies / LICENSE S . 3 rd Party . md ") ĊĠĠĠ Ġfrom ("${ project . project Dir }/ src / main / markdown ") Ġ{ ĊĠĠĠĠĠĠĠ Ġinclude (" *. md ") ĊĠĠĠ Ġ} ĊĠĠĠ Ġinto ("${ project . build Dir }/ docs - source ") Ċ } Ċ Ċ tasks . generate Html Ġ{ ĊĠĠĠ Ġdepends On ( copy Markdown Task ) ĊĠĠĠ Ġdepends On ( copy Css Task ) ĊĊĠĠĠ Ġinput Directory Ġ= Ġfile ("${ project . build Dir }/ docs - source ") ĊĠĠĠ Ġoutput Directory Ġ= Ġfile ("${ project . build Dir }/ docs ") ĊĠĠĠ Ġheader Html File Ġ= Ġfile ("${ project . project Dir }/ src / main / markdown / header . template ") ĊĠĠĠ Ġfooter Html File Ġ= Ġfile ("${ project . project Dir }/ src / main / markdown / footer . template ") ĊĠĠĠ Ġinput Encoding Ġ= Ġ" UTF - 8 " ĊĠĠĠ Ġoutput Encoding Ġ= Ġ" UTF - 8 " ĊĊĠĠĠ Ġrecursive Input Ġ= Ġfalse ĊĠĠĠ Ġtransform Relative Markdown Links Ġ= Ġtrue ĊĠĠĠ Ġpeg down Extensions Ġ= Ġ" AN CH OR LIN KS , ĠA UT OL IN KS , ĠTABLES , ĠTO C , ĠF ENC ED _ CODE _ BLOCKS , ĠDEFIN ITION S , ĠSTR IK ETH ROUGH " Ċ } Ċ Ċ val Ġapplication Zip Task Ġby Ġtasks . register < Zip >(" application Zip ") Ġ{ ĊĠĠĠ Ġdepends On (": player : dist Zip ") ĊĠĠĠ Ġdepends On ( tasks . generate Html ) ĊĠĠĠ Ġdepends On (": intellij - plugin : build Plugin ") ĊĊĠĠĠ Ġarchive Base Name . set (" sound scape ") ĊĠĠĠ Ġarchive Version . set ("") ĊĊĠĠĠ Ġfrom ( zip Tree ( tasks . getBy Path (": player : dist Zip "). outputs . files . as Path )) Ġ{ ĊĠĠĠĠĠĠĠ Ġinclude (" ** ") ĊĠĠĠĠĠĠĠ Ġinclude Empty Dirs Ġ= Ġfalse ĊĊĠĠĠĠĠĠĠ Ġeach File Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġrelative Path Ġ= ĠRelative Path ( true , Ġ* relative Path . segments . drop ( 1 ). to Typed Array ()) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġfrom ( tasks . getBy Path (": intellij - plugin : build Plugin "). outputs . files . as Path ) ĊĠĠĠ Ġfrom ( tasks . generate Html ) Ġ{ ĊĠĠĠĠĠĠĠ Ġinto (" docs ") ĊĠĠĠ Ġ} ĊĠĠĠ Ġfrom ( file ("${ project . project Dir }/ src / main / templates ")) Ċ } Ċ Ċ tasks . assemble Ġ{ ĊĠĠĠ Ġdepends On ( application Zip Task ) Ċ } Ċ