diff --git a/site/assets/styles/atelier-forest.light.css b/assets/atelier-forest.light.css similarity index 100% rename from site/assets/styles/atelier-forest.light.css rename to assets/atelier-forest.light.css diff --git a/site/assets/styles/highlight.css b/assets/highlight.css similarity index 100% rename from site/assets/styles/highlight.css rename to assets/highlight.css diff --git a/js/highlight.js b/assets/highlight.js similarity index 100% rename from js/highlight.js rename to assets/highlight.js diff --git a/site/assets/sss.css b/assets/sss.css similarity index 100% rename from site/assets/sss.css rename to assets/sss.css diff --git a/site/assets/style.css b/assets/style.css similarity index 74% rename from site/assets/style.css rename to assets/style.css index ee7f7ce..98fcfc1 100644 --- a/site/assets/style.css +++ b/assets/style.css @@ -22,15 +22,24 @@ footer a {border: none;} .half {max-width: 50%; display: inline-block; vertical-align: top;} .half:nth-child(odd) {padding-left: 20px;} +img[alt=sheetseeimg] { + width: 400px; + margin: 0 auto; +} + +.index p:first-of-type { + text-align: center; +} /* older css */ -body {font-family: 'Source Sans Pro'; font-size: 18px; background: #fff; color: #535353; border: 10px #47CCFC solid; margin: 0px; padding: 20px 20px 100px 20px; overflow: auto; } +body {font-family: 'Source Sans Pro'; background: #fff; color: #535353; border: 10px #47CCFC solid; margin: 0px; padding: 20px 20px 100px 20px; overflow: auto; } h1, h2, h3, h4, h5, h6 {font-family: Source Sans Pro, Arial, sans-serif;} h2 {margin-top: 40px;} img {width: 100%;} hr {border: 2px solid #CCF4FF;} +p {font-size: 18px;} p a, a {color: #535353; text-decoration: none; padding-bottom: 0px; border-bottom: 2px #CCF4FF solid;} a:hover {color: #47CCFC;} a:active {color: #47CCFC;} @@ -44,8 +53,20 @@ body.index table {border: 4px solid #CCF4FF; padding: 18px;} pre {word-wrap: break-word; padding: 10px; background: #F8F8F8;} pre code {padding: 0;} -code {font-family: "Source Code Pro", monospace; font-size: 14px; line-height: 1; background: #F8F8F8; color: #636363; font-weight: 400; padding: 2px 6px; border-radius: 2px;} -.hljs { background: #F8F8F8; color: #494949; line-height: 1.4em; } +code {font-family: "Source Code Pro", monospace; line-height: 1; font-size: 14px; background: #F8F8F8; color: #636363; font-weight: 400; padding: 2px 6px; border-radius: 2px;} +h3 code {font-weight: bold; background: #CCF4FF; font-size: 19px;} +.hljs {background: #F8F8F8; color: #494949; line-height: 1.4em;} + +.new-news { + color: #47CCFC; + font-size: 30px; + font-weight: bold; + border: 8px solid #47CCFC; + /*border-radius: 3px;*/ + display: inline-block; + padding: 6px 16px; + margin-top: 40px; +} /* funsies */ ::selection {background: #44FFB4;} diff --git a/buildpage.js b/buildpage.js deleted file mode 100644 index e71d407..0000000 --- a/buildpage.js +++ /dev/null @@ -1,75 +0,0 @@ -#!/usr/bin/env node - -var glob = require('glob') -var fs = require('fs') -var marked = require('marked') -var hbs = require('handlebars') -var mkdirp = require('mkdirp') -var path = require('path') -var cpr = require('cpr') - -cpr('./demos', './site/demos', function(err, files) { - if (err) return console.log(err) - cpr('./js', './site/js', function(err, files) { - if (err) return console.log(err) - }) -}) - -fs.readFile('readme.md', function(err, file) { - if (err) return console.log(err) - var name = "index" - var content = file.toString() - var html = changeExtensions(marked(content)) - applyTemplate(html, name) -}) - -glob("docs/*.md", function (err, files) { - if (err) return console.log(err) - var filenames = files.map(function(name) { - return path.basename(name) - }) - filenames.forEach(function (file) { - var name = file.split('.md')[0] - var filePath = "./docs/" - var content = fs.readFileSync(filePath + file).toString() - var html = changeExtensions(marked(content)) - applyTemplate(html, name) - }) -}) - -function applyTemplate(html, name) { - var content = {content: html, name: name} - if (name === "index") { - content.rootstyle = "." - content.rootdoc = "docs" - content.rootdemo = "." - } else { - content.rootstyle = ".." - content.rootdoc = "." - content.rootdemo = ".." - } - var file = "template.hbs" - var rawTemplate = fs.readFileSync(file).toString() - var template = hbs.compile(rawTemplate) - var page = template(content) - writeFile(page, name) -} - -function writeFile(page, name) { - if (name === "index") { - return fs.writeFileSync('./site/' + name + '.html' , page) - } - mkdirp('./site/docs', function (err) { - if (err) return console.error(err) - fs.writeFileSync('./site/docs/' + name + '.html' , page) - }) -} - -function changeExtensions(html, name) { - if (name === "index") { - html = html.replace('/\./\.\/', '') - } - var re = /.md$/ - var newHtml = html.replace(/\.md/g, '.html') - return newHtml -} diff --git a/demos/demo-chart.html b/demos/demo-chart.html deleted file mode 100644 index 69fcb5c..0000000 --- a/demos/demo-chart.html +++ /dev/null @@ -1,93 +0,0 @@ - - -
- --
+View Source // View Documentation
-