From 2f431bb4d1955eb914f8fb6908777795b30f1866 Mon Sep 17 00:00:00 2001 From: unpregnant Date: Thu, 16 Feb 2017 19:38:31 +0100 Subject: [PATCH] REMOVE rendering of github pages --- README.md | 2 +- less/githubPages.less | 115 ------------------------------------------ less/style.less | 1 - src/RenderReadMe.js | 25 --------- 4 files changed, 1 insertion(+), 142 deletions(-) delete mode 100755 less/githubPages.less delete mode 100755 src/RenderReadMe.js diff --git a/README.md b/README.md index c2b1731..54a2186 100755 --- a/README.md +++ b/README.md @@ -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`. diff --git a/less/githubPages.less b/less/githubPages.less deleted file mode 100755 index 12b7dcd..0000000 --- a/less/githubPages.less +++ /dev/null @@ -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; - } - } -} diff --git a/less/style.less b/less/style.less index 13c79b7..c7d5b79 100755 --- a/less/style.less +++ b/less/style.less @@ -1,5 +1,4 @@ @import "fonts.less"; -@import "githubPages.less"; @import (less) "../node_modules/normalize.css/normalize.css"; @header: #4B5B6E; @background: #CCCCCC; diff --git a/src/RenderReadMe.js b/src/RenderReadMe.js deleted file mode 100755 index 8252c39..0000000 --- a/src/RenderReadMe.js +++ /dev/null @@ -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;