add schedule

This commit is contained in:
monoid 2022-04-23 14:49:30 +09:00
parent 2c2379f4e7
commit e1b6015fed
1 changed files with 48 additions and 0 deletions

View File

@ -19,3 +19,51 @@
## 4.3. 일정표(Schedule) ## 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('')
%>
<%}%>