diff options
Diffstat (limited to 'theme')
| -rw-r--r-- | theme/assets/README.txt | 3 | ||||
| -rw-r--r-- | theme/assets/css/github.css | 61 | ||||
| -rw-r--r-- | theme/assets/css/style.css | 68 | ||||
| -rw-r--r-- | theme/assets/js/prefixfree.min.js | 492 | ||||
| -rw-r--r-- | theme/assets/less/style.less | 38 | ||||
| -rw-r--r-- | theme/assets/license.txt | 9 | ||||
| -rw-r--r-- | theme/content.html | 80 | ||||
| -rw-r--r-- | theme/index.html | 33 | ||||
| -rw-r--r-- | theme/logo.html | 33 | ||||
| -rw-r--r-- | theme/markment.yml | 8 |
10 files changed, 825 insertions, 0 deletions
diff --git a/theme/assets/README.txt b/theme/assets/README.txt new file mode 100644 index 0000000..e5b5b41 --- /dev/null +++ b/theme/assets/README.txt @@ -0,0 +1,3 @@ +A Pen created at CodePen.io. You can find this one at http://codepen.io/gabrielfalcao/pen/Esdub. + +
\ No newline at end of file diff --git a/theme/assets/css/github.css b/theme/assets/css/github.css new file mode 100644 index 0000000..dc60655 --- /dev/null +++ b/theme/assets/css/github.css @@ -0,0 +1,61 @@ +.hll { background-color: #ffffcc } +.c { color: #999988; font-style: italic } /* Comment */ +.err { color: #a61717; background-color: #e3d2d2 } /* Error */ +.k { color: #000000; font-weight: bold } /* Keyword */ +.o { color: #000000; font-weight: bold } /* Operator */ +.cm { color: #999988; font-style: italic } /* Comment.Multiline */ +.cp { color: #999999; font-weight: bold; font-style: italic } /* Comment.Preproc */ +.c1 { color: #999988; font-style: italic } /* Comment.Single */ +.cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ +.gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ +.ge { color: #000000; font-style: italic } /* Generic.Emph */ +.gr { color: #aa0000 } /* Generic.Error */ +.gh { color: #999999 } /* Generic.Heading */ +.gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ +.go { color: #888888 } /* Generic.Output */ +.gp { color: #555555 } /* Generic.Prompt */ +.gs { font-weight: bold } /* Generic.Strong */ +.gu { color: #aaaaaa } /* Generic.Subheading */ +.gt { color: #aa0000 } /* Generic.Traceback */ +.kc { color: #000000; font-weight: bold } /* Keyword.Constant */ +.kd { color: #000000; font-weight: bold } /* Keyword.Declaration */ +.kn { color: #000000; font-weight: bold } /* Keyword.Namespace */ +.kp { color: #000000; font-weight: bold } /* Keyword.Pseudo */ +.kr { color: #000000; font-weight: bold } /* Keyword.Reserved */ +.kt { color: #445588; font-weight: bold } /* Keyword.Type */ +.m { color: #009999 } /* Literal.Number */ +.s { color: #d01040 } /* Literal.String */ +.na { color: #008080 } /* Name.Attribute */ +.nb { color: #0086B3 } /* Name.Builtin */ +.nc { color: #445588; font-weight: bold } /* Name.Class */ +.no { color: #008080 } /* Name.Constant */ +.nd { color: #3c5d5d; font-weight: bold } /* Name.Decorator */ +.ni { color: #800080 } /* Name.Entity */ +.ne { color: #990000; font-weight: bold } /* Name.Exception */ +.nf { color: #990000; font-weight: bold } /* Name.Function */ +.nl { color: #990000; font-weight: bold } /* Name.Label */ +.nn { color: #555555 } /* Name.Namespace */ +.nt { color: #000080 } /* Name.Tag */ +.nv { color: #008080 } /* Name.Variable */ +.ow { color: #000000; font-weight: bold } /* Operator.Word */ +.w { color: #bbbbbb } /* Text.Whitespace */ +.mf { color: #009999 } /* Literal.Number.Float */ +.mh { color: #009999 } /* Literal.Number.Hex */ +.mi { color: #009999 } /* Literal.Number.Integer */ +.mo { color: #009999 } /* Literal.Number.Oct */ +.sb { color: #d01040 } /* Literal.String.Backtick */ +.sc { color: #d01040 } /* Literal.String.Char */ +.sd { color: #d01040 } /* Literal.String.Doc */ +.s2 { color: #d01040 } /* Literal.String.Double */ +.se { color: #d01040 } /* Literal.String.Escape */ +.sh { color: #d01040 } /* Literal.String.Heredoc */ +.si { color: #d01040 } /* Literal.String.Interpol */ +.sx { color: #d01040 } /* Literal.String.Other */ +.sr { color: #009926 } /* Literal.String.Regex */ +.s1 { color: #d01040 } /* Literal.String.Single */ +.ss { color: #990073 } /* Literal.String.Symbol */ +.bp { color: #999999 } /* Name.Builtin.Pseudo */ +.vc { color: #008080 } /* Name.Variable.Class */ +.vg { color: #008080 } /* Name.Variable.Global */ +.vi { color: #008080 } /* Name.Variable.Instance */ +.il { color: #009999 } /* Literal.Number.Integer.Long */ diff --git a/theme/assets/css/style.css b/theme/assets/css/style.css new file mode 100644 index 0000000..17a3813 --- /dev/null +++ b/theme/assets/css/style.css @@ -0,0 +1,68 @@ +html { + background: #faf9f4; +} +body { + background: transparent; + top: 0; + bottom: 0; + left: 0; + right: 0; +} +.logo { + padding-top: 30px; +} +.logo h1 { + font-size: 60px; +} +.logo h1 small { + font-size: 30px; +} +*, +body, +html, +.article, +h1, +h2, +h3, +h4, +h5, +h6, +p, +div, +span, +strong, +a, +li, +ul, +ol, +nav { + font-family: "Montserrat"; +} +.httpretty-navbar .uk-navbar-brand { + font-size: 28px; + padding-top: 4px; +} +.httpretty-navbar .uk-navbar-brand small { + font-size: 14px; +} +a.uk-button-primary { + color: white; +} + + +a { + color: #3973A6; +} + +code, code *, pre, pre * { + font-family: "Monaco", "Inconsolata", "monospace"; +} + +div.highlight pre { + box-shadow: inset 0px 1px 2px 1px rgba(80, 80, 80, .15); +} + + +#docs-body { + padding-top: 120px; +} diff --git a/theme/assets/js/prefixfree.min.js b/theme/assets/js/prefixfree.min.js new file mode 100644 index 0000000..9512edd --- /dev/null +++ b/theme/assets/js/prefixfree.min.js @@ -0,0 +1,492 @@ +/** + * StyleFix 1.0.3 & PrefixFree 1.0.7 + * @author Lea Verou + * MIT license + */ + +(function(){ + +if(!window.addEventListener) { + return; +} + +var self = window.StyleFix = { + link: function(link) { + try { + // Ignore stylesheets with data-noprefix attribute as well as alternate stylesheets + if(link.rel !== 'stylesheet' || link.hasAttribute('data-noprefix')) { + return; + } + } + catch(e) { + return; + } + + var url = link.href || link.getAttribute('data-href'), + base = url.replace(/[^\/]+$/, ''), + base_scheme = (/^[a-z]{3,10}:/.exec(base) || [''])[0], + base_domain = (/^[a-z]{3,10}:\/\/[^\/]+/.exec(base) || [''])[0], + base_query = /^([^?]*)\??/.exec(url)[1], + parent = link.parentNode, + xhr = new XMLHttpRequest(), + process; + + xhr.onreadystatechange = function() { + if(xhr.readyState === 4) { + process(); + } + }; + + process = function() { + var css = xhr.responseText; + + if(css && link.parentNode && (!xhr.status || xhr.status < 400 || xhr.status > 600)) { + css = self.fix(css, true, link); + + // Convert relative URLs to absolute, if needed + if(base) { + css = css.replace(/url\(\s*?((?:"|')?)(.+?)\1\s*?\)/gi, function($0, quote, url) { + if(/^([a-z]{3,10}:|#)/i.test(url)) { // Absolute & or hash-relative + return $0; + } + else if(/^\/\//.test(url)) { // Scheme-relative + // May contain sequences like /../ and /./ but those DO work + return 'url("' + base_scheme + url + '")'; + } + else if(/^\//.test(url)) { // Domain-relative + return 'url("' + base_domain + url + '")'; + } + else if(/^\?/.test(url)) { // Query-relative + return 'url("' + base_query + url + '")'; + } + else { + // Path-relative + return 'url("' + base + url + '")'; + } + }); + + // behavior URLs shoudn’t be converted (Issue #19) + // base should be escaped before added to RegExp (Issue #81) + var escaped_base = base.replace(/([\\\^\$*+[\]?{}.=!:(|)])/g,"\\$1"); + css = css.replace(RegExp('\\b(behavior:\\s*?url\\(\'?"?)' + escaped_base, 'gi'), '$1'); + } + + var style = document.createElement('style'); + style.textContent = css; + style.media = link.media; + style.disabled = link.disabled; + style.setAttribute('data-href', link.getAttribute('href')); + + parent.insertBefore(style, link); + parent.removeChild(link); + + style.media = link.media; // Duplicate is intentional. See issue #31 + } + }; + + try { + xhr.open('GET', url); + xhr.send(null); + } catch (e) { + // Fallback to XDomainRequest if available + if (typeof XDomainRequest != "undefined") { + xhr = new XDomainRequest(); + xhr.onerror = xhr.onprogress = function() {}; + xhr.onload = process; + xhr.open("GET", url); + xhr.send(null); + } + } + + link.setAttribute('data-inprogress', ''); + }, + + styleElement: function(style) { + if (style.hasAttribute('data-noprefix')) { + return; + } + var disabled = style.disabled; + + style.textContent = self.fix(style.textContent, true, style); + + style.disabled = disabled; + }, + + styleAttribute: function(element) { + var css = element.getAttribute('style'); + + css = self.fix(css, false, element); + + element.setAttribute('style', css); + }, + + process: function() { + // Linked stylesheets + $('link[rel="stylesheet"]:not([data-inprogress])').forEach(StyleFix.link); + + // Inline stylesheets + $('style').forEach(StyleFix.styleElement); + + // Inline styles + $('[style]').forEach(StyleFix.styleAttribute); + }, + + register: function(fixer, index) { + (self.fixers = self.fixers || []) + .splice(index === undefined? self.fixers.length : index, 0, fixer); + }, + + fix: function(css, raw, element) { + for(var i=0; i<self.fixers.length; i++) { + css = self.fixers[i](css, raw, element) || css; + } + + return css; + }, + + camelCase: function(str) { + return str.replace(/-([a-z])/g, function($0, $1) { return $1.toUpperCase(); }).replace('-',''); + }, + + deCamelCase: function(str) { + return str.replace(/[A-Z]/g, function($0) { return '-' + $0.toLowerCase() }); + } +}; + +/************************************** + * Process styles + **************************************/ +(function(){ + setTimeout(function(){ + $('link[rel="stylesheet"]').forEach(StyleFix.link); + }, 10); + + document.addEventListener('DOMContentLoaded', StyleFix.process, false); +})(); + +function $(expr, con) { + return [].slice.call((con || document).querySelectorAll(expr)); +} + +})(); + +/** + * PrefixFree + */ +(function(root){ + +if(!window.StyleFix || !window.getComputedStyle) { + return; +} + +// Private helper +function fix(what, before, after, replacement, css) { + what = self[what]; + + if(what.length) { + var regex = RegExp(before + '(' + what.join('|') + ')' + after, 'gi'); + + css = css.replace(regex, replacement); + } + + return css; +} + +var self = window.PrefixFree = { + prefixCSS: function(css, raw, element) { + var prefix = self.prefix; + + // Gradient angles hotfix + if(self.functions.indexOf('linear-gradient') > -1) { + // Gradients are supported with a prefix, convert angles to legacy + css = css.replace(/(\s|:|,)(repeating-)?linear-gradient\(\s*(-?\d*\.?\d*)deg/ig, function ($0, delim, repeating, deg) { + return delim + (repeating || '') + 'linear-gradient(' + (90-deg) + 'deg'; + }); + } + + css = fix('functions', '(\\s|:|,)', '\\s*\\(', '$1' + prefix + '$2(', css); + css = fix('keywords', '(\\s|:)', '(\\s|;|\\}|$)', '$1' + prefix + '$2$3', css); + css = fix('properties', '(^|\\{|\\s|;)', '\\s*:', '$1' + prefix + '$2:', css); + + // Prefix properties *inside* values (issue #8) + if (self.properties.length) { + var regex = RegExp('\\b(' + self.properties.join('|') + ')(?!:)', 'gi'); + + css = fix('valueProperties', '\\b', ':(.+?);', function($0) { + return $0.replace(regex, prefix + "$1") + }, css); + } + + if(raw) { + css = fix('selectors', '', '\\b', self.prefixSelector, css); + css = fix('atrules', '@', '\\b', '@' + prefix + '$1', css); + } + + // Fix double prefixing + css = css.replace(RegExp('-' + prefix, 'g'), '-'); + + // Prefix wildcard + css = css.replace(/-\*-(?=[a-z]+)/gi, self.prefix); + + return css; + }, + + property: function(property) { + return (self.properties.indexOf(property)? self.prefix : '') + property; + }, + + value: function(value, property) { + value = fix('functions', '(^|\\s|,)', '\\s*\\(', '$1' + self.prefix + '$2(', value); + value = fix('keywords', '(^|\\s)', '(\\s|$)', '$1' + self.prefix + '$2$3', value); + + // TODO properties inside values + + return value; + }, + + // Warning: Prefixes no matter what, even if the selector is supported prefix-less + prefixSelector: function(selector) { + return selector.replace(/^:{1,2}/, function($0) { return $0 + self.prefix }) + }, + + // Warning: Prefixes no matter what, even if the property is supported prefix-less + prefixProperty: function(property, camelCase) { + var prefixed = self.prefix + property; + + return camelCase? StyleFix.camelCase(prefixed) : prefixed; + } +}; + +/************************************** + * Properties + **************************************/ +(function() { + var prefixes = {}, + properties = [], + shorthands = {}, + style = getComputedStyle(document.documentElement, null), + dummy = document.createElement('div').style; + + // Why are we doing this instead of iterating over properties in a .style object? Cause Webkit won't iterate over those. + var iterate = function(property) { + if(property.charAt(0) === '-') { + properties.push(property); + + var parts = property.split('-'), + prefix = parts[1]; + + // Count prefix uses + prefixes[prefix] = ++prefixes[prefix] || 1; + + // This helps determining shorthands + while(parts.length > 3) { + parts.pop(); + + var shorthand = parts.join('-'); + + if(supported(shorthand) && properties.indexOf(shorthand) === -1) { + properties.push(shorthand); + } + } + } + }, + supported = function(property) { + return StyleFix.camelCase(property) in dummy; + } + + // Some browsers have numerical indices for the properties, some don't + if(style.length > 0) { + for(var i=0; i<style.length; i++) { + iterate(style[i]) + } + } + else { + for(var property in style) { + iterate(StyleFix.deCamelCase(property)); + } + } + + // Find most frequently used prefix + var highest = {uses:0}; + for(var prefix in prefixes) { + var uses = prefixes[prefix]; + + if(highest.uses < uses) { + highest = {prefix: prefix, uses: uses}; + } + } + + self.prefix = '-' + highest.prefix + '-'; + self.Prefix = StyleFix.camelCase(self.prefix); + + self.properties = []; + + // Get properties ONLY supported with a prefix + for(var i=0; i<properties.length; i++) { + var property = properties[i]; + + if(property.indexOf(self.prefix) === 0) { // we might have multiple prefixes, like Opera + var unprefixed = property.slice(self.prefix.length); + + if(!supported(unprefixed)) { + self.properties.push(unprefixed); + } + } + } + + // IE fix + if(self.Prefix == 'Ms' + && !('transform' in dummy) + && !('MsTransform' in dummy) + && ('msTransform' in dummy)) { + self.properties.push('transform', 'transform-origin'); + } + + self.properties.sort(); +})(); + +/************************************** + * Values + **************************************/ +(function() { +// Values that might need prefixing +var functions = { + 'linear-gradient': { + property: 'backgroundImage', + params: 'red, teal' + }, + 'calc': { + property: 'width', + params: '1px + 5%' + }, + 'element': { + property: 'backgroundImage', + params: '#foo' + }, + 'cross-fade': { + property: 'backgroundImage', + params: 'url(a.png), url(b.png), 50%' + } +}; + + +functions['repeating-linear-gradient'] = +functions['repeating-radial-gradient'] = +functions['radial-gradient'] = +functions['linear-gradient']; + +// Note: The properties assigned are just to *test* support. +// The keywords will be prefixed everywhere. +var keywords = { + 'initial': 'color', + 'zoom-in': 'cursor', + 'zoom-out': 'cursor', + 'box': 'display', + 'flexbox': 'display', + 'inline-flexbox': 'display', + 'flex': 'display', + 'inline-flex': 'display', + 'grid': 'display', + 'inline-grid': 'display', + 'min-content': 'width' +}; + +self.functions = []; +self.keywords = []; + +var style = document.createElement('div').style; + +function supported(value, property) { + style[property] = ''; + style[property] = value; + + return !!style[property]; +} + +for (var func in functions) { + var test = functions[func], + property = test.property, + value = func + '(' + test.params + ')'; + + if (!supported(value, property) + && supported(self.prefix + value, property)) { + // It's supported, but with a prefix + self.functions.push(func); + } +} + +for (var keyword in keywords) { + var property = keywords[keyword]; + + if (!supported(keyword, property) + && supported(self.prefix + keyword, property)) { + // It's supported, but with a prefix + self.keywords.push(keyword); + } +} + +})(); + +/************************************** + * Selectors and @-rules + **************************************/ +(function() { + +var +selectors = { + ':read-only': null, + ':read-write': null, + ':any-link': null, + '::selection': null +}, + +atrules = { + 'keyframes': 'name', + 'viewport': null, + 'document': 'regexp(".")' +}; + +self.selectors = []; +self.atrules = []; + +var style = root.appendChild(document.createElement('style')); + +function supported(selector) { + style.textContent = selector + '{}'; // Safari 4 has issues with style.innerHTML + + return !!style.sheet.cssRules.length; +} + +for(var selector in selectors) { + var test = selector + (selectors[selector]? '(' + selectors[selector] + ')' : ''); + + if(!supported(test) && supported(self.prefixSelector(test))) { + self.selectors.push(selector); + } +} + +for(var atrule in atrules) { + var test = atrule + ' ' + (atrules[atrule] || ''); + + if(!supported('@' + test) && supported('@' + self.prefix + test)) { + self.atrules.push(atrule); + } +} + +root.removeChild(style); + +})(); + +// Properties that accept properties as their value +self.valueProperties = [ + 'transition', + 'transition-property' +] + +// Add class for current prefix +root.className += ' ' + self.prefix; + +StyleFix.register(self.prefixCSS); + + +})(document.documentElement);
\ No newline at end of file diff --git a/theme/assets/less/style.less b/theme/assets/less/style.less new file mode 100644 index 0000000..b2f68aa --- /dev/null +++ b/theme/assets/less/style.less @@ -0,0 +1,38 @@ +html { + background: #faf9f4; +} +body { + background: transparent; + top: 0; + bottom:0; + left:0; + right:0; +} +.logo { + padding-top: 30px; + h1 { + font-size: 60px; + small { + font-size: 30px; + + } + } +} + +*, body, html, .article, h1, h2, h3, h4, h5, h6, p, div, span, strong, a, li, ul, ol, nav { + font-family: "Montserrat"; +} + +.httpretty-navbar { + .uk-navbar-brand{ + font-size: 28px; + padding-top: 4px; + small { + font-size:14px; + } + } +} + +a.uk-button-primary { + color:white; +}
\ No newline at end of file diff --git a/theme/assets/license.txt b/theme/assets/license.txt new file mode 100644 index 0000000..4a325c7 --- /dev/null +++ b/theme/assets/license.txt @@ -0,0 +1,9 @@ +<!-- +Copyright (c) 2013 by Gabriel Falcão (http://codepen.io/gabrielfalcao/pen/Esdub) + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +-->
\ No newline at end of file diff --git a/theme/content.html b/theme/content.html new file mode 100644 index 0000000..3426d53 --- /dev/null +++ b/theme/content.html @@ -0,0 +1,80 @@ + {% macro render_menu_item(header, relative_path) -%} + {% if header['level'] < 3 and header['level'] > 1 %} + <li><a href="{{ relative_path.replace(".md", ".html") }}{{ header.anchor }}">{{ header.text|safe }}</a></li> + {% endif %} + {% if 'child' in header %} + {% for child in header['child'] %} + {{ render_menu_item(child, relative_path) }} + {% endfor %} + {% endif %} + {%- endmacro %} + + <div class="uk-container uk-container-center" style="padding: 120px 0;"> + <div class="uk-grid" data-uk-grid-margin=""> + <div class="uk-width-medium-1-4 uk-hidden-small"> + <div style="clear:both; padding-bottom: 50px;"> + <img src="{{ project.logo_url }}" width="240" title="{{ project.name }}" alt="{{ project.name }}" /> + <h2>{{ project.name }} v{{ project.version }}</h2> + <p> + <iframe src="http://instanc.es/bin/btn/watchers-gabrielfalcao-HTTPretty-small.html" allowtransparency="true" frameborder="0" scrolling="0" width="152px" height="30px"></iframe> + <iframe src="http://instanc.es/bin/btn/forks-gabrielfalcao-HTTPretty-small.html" allowtransparency="true" frameborder="0" scrolling="0" width="152px" height="30px"></iframe> + <iframe src="http://instanc.es/bin/btn/follow-gabrielfalcao-HTTPretty-small.html" allowtransparency="true" frameborder="0" scrolling="0" width="152px" height="30px"></iframe> +</p> + <a class="uk-navbar-brand" href="#">Table of Contents</a> + </div> + + <ul style="clear:both;" class="uk-nav"> + {% for page in master_index %} + {% if page.relative_path.endswith("intro.md") %} + <li class="uk-nav-header">{{ page.indexes[0].text }}</li> + {% for item in page.indexes %} + {{ render_menu_item(item, page.relative_path) }} + {% endfor %} + {% endif %} + {% endfor %} + {% for page in master_index %} + {% if page.relative_path.endswith("docs.md") %} + <li class="uk-nav-header">{{ page.indexes[0].text }}</li> + {% for item in page.indexes %} + {{ render_menu_item(item, page.relative_path) }} + {% endfor %} + {% endif %} + {% endfor %} + {% for page in master_index %} + {% if page.relative_path.endswith("about.md") %} + <li class="uk-nav-header">{{ page.indexes[0].text }}</li> + {% for item in page.indexes %} + {{ render_menu_item(item, page.relative_path) }} + {% endfor %} + {% endif %} + {% endfor %} + {% for page in master_index %} + {% if page.relative_path.endswith("contributing.md") %} + <li class="uk-nav-header">{{ page.indexes[0].text }}</li> + {% for item in page.indexes %} + {{ render_menu_item(item, page.relative_path) }} + {% endfor %} + {% endif %} + {% endfor %} + {% for page in master_index %} + {% if page.relative_path.endswith("NEWS.md") %} + <li class="uk-nav-header">{{ page.indexes[0].text }}</li> + {% for item in page.indexes %} + {{ render_menu_item(item, page.relative_path) }} + {% endfor %} + {% endif %} + {% endfor %} + </ul> + </div> + <div class="uk-width-medium-3-4"> + <article class="uk-article"> + <h1 class="uk-article-title">{{ project.name }}</h1> + <p class="uk-article-lead">{{ project.description }}</p> + <div class="uk-width-medium-1-1"> + {{ documentation|safe }} + </div> + </div> + </article> + </div> + </div> + </div> diff --git a/theme/index.html b/theme/index.html new file mode 100644 index 0000000..dbe2660 --- /dev/null +++ b/theme/index.html @@ -0,0 +1,33 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> + <title>{{ project.name }} by {{ project.github_maintainer }}</title> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <!-- Loading Bootstrap --> + + <link rel='stylesheet prefetch' href='https://s3-us-west-2.amazonaws.com/s.cdpn.io/18885/uikit.min.css'> + <link rel='stylesheet prefetch' href='http://fonts.googleapis.com/css?family=Montserrat:400,700'> + <link rel='stylesheet prefetch' href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900,200italic,300italic,400italic,600italic,700italic,900italic'> + <link rel='stylesheet prefetch' href='//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css'> + <link href="{{ static_file('css/github.css') }}" rel="stylesheet"> + <link href="{{ static_file('css/style.css') }}" rel="stylesheet"> + <script src="{{ static_file('js/prefixfree.min.js') }}"></script> + </head> + <body> + {% include "./content.html" %} + <script type="text/javascript"> + var _gaq = _gaq || []; + _gaq.push(['_setAccount', '{{ project.google_analytics_code }}']); + _gaq.push(['_trackPageview']); + (function() { + var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; + ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); + })(); + </script> + <script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/18885/jquery-2.0.3.min.js'></script> + <script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/18885/angular.min.js'></script> + <script src='https://s3-us-west-2.amazonaws.com/s.cdpn.io/18885/uikit.min.js'></script> + </body> +</html>
\ No newline at end of file diff --git a/theme/logo.html b/theme/logo.html new file mode 100644 index 0000000..f5106ba --- /dev/null +++ b/theme/logo.html @@ -0,0 +1,33 @@ +<div class="uk-container uk-container-center uk-text-center"> + <div class="logo"> + <img src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/18885/httpretty-logo_1.svg" width="300" title="HTTPretty" alt="HTTPretty" /> + <h1>{{ project.name }} <small>{{ project.version }}</small></h1> + </div> + <p class="uk-text-large">{{ project.tagline }}</p> + <p><a class="uk-button uk-button-primary" href="./docs.html">Check the documentation</a></p> + <ul class="tm-subnav uk-subnav"> + <li> + <a href="https://twitter.com/{{ project.twitter }}" class="twitter-follow-button" data-show-count="false" data-dnt="true">Follow @{{ project.twitter }}</a> + <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script></li> + <li><a href="https://twitter.com/intent/tweet?button_hashtag=HTTPretty&text={{ project.twitter_message }}" class="twitter-hashtag-button" data-related="gabrielfalcao" data-url="{{ project.documentation_url }}" data-dnt="true">Tweet #{{ project.name }}</a> + <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitter-wjs');</script></li> + </ul> + <ul class="tm-subnav uk-subnav"> + <li> + <iframe src="http://ghbtns.com/github-btn.html?user={{ project.github_maintainer }}&type=follow&count=true" + allowtransparency="true" + frameborder="0" + scrolling="0" + width="165" + height="20"></iframe> + </li> + <li> + <iframe src="http://ghbtns.com/github-btn.html?user={{ project.github_maintainer }}&repo=github-buttons&type=watch&count=true" + allowtransparency="true" + frameborder="0" + scrolling="0" + width="110" + height="20"></iframe> + </li> + </ul> +</div> diff --git a/theme/markment.yml b/theme/markment.yml new file mode 100644 index 0000000..6c7b21c --- /dev/null +++ b/theme/markment.yml @@ -0,0 +1,8 @@ +index_template: index.html +assets_path: assets +author: + name: Gabriel Falcao + username: gabrielfalcao + website: http://falcao.it + +github_url: https://github.com/gabrielfalcao/markment |
