REMOVE rendering of github pages

This commit is contained in:
unpregnant 2017-02-16 19:38:31 +01:00
parent c836f93a5e
commit 2f431bb4d1
4 changed files with 1 additions and 142 deletions

View File

@ -139,4 +139,4 @@ For further reference, check out existing templates.
## Contribute
Feel free to create your own templates. Please read this documentation carefully. After adding your template please add a preview as in `/public/preview` and add it to the README. Compile index.html for github Pages with `npm run readme`. If needed, adjust styling of github Pages in `/less/githubPages.less`.
Feel free to create your own templates. Please read this documentation carefully. After adding your template please add a preview of the template to the readme. Place .png in `/public/preview`.

View File

@ -1,115 +0,0 @@
@main: #E77171;
#forkme {
cursor: pointer;font-family: Arial;
display: block;
position: absolute;
top: 0;
right: 10%;
z-index: 10;
padding: 10px;
color: #fff;
background: @main;
font-weight: 700;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
img {
width: 13px;
}
}
#readme {
font-family: Arial;
h1 {
background: #4B5B6E;
padding-top: 30px;
padding-bottom: 30px;
color: white;
padding-left: 10%;
margin-top: 0;
width: 100%;
font-size: 20px;
img {
float: left;
width: 50px;
height: auto;
margin-top: -7px;
margin-right: 10px;
transition: none;
box-shadow: none;
width: 35px;
}
}
h2 {
font-size: 20px;
}
a {
color: #E77171;
text-decoration: none;
&:focus,
&:hover {
color: #E77171;
text-decoration: none;
}
}
ul {
padding-left: 15%;
}
h2,
h3,
p {
margin-left: 10%;
width: 80%;
}
ol {
margin-left: 10%;
width: 75%;
}
pre {
background: white;
width: 75%;
padding: 2.5%;
margin-left: 10%;
overflow-x: scroll;
}
code{
background: rgba(255, 255, 255, 0.6);
}
hr {
width: 80%;
border: 1px solid #999;
}
p, ul, li, code {
font-size: 15px;
}
img {
height: auto;
width: 200px;
box-shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
transition: all 0.3s cubic-bezier(.25,.8,.25,1);
&:hover {
box-shadow: 0 14px 28px rgba(0,0,0,0.25), 0 10px 10px rgba(0,0,0,0.22);
}
}
}
@media (max-width: 500px) {
#readme {
h1 {
padding-left: 10%;
padding-top: 80px;
}
}
}

View File

@ -1,5 +1,4 @@
@import "fonts.less";
@import "githubPages.less";
@import (less) "../node_modules/normalize.css/normalize.css";
@header: #4B5B6E;
@background: #CCCCCC;

View File

@ -1,25 +0,0 @@
const showdown = require('showdown');
const converter = new showdown.Converter();
const path = require('path');
const Mustache = require('mustache');
const Util = require('./Util');
/**
* renders readme to html for github Pages
* @return {Promise}
*/
const RenderReadMe = async function() {
let dir = path.join(__dirname, '../' + 'README.md');
const readmeContent = await Util.readFileContent(dir);
const readmeHTML = converter.makeHtml(readmeContent);
dir = path.join(__dirname, '../' + 'resumes/views/githubPages.mustache');
const githubPagesTemplate = await Util.readFileContent(dir);
const readme = Mustache.render(githubPagesTemplate, {
content: readmeHTML
});
await Util.writeFile('index.html', readme);
};
RenderReadMe();
module.exports = RenderReadMe;