This is the static website generator for NTUST GAME Lab.
This project has finished all layout, like JavaScript, CSS. You just need to modify the json data to re-render the HTML to be your website for workspace.
Written by Ze-Hao, Wang (http://salmon.tw)
- Node.js v4.4.7 LTS or above
- npm
- async v2.1.5
- pug v2.0.0
- ncp v2.0.0
- rimraf v2.5.4
- font-spider 1.3.1
- html-minifier ^3.4.0
$ cd ./lab-website
$ npm install$ vim ./program/import/info.json$ vim ./program/import/members.json# Render the web pages.
$ node ./program/src/generator.js
# Web pages can be found in './output'
$ cd ./output
$ cp -R ./ <where you want to paste>All the informations are important. Please don't remove anyone.
{
"title": "Graphics Animation Multimedia Edutainment Lab @ NTUST",
"introduction": "content here ...",
"contact":
{
"school": "國立台灣科技大學",
"department": "資訊工程學系",
"address": "106 台北市大安區基隆路四段四十三號",
"room": "(工程一館 E1-201-2 室)",
"telephone": "886-2-2733-3141 #7928"
},
"copyright": "2015 - 2016 © Graphics Animation Multimedia Edutainment Laboratory"
}Member object fits in faculty, graduate, ungraduate and alumni. Please follow the format below.
- studentId (Optional)
- name
- title
- since (Optional)
- mail (Optional)
- thumbnail
- domains (Optional. Students can fill to 2 data, faculty can fill 4 data.)
- socials (Optional)
- facebook, google, twitter and website
{
"faculty": [
{}
],
"graduate": [
{
"studentId": "M10427000",
"name": "Salmon",
"title": "Master's degree",
"since": "2016-02",
"mail": "salmon.zh.tw@gmail.com",
"thumbnail": "./",
"domains": ["Singing", "Swimming"],
"socials": {
"facebook": "#",
"google": "#",
"twitter": "#",
"website": "http://salmon.tw"
}
},
{}, {}
],
"ungraduate": [
{}, {}
],
"alumni": [
{}, {}
]
}Any optionals info that you wanna ingore. You can delete the pair of social object.
{
"name": "Salmon",
"title": "Master's degree",
"since": "2016-02",
"mail": "salmon.zh.tw@gmail.com",
"thumbnail": "./",
"socials": {
"facebook": "#",
"website": "http://salmon.tw"
}
}Please find ./program/views/index.jade and fix it in <head> tag.
If you want to use your ga.js, please find ./program/views/components/ga.js and fix it. If you want to stop it, please clean the text in file.



