From e1b6015fed73537904e5db2211c14056451a311e Mon Sep 17 00:00:00 2001 From: monoid Date: Sat, 23 Apr 2022 14:49:30 +0900 Subject: [PATCH] add schedule --- tools/template/support.md | 48 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/tools/template/support.md b/tools/template/support.md index a7c866d..91bd4be 100644 --- a/tools/template/support.md +++ b/tools/template/support.md @@ -19,3 +19,51 @@ ## 4.3. 일정표(Schedule) +<% +const getIssueByNumber = (n) => it.issues.filter(x=> x.number === n)[0]; + +const trId= (n)=>{ + const title = getIssueByNumber(n).title; +return `(#${n}) ${title}`.replaceAll(/[^A-Za-z\s0-9]/gi,"").toLocaleLowerCase().replaceAll(" ","-"); +} +const inTable = (arr) => { + return arr.map(x=> `[#${x}](./specific.md#${trId(x)})`).join(', ') +} +%> +<% +const timeTable = [ + [1,2,3,5,14,15,27], + [4,6,7,8,11], + [9,10,12,22,23], + [13,16,17,19,20,21,30], + [18,,24,25], + [28,29] +] +const Weeks = [ +'4.24~4.30', +'5.1~5.7', +'5.8~5.14', +'5.15~5.21', +'5.22~5.28', +'5.29~6.4' +] +%> + +|주차|구현 기능| +|----|--------| +|<%= Weeks[0]%>|<%= inTable(timeTable[0]) %>| +|<%= Weeks[1]%>|<%= inTable(timeTable[1]) %>| +|<%= Weeks[2]%>|<%= inTable(timeTable[2]) %>| +|<%= Weeks[3]%>|<%= inTable(timeTable[3]) %>| +|<%= Weeks[4]%>|<%= inTable(timeTable[4]) %>| +|<%= Weeks[5]%>|<%= inTable(timeTable[5]) %>| + +<% for(let weekIndex = 0; weekIndex < Weeks.length; weekIndex++) {%> +### 주차 <%= Weeks[weekIndex]%> + +<%~ timeTable[weekIndex].map(n => { + return `- [(#${n}) ${getIssueByNumber(n).title}](specific.md#${trId(n)})\n` + }).join('') +%> + +<%}%>