diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..95ddf9d --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +_site/ +.sass-cache/ +.DS_store +.*.swp diff --git a/Gemfile b/Gemfile index 3025b0c..06f5aa2 100644 --- a/Gemfile +++ b/Gemfile @@ -2,3 +2,7 @@ source 'https://rubygems.org' gem 'jekyll' gem 'rouge' + +group :jekyll_plugins do + gem 'guides_style_18f' +end diff --git a/Gemfile.lock b/Gemfile.lock index ae04186..3de66d1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -14,6 +14,10 @@ GEM execjs (2.5.2) fast-stemmer (1.0.2) ffi (1.9.9) + guides_style_18f (0.0.0) + jekyll (~> 2.5) + rouge (~> 1.9) + sass (~> 3.4) hitimes (1.2.2) jekyll (2.5.3) classifier-reborn (~> 2.0) @@ -68,5 +72,9 @@ PLATFORMS ruby DEPENDENCIES + guides_style_18f jekyll rouge + +BUNDLED WITH + 1.10.6 diff --git a/_config.yml b/_config.yml index 8550d49..e6d888a 100644 --- a/_config.yml +++ b/_config.yml @@ -55,3 +55,18 @@ repos: brand_color: "#1188ff" google_analytics_ua: UA-48605964-19 + +# To use the shared 18F Guides styles when deploying to pages.18f.gov, +# uncomment the following; comment it out during local development: +asset_root: /guides-template + +back_link: + url: "https://pages.18f.gov/guides/" + text: Read more 18F Guides + +defaults: + - + scope: + path: "" + values: + layout: "guides_style_18f_default" diff --git a/_includes/analytics.html b/_includes/analytics.html deleted file mode 100644 index cf6cdf7..0000000 --- a/_includes/analytics.html +++ /dev/null @@ -1,16 +0,0 @@ - - - - - diff --git a/_includes/footer.html b/_includes/footer.html deleted file mode 100644 index cc8ea56..0000000 --- a/_includes/footer.html +++ /dev/null @@ -1,9 +0,0 @@ - diff --git a/_includes/header.html b/_includes/header.html deleted file mode 100644 index a21b00a..0000000 --- a/_includes/header.html +++ /dev/null @@ -1,21 +0,0 @@ - - - - {{ page.title }} - {{ site.name }} - - - - - - - - - - - - - - diff --git a/_includes/scripts.html b/_includes/scripts.html deleted file mode 100644 index 8604cc8..0000000 --- a/_includes/scripts.html +++ /dev/null @@ -1,62 +0,0 @@ - - -{% if page.title == "Keyboard Access" %} - -{% endif %} - -{% if page.title == "Flashing" %} - -{% endif %} -{% if page.title == "Time Outs" %} - -{% endif %} \ No newline at end of file diff --git a/_includes/sidebar.html b/_includes/sidebar.html deleted file mode 100644 index d6522f7..0000000 --- a/_includes/sidebar.html +++ /dev/null @@ -1,47 +0,0 @@ - diff --git a/_layouts/default.html b/_layouts/default.html deleted file mode 100644 index 7117438..0000000 --- a/_layouts/default.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - {% include header.html %} - - - -
- -
- -
- {% if site.logourl != null %} - - {% endif %} -

{{ site.name }}

-
- -
- -
- - {% include sidebar.html %} - -
-

{{ page.title }}

- {{ content }} -
- -
- - {% include footer.html%} - -
- - {% include analytics.html %} - {% include scripts.html %} - - - - diff --git a/_layouts/iframe.html b/_layouts/iframe.html deleted file mode 100644 index b193a5d..0000000 --- a/_layouts/iframe.html +++ /dev/null @@ -1,7 +0,0 @@ - - - - -{{ content }} - - \ No newline at end of file diff --git a/_site/assets/css/custom.css b/_site/assets/css/custom.css deleted file mode 100644 index 6be5430..0000000 --- a/_site/assets/css/custom.css +++ /dev/null @@ -1,42 +0,0 @@ -/* -This is where custom styles for your guide should live. -*/ - -div.skip-nav a { - position: absolute; - left: -10000; - top: 0; - width: 1px; - height: auto; - overflow: hidden; -} -div.skip-nav a:focus { - position: absolute; - top: 5px; - left: 5px; - width: auto; - height: auto; - z-index: 999999; - background-color: white; - padding-left: 2px; - padding-right: 2px; - overflow: visible; - } - - .mainContent:focus { - outline: none; - } - - table, th, td { - border: 1px solid black; - padding: 5px; - margin:5px; -} -th { - background: #767576; - color:white; -} -li.active > a{ - background-color: #317ab9; -} - diff --git a/_site/assets/css/main.css b/_site/assets/css/main.css deleted file mode 100644 index 4612a1a..0000000 --- a/_site/assets/css/main.css +++ /dev/null @@ -1,613 +0,0 @@ -/* -Main.css -================================== -Begin with generic 'mobile first' styles -*/ - -/* -Normalize the box model -================================== -*/ - -*, -*:before, -*:after { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - -/* -global styles -================================== -*/ - -html, body { - height: 100%; -} - -/* -Typography -================================== -*/ - -body { - font-family: "Open Sans", Arial, sans-serif; - font-weight: 400; - font-style: normal; - line-height: 1.466666667; - margin: 0; -} - -h1, -h2, -h3, -h4, -h5 { - font-family: "Raleway", Arial, sans-serif; - font-weight: 600; -} - -.site-title { - font-size: 1.9em; - color: #919395; - margin: 0; - line-height: 1.2941176470588236; - display: inline-block; -} - -h2 { - font-size: 1.375em; - margin: 1.4em 0 0 0; -} - -h3 { - margin-top: 30px; -} - -h4 { - font-size: 1em; - text-transform: uppercase; -} - -.page-title { - margin-top: .727272727em; /* 16/22 */ -} - -/* -Lists --------------------------------- -*/ - -.main-content ul { - padding-left: 1.1em; -} - -.main-content li { - margin-bottom: 1em; -} - -li h3, -li h4 { - margin: 0; -} - -li p { - margin-top: 0; -} - -/* -Links -================================== -*/ - -a { - -webkit-transition: .2s; - -moz-transition: .2s; - transition: .2s; -} - -a, -a:link, -a:visited { - color: #0072ce; - border-bottom: 1px dotted #0072ce; - text-decoration: none; -} - -a:hover { - border-bottom: 1px solid #7eb8dd; - color: #7eb8dd; - text-decoration: none; -} - -a:active { - border-bottom: 1px solid #002d72; - color: #002d72; - text-decoration: none; -} - -a:focus { - border-bottom: 1px solid #0072ce; - color: #0072ce; - outline: thin dotted; - text-decoration: none; -} - -a.title-link { - color: #75787B; - border-bottom: none; -} - -a.title-link:hover, -a.title-link:active, -a.title-link:focus { - color: #7eb8dd; - border-bottom: none; -} - -a.skip-link { - color: #0072ce; - border-bottom: none; - padding: .25em; -} - -a.skip-link:hover, -a.skip-link:active, -a.skip-link:focus { - background-color: #0072ce; - color: #fff; - border-bottom: none; -} - - -/* -Navigation -================================== -*/ - -.sidebar-nav a { - display: block; - padding: 10px; - -webkit-transition: .4s; - transition: .4s; - width: 80%; - float: left; -} - -.sidebar-nav a, -.sidebar-nav a:link, -.sidebar-nav a:visited { - border-bottom: none; - color: #74767B; -} - -.sidebar-nav a:hover, -.sidebar-nav a:focus, -.sidebar-nav a:active, -.sidebar-nav .sidebar-nav-active > a { - color: #74767B; - border-left: 4px solid #1188ff; - background-color: transparent; - padding-left: 20px; -} - -.sidebar-nav ul { - margin: 0; - padding: 0; -} - -.sidebar-nav li { - list-style: none; - border-bottom: 1px solid #babbbd; - font-size: 1.125em; - padding-left: 4px; - overflow: hidden; -} - -.sidebar-nav li:last-child { - border-bottom: none; -} - -.nav-children { - clear: both; - display: block; - font-size: 14px; - max-height: 0; - opacity: 0; - overflow: hidden; - position: relative; - -webkit-transition: max-height .2s, opacity .2s; - -moz-transition: max-height .2s, opacity .2s; - -o-transition: max-height .2s, opacity .2s; - transition: max-height .2s, opacity .2s; -} - -.nav-children li { - border-bottom: none; -} - -.nav-children a { - padding: 5px 5px 5px 20px; -} - -.nav-children li:last-child a { - padding-bottom: 10px; -} - -.nav-children a:hover, -.nav-children a:focus, -.nav-children a:active { - padding-left: 40px; -} - -.expand-subnav { - background: none; - border: none; - border-radius: 24px; - color: #0072ce; - cursor: pointer; - display: block; - float: right; - height: 24px; - margin: 12px; - position: relative; - width: 24px; - -webkit-appearance: none; - -moz-appearance: none; - -o-appearance: none; - appearance: none; -} - -.expand-subnav:before { - content: "+"; - display: block; - font-size: 20px; - left: 6px; - line-height: 1; - position: absolute; - top: 0px; - -webkit-transition: transform .2s, left .2s; - -moz-transition: transform .2s, left .2s; - -o-transition: transform .2s, left .2s; - transition: transform .2s, left .2s; -} - -.expand-subnav:focus { - background: #0072ce; - color: #fff; - outline: none; -} - -.expand-subnav:checked:before { - left: 7px; - -webkit-tranform: rotate3d(0, 0, 1, 45deg); - -moz-transform: rotate3d(0, 0, 1, 45deg); - -o-transform: rotate3d(0, 0, 1, 45deg); - transform: rotate3d(0, 0, 1, 45deg); - -webkit-transition: transform .2s, left .2s; - -moz-transition: transform .2s, left .2s; - -o-transition: transform .2s, left .2s; - transition: transform .2s, left .2s; -} - -/* Show the menu when the checkbox is checked */ -.expand-subnav:checked + .nav-children { - display: block; - max-height: 400px; - opacity: 1; - -webkit-transition: max-height .2s, opacity .2s; - -moz-transition: max-height .2s, opacity .2s; - -o-transition: max-height .2s, opacity .2s; - transition: max-height .2s, opacity .2s; -} - -/* -Layout -================================== -*/ - -.logo { - display: block; -} - -.content { - padding-top: 2em; - padding-bottom: 2em; -} - -/* offset the fixed position header for jump links */ -section:before { - display: block; - content: ""; - height: 60px; - margin: -60px 0 0; -} - -.wrap { - max-width: 1200px; - margin: 0 auto; - padding-left: 20px; - padding-right: 20px; -} - -header { - width: 100%; - border-bottom: 4px solid #1188ff; - background-color: #fff; - padding: 2em 0; -} - - -/* -Footer -================================== -*/ - -/* for sticky footer */ -.container { - display: table; - height: 100%; - width: 100%; -} - -footer { - display: table-row; /* for sticky footer */ - height: 1px; /* for sticky footer */ - border-top: 2px solid #babbbd; - background: #f1f2f2; - width: 100%; - font-size: 0.875em; -} - -footer .wrap { - padding-top: 2em; - padding-bottom: 2em; -} - - -/* -Helpers -================================== -*/ - -/* Hide from both screenreaders and browsers: h5bp.com/u */ -.hidden { - display: none !important; - visibility: hidden; -} - -/* Hide only visually, but have it available for screenreaders: h5bp.com/v */ -.visuallyhidden { - border: 0; - clip: rect(0 0 0 0); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute; - width: 1px; -} - -/* Extends the .visuallyhidden class to allow the element to be focusable - * when navigated to via the keyboard: h5bp.com/p */ -.visuallyhidden.focusable:active, -.visuallyhidden.focusable:focus { - clip: auto; - height: auto; - margin: 0; - overflow: visible; - position: static; - width: auto; -} - -/* Hide visually and from screenreaders, but maintain layout */ -.invisible { - visibility: hidden; -} - - -/* -Style -================================== -*/ - -.intro { - color: #75787B; -} - -li h4 { - margin: 0; -} - -.license { - font-family: "Avenir Next Demi", Arial, sans-serif; - font-weight: normal; - font-style: normal; -} - -pre { - max-width: 100%; - font-size: 0.875em; - overflow-y: scroll; - background-color: #f1f2f2; - padding: 10px; -} - -/* -Post list ----------------------------------- -*/ - -ul.posts { - padding: 0; -} - -.posts li { - list-style: none; -} - -.post-date { - color: #75787B; -} - -/* -Repo list ----------------------------------- -*/ - -ul.repo-list { - margin: .5em 0 1em 0; - padding: 0; -} - -.repo-list li { - list-style: none; -} - -.repo-list p { - margin: 0; - font-size: 0.875em; -} - -.repo-list h4 { - text-transform: none; -} - -/* -Helper Classes -================================== -*/ - -/* -Clearfix list ----------------------------------- -*/ - -.group:before, -.group:after { - content: " "; - display: table; -} - -.group:after { - clear: both; -} - -.group { - *zoom: 1; -} - -/* -Desktop Styles -================================== -*/ - -@media screen and (min-width: 45em) and (min-height: 32.5em) { - - /* - Typography - ============================== - */ - - /* - Layout - ============================== - */ - - .logo { - max-width: 30%; - padding-right: 20px; - margin-top: -12px; - float: right; - } - - aside { - width: 30%; - float: left; - } - - .main-content { - width: 67%; - float: right; - margin-bottom: 120px; - } - - /* - Navigation - ============================== - */ - - - /* - Style - ============================== - */ - - /* - Repo list - ------------------------------ - */ - - .repo-list li { - list-style: none; - display: block; - float: left; - height: 4.0625em; - max-height: 4.0625em; - background-color: #E7E7E6; - border-left: 1px solid #BABBBD; - width: 30%; - } - - .repo-list a:link, - .repo-list a:visited { - display: block; - max-height: 4.0625em; - background-color: #E7E7E6; - border-bottom: none; - padding: .625em 1em 1em 1em; - } - - .repo-list a:hover { - color: #4D5F87; - background-color: #CDE3F1; - } - - .repo-list li:first-child { - text-align: center; - border-left: none; - line-height: 60px; - padding: .625em 1em; - width: 10%; - } - -} - -@media screen and (max-width: 54.375em) and (min-height: 32.5em) { - - /* keep the repo list containers the same height, but account for the need for more height */ - - .repo-list li { - height: 6em; - max-height: 6em; - } - - .repo-list a:link, - .repo-list a:visited { - max-height: 6em; - } -} - -/* -Mobile Styles -================================== -*/ - -@media screen and (max-width: 40.5em) { - - .main-content { - margin-top: 1.5em; - } - -} diff --git a/_site/assets/css/syntax.css b/_site/assets/css/syntax.css deleted file mode 100644 index 1e651cf..0000000 --- a/_site/assets/css/syntax.css +++ /dev/null @@ -1,60 +0,0 @@ -.highlight { background: #ffffff; } -.highlight .c { color: #999988; font-style: italic } /* Comment */ -.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ -.highlight .k { font-weight: bold } /* Keyword */ -.highlight .o { font-weight: bold } /* Operator */ -.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */ -.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */ -.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */ -.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ -.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ -.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */ -.highlight .ge { font-style: italic } /* Generic.Emph */ -.highlight .gr { color: #aa0000 } /* Generic.Error */ -.highlight .gh { color: #999999 } /* Generic.Heading */ -.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ -.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */ -.highlight .go { color: #888888 } /* Generic.Output */ -.highlight .gp { color: #555555 } /* Generic.Prompt */ -.highlight .gs { font-weight: bold } /* Generic.Strong */ -.highlight .gu { color: #aaaaaa } /* Generic.Subheading */ -.highlight .gt { color: #aa0000 } /* Generic.Traceback */ -.highlight .kc { font-weight: bold } /* Keyword.Constant */ -.highlight .kd { font-weight: bold } /* Keyword.Declaration */ -.highlight .kp { font-weight: bold } /* Keyword.Pseudo */ -.highlight .kr { font-weight: bold } /* Keyword.Reserved */ -.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */ -.highlight .m { color: #009999 } /* Literal.Number */ -.highlight .s { color: #d14 } /* Literal.String */ -.highlight .na { color: #008080 } /* Name.Attribute */ -.highlight .nb { color: #0086B3 } /* Name.Builtin */ -.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */ -.highlight .no { color: #008080 } /* Name.Constant */ -.highlight .ni { color: #800080 } /* Name.Entity */ -.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */ -.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */ -.highlight .nn { color: #555555 } /* Name.Namespace */ -.highlight .nt { color: #000080 } /* Name.Tag */ -.highlight .nv { color: #008080 } /* Name.Variable */ -.highlight .ow { font-weight: bold } /* Operator.Word */ -.highlight .w { color: #bbbbbb } /* Text.Whitespace */ -.highlight .mf { color: #009999 } /* Literal.Number.Float */ -.highlight .mh { color: #009999 } /* Literal.Number.Hex */ -.highlight .mi { color: #009999 } /* Literal.Number.Integer */ -.highlight .mo { color: #009999 } /* Literal.Number.Oct */ -.highlight .sb { color: #d14 } /* Literal.String.Backtick */ -.highlight .sc { color: #d14 } /* Literal.String.Char */ -.highlight .sd { color: #d14 } /* Literal.String.Doc */ -.highlight .s2 { color: #d14 } /* Literal.String.Double */ -.highlight .se { color: #d14 } /* Literal.String.Escape */ -.highlight .sh { color: #d14 } /* Literal.String.Heredoc */ -.highlight .si { color: #d14 } /* Literal.String.Interpol */ -.highlight .sx { color: #d14 } /* Literal.String.Other */ -.highlight .sr { color: #009926 } /* Literal.String.Regex */ -.highlight .s1 { color: #d14 } /* Literal.String.Single */ -.highlight .ss { color: #990073 } /* Literal.String.Symbol */ -.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */ -.highlight .vc { color: #008080 } /* Name.Variable.Class */ -.highlight .vg { color: #008080 } /* Name.Variable.Global */ -.highlight .vi { color: #008080 } /* Name.Variable.Instance */ -.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */ \ No newline at end of file diff --git a/_site/assets/img/18f-logo.png b/_site/assets/img/18f-logo.png deleted file mode 100644 index 8ca142f..0000000 Binary files a/_site/assets/img/18f-logo.png and /dev/null differ diff --git a/_site/assets/js/html5shiv.js b/_site/assets/js/html5shiv.js deleted file mode 100755 index 205bdfe..0000000 --- a/_site/assets/js/html5shiv.js +++ /dev/null @@ -1,301 +0,0 @@ -/** -* @preserve HTML5 Shiv prev3.7.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed -*/ -;(function(window, document) { -/*jshint evil:true */ - /** version */ - var version = '3.7.0'; - - /** Preset options */ - var options = window.html5 || {}; - - /** Used to skip problem elements */ - var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i; - - /** Not all elements can be cloned in IE **/ - var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i; - - /** Detect whether the browser supports default html5 styles */ - var supportsHtml5Styles; - - /** Name of the expando, to work with multiple documents or to re-shiv one document */ - var expando = '_html5shiv'; - - /** The id for the the documents expando */ - var expanID = 0; - - /** Cached data for each document */ - var expandoData = {}; - - /** Detect whether the browser supports unknown elements */ - var supportsUnknownElements; - - (function() { - try { - var a = document.createElement('a'); - a.innerHTML = ''; - //if the hidden property is implemented we can assume, that the browser supports basic HTML5 Styles - supportsHtml5Styles = ('hidden' in a); - - supportsUnknownElements = a.childNodes.length == 1 || (function() { - // assign a false positive if unable to shiv - (document.createElement)('a'); - var frag = document.createDocumentFragment(); - return ( - typeof frag.cloneNode == 'undefined' || - typeof frag.createDocumentFragment == 'undefined' || - typeof frag.createElement == 'undefined' - ); - }()); - } catch(e) { - // assign a false positive if detection fails => unable to shiv - supportsHtml5Styles = true; - supportsUnknownElements = true; - } - - }()); - - /*--------------------------------------------------------------------------*/ - - /** - * Creates a style sheet with the given CSS text and adds it to the document. - * @private - * @param {Document} ownerDocument The document. - * @param {String} cssText The CSS text. - * @returns {StyleSheet} The style element. - */ - function addStyleSheet(ownerDocument, cssText) { - var p = ownerDocument.createElement('p'), - parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement; - - p.innerHTML = 'x'; - return parent.insertBefore(p.lastChild, parent.firstChild); - } - - /** - * Returns the value of `html5.elements` as an array. - * @private - * @returns {Array} An array of shived element node names. - */ - function getElements() { - var elements = html5.elements; - return typeof elements == 'string' ? elements.split(' ') : elements; - } - - /** - * Returns the data associated to the given document - * @private - * @param {Document} ownerDocument The document. - * @returns {Object} An object of data. - */ - function getExpandoData(ownerDocument) { - var data = expandoData[ownerDocument[expando]]; - if (!data) { - data = {}; - expanID++; - ownerDocument[expando] = expanID; - expandoData[expanID] = data; - } - return data; - } - - /** - * returns a shived element for the given nodeName and document - * @memberOf html5 - * @param {String} nodeName name of the element - * @param {Document} ownerDocument The context document. - * @returns {Object} The shived element. - */ - function createElement(nodeName, ownerDocument, data){ - if (!ownerDocument) { - ownerDocument = document; - } - if(supportsUnknownElements){ - return ownerDocument.createElement(nodeName); - } - if (!data) { - data = getExpandoData(ownerDocument); - } - var node; - - if (data.cache[nodeName]) { - node = data.cache[nodeName].cloneNode(); - } else if (saveClones.test(nodeName)) { - node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode(); - } else { - node = data.createElem(nodeName); - } - - // Avoid adding some elements to fragments in IE < 9 because - // * Attributes like `name` or `type` cannot be set/changed once an element - // is inserted into a document/fragment - // * Link elements with `src` attributes that are inaccessible, as with - // a 403 response, will cause the tab/window to crash - // * Script elements appended to fragments will execute when their `src` - // or `text` property is set - return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node; - } - - /** - * returns a shived DocumentFragment for the given document - * @memberOf html5 - * @param {Document} ownerDocument The context document. - * @returns {Object} The shived DocumentFragment. - */ - function createDocumentFragment(ownerDocument, data){ - if (!ownerDocument) { - ownerDocument = document; - } - if(supportsUnknownElements){ - return ownerDocument.createDocumentFragment(); - } - data = data || getExpandoData(ownerDocument); - var clone = data.frag.cloneNode(), - i = 0, - elems = getElements(), - l = elems.length; - for(;i -1 ? ( eminpx || getEmValue() ) : 1 ); - } - if( !!max ){ - max = parseFloat( max ) * ( max.indexOf( em ) > -1 ? ( eminpx || getEmValue() ) : 1 ); - } - - // if there's no media query at all (the () part), or min or max is not null, and if either is present, they're true - if( !thisstyle.hasquery || ( !minnull || !maxnull ) && ( minnull || currWidth >= min ) && ( maxnull || currWidth <= max ) ){ - if( !styleBlocks[ thisstyle.media ] ){ - styleBlocks[ thisstyle.media ] = []; - } - styleBlocks[ thisstyle.media ].push( rules[ thisstyle.rules ] ); - } - } - } - - //remove any existing respond style element(s) - for( var j in appendedEls ){ - if( appendedEls.hasOwnProperty( j ) ){ - if( appendedEls[ j ] && appendedEls[ j ].parentNode === head ){ - head.removeChild( appendedEls[ j ] ); - } - } - } - appendedEls.length = 0; - - //inject active styles, grouped by media type - for( var k in styleBlocks ){ - if( styleBlocks.hasOwnProperty( k ) ){ - var ss = doc.createElement( "style" ), - css = styleBlocks[ k ].join( "\n" ); - - ss.type = "text/css"; - ss.media = k; - - //originally, ss was appended to a documentFragment and sheets were appended in bulk. - //this caused crashes in IE in a number of circumstances, such as when the HTML element had a bg image set, so appending beforehand seems best. Thanks to @dvelyk for the initial research on this one! - head.insertBefore( ss, lastLink.nextSibling ); - - if ( ss.styleSheet ){ - ss.styleSheet.cssText = css; - } - else { - ss.appendChild( doc.createTextNode( css ) ); - } - - //push to appendedEls to track for later removal - appendedEls.push( ss ); - } - } - }, - //find media blocks in css text, convert to style blocks - translate = function( styles, href, media ){ - var qs = styles.replace( respond.regex.keyframes, '' ).match( respond.regex.media ), - ql = qs && qs.length || 0; - - //try to get CSS path - href = href.substring( 0, href.lastIndexOf( "/" ) ); - - var repUrls = function( css ){ - return css.replace( respond.regex.urls, "$1" + href + "$2$3" ); - }, - useMedia = !ql && media; - - //if path exists, tack on trailing slash - if( href.length ){ href += "/"; } - - //if no internal queries exist, but media attr does, use that - //note: this currently lacks support for situations where a media attr is specified on a link AND - //its associated stylesheet has internal CSS media queries. - //In those cases, the media attribute will currently be ignored. - if( useMedia ){ - ql = 1; - } - - for( var i = 0; i < ql; i++ ){ - var fullq, thisq, eachq, eql; - - //media attr - if( useMedia ){ - fullq = media; - rules.push( repUrls( styles ) ); - } - //parse for styles - else{ - fullq = qs[ i ].match( respond.regex.findStyles ) && RegExp.$1; - rules.push( RegExp.$2 && repUrls( RegExp.$2 ) ); - } - - eachq = fullq.split( "," ); - eql = eachq.length; - - for( var j = 0; j < eql; j++ ){ - thisq = eachq[ j ]; - mediastyles.push( { - media : thisq.split( "(" )[ 0 ].match( respond.regex.only ) && RegExp.$2 || "all", - rules : rules.length - 1, - hasquery : thisq.indexOf("(") > -1, - minw : thisq.match( respond.regex.minw ) && parseFloat( RegExp.$1 ) + ( RegExp.$2 || "" ), - maxw : thisq.match( respond.regex.maxw ) && parseFloat( RegExp.$1 ) + ( RegExp.$2 || "" ) - } ); - } - } - - applyMedia(); - }, - - //recurse through request queue, get css text - makeRequests = function(){ - if( requestQueue.length ){ - var thisRequest = requestQueue.shift(); - - ajax( thisRequest.href, function( styles ){ - translate( styles, thisRequest.href, thisRequest.media ); - parsedSheets[ thisRequest.href ] = true; - - // by wrapping recursive function call in setTimeout - // we prevent "Stack overflow" error in IE7 - w.setTimeout(function(){ makeRequests(); },0); - } ); - } - }, - - //loop stylesheets, send text content to translate - ripCSS = function(){ - - for( var i = 0; i < links.length; i++ ){ - var sheet = links[ i ], - href = sheet.href, - media = sheet.media, - isCSS = sheet.rel && sheet.rel.toLowerCase() === "stylesheet"; - - //only links plz and prevent re-parsing - if( !!href && isCSS && !parsedSheets[ href ] ){ - // selectivizr exposes css through the rawCssText expando - if (sheet.styleSheet && sheet.styleSheet.rawCssText) { - translate( sheet.styleSheet.rawCssText, href, media ); - parsedSheets[ href ] = true; - } else { - if( (!/^([a-zA-Z:]*\/\/)/.test( href ) && !base) || - href.replace( RegExp.$1, "" ).split( "/" )[0] === w.location.host ){ - // IE7 doesn't handle urls that start with '//' for ajax request - // manually add in the protocol - if ( href.substring(0,2) === "//" ) { href = w.location.protocol + href; } - requestQueue.push( { - href: href, - media: media - } ); - } - } - } - } - makeRequests(); - }; - - //translate CSS - ripCSS(); - - //expose update for re-running respond later on - respond.update = ripCSS; - - //expose getEmValue - respond.getEmValue = getEmValue; - - //adjust on resize - function callMedia(){ - applyMedia( true ); - } - - if( w.addEventListener ){ - w.addEventListener( "resize", callMedia, false ); - } - else if( w.attachEvent ){ - w.attachEvent( "onresize", callMedia ); - } -})(this); diff --git a/_site/github-repo-checklist/index.html b/_site/github-repo-checklist/index.html deleted file mode 100644 index deed66f..0000000 --- a/_site/github-repo-checklist/index.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - - GitHub Repo Checklist - 18F Open Source Style Guide - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -
- - - - -
-

GitHub Repo Checklist

-

Name

- -
    -
  • Is the name clear and descriptive?
  • -
- -

Description

- -

If your project is active, does your description:

- -
    -
  • Let someone know exactly what’s in the repo?
  • -
  • Describe the code and the project in a sentence or two?
  • -
- -

If your project is no longer active, does your description:

- -
    -
  • Note it’s no longer active by placing the word DEPRECATED in front of the description?
  • -
  • Indicate where people can find the active version of the project, if one exists?
  • -
- -

README

- -

Does your README answer the following questions:

- -
    -
  • What is the project?
  • -
  • How does someone develop, use, and test the code?
  • -
  • How can people become more involved?
  • -
  • What is the licensing for this project?
  • -
  • How do people contact the developers or ask a question?
  • -
- -

Issues

- -

Are your issues:

- -
    -
  • Written clearly and in the style of a user story?
  • -
  • Labeled clearly with the type of help you need?
  • -
  • Detailed with additional documentation as needed?
  • -
- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/_site/images/descriptions-on-github.png b/_site/images/descriptions-on-github.png deleted file mode 100644 index 0a467f9..0000000 Binary files a/_site/images/descriptions-on-github.png and /dev/null differ diff --git a/_site/images/favicons/18f-center-114.png b/_site/images/favicons/18f-center-114.png deleted file mode 100644 index c925bd8..0000000 Binary files a/_site/images/favicons/18f-center-114.png and /dev/null differ diff --git a/_site/images/favicons/18f-center-144.png b/_site/images/favicons/18f-center-144.png deleted file mode 100644 index 0a0b18d..0000000 Binary files a/_site/images/favicons/18f-center-144.png and /dev/null differ diff --git a/_site/images/favicons/18f-center-16.png b/_site/images/favicons/18f-center-16.png deleted file mode 100644 index 5be8614..0000000 Binary files a/_site/images/favicons/18f-center-16.png and /dev/null differ diff --git a/_site/images/favicons/18f-center-192.png b/_site/images/favicons/18f-center-192.png deleted file mode 100644 index 30b1cec..0000000 Binary files a/_site/images/favicons/18f-center-192.png and /dev/null differ diff --git a/_site/images/favicons/18f-center-200.png b/_site/images/favicons/18f-center-200.png deleted file mode 100644 index ea4027b..0000000 Binary files a/_site/images/favicons/18f-center-200.png and /dev/null differ diff --git a/_site/images/favicons/18f-center-32.png b/_site/images/favicons/18f-center-32.png deleted file mode 100644 index cbd6281..0000000 Binary files a/_site/images/favicons/18f-center-32.png and /dev/null differ diff --git a/_site/images/favicons/18f-center-57.png b/_site/images/favicons/18f-center-57.png deleted file mode 100644 index be6e1bf..0000000 Binary files a/_site/images/favicons/18f-center-57.png and /dev/null differ diff --git a/_site/images/favicons/18f-center-72.png b/_site/images/favicons/18f-center-72.png deleted file mode 100644 index bcecd67..0000000 Binary files a/_site/images/favicons/18f-center-72.png and /dev/null differ diff --git a/_site/images/favicons/favicon.ico b/_site/images/favicons/favicon.ico deleted file mode 100644 index d5b1c58..0000000 Binary files a/_site/images/favicons/favicon.ico and /dev/null differ diff --git a/_site/images/favicons/favicon.png b/_site/images/favicons/favicon.png deleted file mode 100644 index f875fee..0000000 Binary files a/_site/images/favicons/favicon.png and /dev/null differ diff --git a/_site/images/method-cards-description.png b/_site/images/method-cards-description.png deleted file mode 100644 index a13776f..0000000 Binary files a/_site/images/method-cards-description.png and /dev/null differ diff --git a/_site/images/wiki1.png b/_site/images/wiki1.png deleted file mode 100755 index 5848316..0000000 Binary files a/_site/images/wiki1.png and /dev/null differ diff --git a/_site/images/wiki2.png b/_site/images/wiki2.png deleted file mode 100755 index 4e0473e..0000000 Binary files a/_site/images/wiki2.png and /dev/null differ diff --git a/_site/images/wiki3.png b/_site/images/wiki3.png deleted file mode 100755 index 5ca3604..0000000 Binary files a/_site/images/wiki3.png and /dev/null differ diff --git a/_site/images/wiki4.png b/_site/images/wiki4.png deleted file mode 100755 index f40cdae..0000000 Binary files a/_site/images/wiki4.png and /dev/null differ diff --git a/_site/images/wiki5.png b/_site/images/wiki5.png deleted file mode 100755 index c2b29ac..0000000 Binary files a/_site/images/wiki5.png and /dev/null differ diff --git a/_site/images/wiki6.png b/_site/images/wiki6.png deleted file mode 100755 index eabbdfe..0000000 Binary files a/_site/images/wiki6.png and /dev/null differ diff --git a/_site/images/wiki7.png b/_site/images/wiki7.png deleted file mode 100755 index 6a1480e..0000000 Binary files a/_site/images/wiki7.png and /dev/null differ diff --git a/_site/index.html b/_site/index.html deleted file mode 100644 index 78d1e65..0000000 --- a/_site/index.html +++ /dev/null @@ -1,166 +0,0 @@ - - - - - - - Introduction - 18F Open Source Style Guide - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -
- - - - -
-

Introduction

-

This guide helps people document code repositories so that they're easy to use and understand. In each section, we outline our strategies for making sure that our code repositories are clear, accessible, and user-friendly.

- -

It’s important to make sure our documentation is clear both for internal and external audiences. As our team expands, we want our new employees to easily find and use our existing codebases.

- -

It's also really important if we want to make outside contributors feel welcome or have outside organizations fork and use our code. (And we do!) Explaining what a project is, why it's important, and how people can help ensures that people can fork and adapt our projects.

- -

This guide also contains a checklist we created that helps ensure our repos are clear, accessible, and user-friendly. Some terminology used may be GitHub-specific, but the concepts are applicable regardless of your version control system or platform.

- -

We’re sharing it because it we think it’s helpful for lots of organizations, including our own. We know that many of our repos don’t conform to this exact style. By articulating a specific style, we hope this document will also help us improve our own practices.

- -

How to use this guide

- -

We created this guide for reference on an as-needed basis. It’s here when you’re wondering how to describe a repo, for instance, or when you’re wondering how to create a friendly, informational tone when writing issues for users.

- -

To this end, we’ve structured the guide into descriptively named sections. Browse our table of contents to find the topic you’re looking for.

- -

Most importantly, we encourage you to make a copy of this document and adapt it to your organizational needs. This guide is just that: a guide. It’s not meant to provide the final opinion on any of the topics discussed. If a certain section isn’t relevant to you and your team, delete it. And if you feel the guide is missing a section, by all means, add it. This guide is yours to use, and we trust you’ll update it in the ways that best suit you.

- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/_site/making-readmes-readable/index.html b/_site/making-readmes-readable/index.html deleted file mode 100644 index 3f504a3..0000000 --- a/_site/making-readmes-readable/index.html +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - - Making READMEs Readable - 18F Open Source Style Guide - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -
- - - - -
-

Making READMEs Readable

-

Every repo contains a README, which is a document that is intended to explain, at first glance, what a project does and how to install or test the code.

- -

READMEs are really important because they’re the first item a user will see when encountering your code. Creating a readable README ensures that your co-workers and the public will be able to understand the intention of your program, install the software, and fork and adapt your projects.

- -

We find it helpful to think of the README as a guide to your code or project. It’s often helpful to create sections in the README for users to learn about the project. We recommend the following sections.

- -

A description of what the project is for.

- -

This should answer a short list of basic questions:

- -
    -
  • What is this repo or project? (You can reuse the repo description you used earlier because this section doesn’t have to be long.)
  • -
  • How does it work?,
  • -
  • Who will use this repo or project?
  • -
  • What is the goal of this project?
  • -
- -

You likely have the answer to many of these questions in your head and have discussed them with your team. It's helpful to write them down for people who find your repository. Not only will it be easier for developers to know how to fork the project or become involved with the project, but it will be easy for non-coders to understand what the code is designed to do, and how they, too, can become involved.

- -

Example: The README for 18F’s Midas project starts out by answering the questions:

- -
    -
  • What is Midas?
  • -
  • How does Midas work?
  • -
  • Who uses Midas?
  • -
  • What is Midas’ goal?
  • -
  • How can your organization benefit from using Midas?
  • -
- -

Instructions for how to develop, use, and test the code.

- -

This should answer the question: How do I get this project to work on my machine? How can I develop for this project? We find it works really well if you follow a two-step approach to develop the content for this section: first, help someone setup the site who has never done it before, and then write down the exact instructions. Next, ask someone to follow those instructions and see if you’ve missed anything.

- -

Important: If relevant code changes, it’s important to test to ensure these instructions continue to work. We also recommend separating the sections for using a project versus developing for it. (More detailed instructions are located in our guidelines for writing documentation for users, contributors, and developers.)

- -

Example: The README for 18F’s homepage contains detailed instructions for developing the site and deploying the site.

- -

Example: The README for Midas contains a link to installation instructions for developers.

- -

Instructions for how people can help.

- -

We explicitly welcome outside contributors. It’s important to explicitly state how they can help and what they can help with. This part of the website should answer the question: How can outside contributors become involved? We include a CONTRIBUTING.md file in each repo, which outlines the following:

- -
    -
  • If there are any additional setup steps specific for development.
  • -
  • Whether there are explicit Instructions for running tests before contributions are accepted.
  • -
  • If there are any requirements for contribution, if any, e.g. - -
      -
    • A Contributor License Agreement
    • -
    • CLAHub
    • -
    • http://oss-watch.ac.uk/resources/cla
    • -
    • http://contributoragreements.org/
    • -
    • If commits should be squashed
    • -
    • Whether there is a specific coding style to adhere to. (Generally contributors will match what they see within a project.)
    • -
  • -
  • Whether potential contributors should ask before they make significant changes.
  • -
  • Whether work-in-progress pull requests are ok.
  • -
  • What 18F's Code of Conduct states
  • -
- -

Example: The README for Midas contains a section called “How you can help.” What we really like about this section is that it doesn’t assume helpers are developers and lists ways for lots of different people to contribute. (Our guide to welcoming non-coders to hackathons also contains many suggestions for ways to involve people with different skillsets.)

- -

We also recommend reading Midas’ Contributor’s Guide, which orients new dev contributors and tells them the best ways to communicate with Midas’ dev team.

- -

List the licensing information for your project.

- -

This part of the repo should answer the question: What is the license for this project? All 18F projects are developed in the international public domain whenever possible and contain a LICENSE.md document, as well as a paragraph at the end of each README which contains information about the public domain. We post this information in the README, so that users know the code can be adapted and reused, and so they can easily see this information instead of going to a second site.

- -

List the contact information for your team as well as where to ask questions.

- -

This part of the repo should make it easy for users to get in touch with the team developing the project. This is also where you should list any listservs, chat programs, or social media groups that have been created to keep contributors informed.

- -

Any other information that you’d like to share with users can go in the Wiki section of your repository.

- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/_site/naming-your-project/index.html b/_site/naming-your-project/index.html deleted file mode 100644 index a4153e4..0000000 --- a/_site/naming-your-project/index.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - - Naming Your Project - 18F Open Source Style Guide - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -
- - - - -
-

Naming Your Project

-

Before naming a project, think ‘Is this easy to understand?’

- -

We recommend using descriptive names and avoid acronyms. It’s also important to check with your communications team before naming a project so that it can be cleared, if need be.

- -

For example, if you were creating a template your coworkers could use to create guides, a good name for the repo might be guides-template. A bad name might be the-unnamed-project-that-makes-it-easy-to-build-stuff.

- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/_site/using-the-wiki/index.html b/_site/using-the-wiki/index.html deleted file mode 100644 index 6170467..0000000 --- a/_site/using-the-wiki/index.html +++ /dev/null @@ -1,197 +0,0 @@ - - - - - - - Best Practices for Using the Wiki - 18F Open Source Style Guide - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -
- - - - -
-

Best Practices for Using the Wiki

-

Some of our teammates recommend turning off a repo's Wiki unless you have a proactive use for it. But there are many ways to use a Wiki and use it well.

- -

If you’re using GitHub, you can enable a wiki on every GitHub repo by going to its settings and checking the ‘Wikis’ box under ‘Features.’

- -

Turn the wiki feature on by going to settings and clicking on Wikis under the box labeled 'Features'

- -

What does this get you? Tons! You can now put all the great information that would have made your README way too long and complicated into separate, clear pages. For example, the 18f.gsa.gov team uses the wiki for all their “how to do this” work, and catalogues items like decisions on which blogging tags to use across our sites.

- -

This is the 18F site wiki, which catalogs how to use tags on their platforms.

- -

Another really great use for the wiki is to house your product roadmap and user research goals. 18F’s Michelle Hertzfeld is a huge proponent of keeping these documents in the repo with the codebase so they’re easy to find, share and get feedback on.

- -

A screenshot of the roadmap for USEITI website, which is located in a wiki

- -

Tracking user research on GitHub

- -

Speaking of user research, some of our project teams also like to keep their research process and findings in the repo along with the code. This helps keep all project documentation together in one place and also makes sure that we’re not only building in the open, but also researching in the open. This way, team members ,and anyone else who is interested, can track the research that went into project decisions.

- -

Naturally, this does not include posting confidential interviews with people or anything else that should not be shared. What it includes are things like: -* Research plans -* Interview scripts -* Summarized research findings

- -

One way to do this is to create an “orphan branch” to keep your research in. An orphan branch is a branch that you name that sits within the repo. Creating an orphan branch lets you have a completely different file structure from the rest of the repo in that branch, and you can put all of your research within that branch, as follows:

- -
    -
  • First, create a new branch under branch:master and label it with a new name. Michelle chose research. (Example)
  • -
- -

Create a new branch under branch:master

- -
    -
  • You are now on a branch of the repo, where you can store information.
  • -
- -

A screenshot of the research branch

- -
    -
  • Michelle stores information like user research for various sprints in this repo.
  • -
- -

Screenshot of user research for Sprint 17

- - - -

Screenshot of usability tests conducted during Sprint 17

- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/_site/writing-clear-and-concise-issues/index.html b/_site/writing-clear-and-concise-issues/index.html deleted file mode 100644 index bfea2ce..0000000 --- a/_site/writing-clear-and-concise-issues/index.html +++ /dev/null @@ -1,156 +0,0 @@ - - - - - - - Writing Clear and Concise Issues - 18F Open Source Style Guide - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -
- - - - -
-

Writing Clear and Concise Issues

-

Tasks that need to be completed or discussed are added to repos as issues.

- -

If you want outside contributors to help work on your project, it’s important to write clear issues that detail what people can work on. You can also use labels to distinguish issues and sort them into categories. For example, here are all of the open issues on the Midas project that are listed as questions.

- -

It is particularly helpful to use the ‘Help Wanted’ label for tasks or questions you need help with. (Examples.) Why? There are other sites, like Govcode and Code for America’s Civic Tech Issue Finder, which surface issues that have been labeled ‘Help Wanted’ so people can jump in and help. You can also use the ‘Beginner Friendly’ label to specifically note tasks that are suitable for beginners.

- -

When writing an issue, it is often helpful to craft it in terms of a user story because it frames the task in terms of a user need. User stories are framed as follows: “As an X, I want to do Y because Z.” Here is an example of an issue framed as a user story.

- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/_site/writing-the-repo-description/index.html b/_site/writing-the-repo-description/index.html deleted file mode 100644 index aad9f9a..0000000 --- a/_site/writing-the-repo-description/index.html +++ /dev/null @@ -1,172 +0,0 @@ - - - - - - - Making repo descriptions short and clear - 18F Open Source Style Guide - - - - - - - - - - - - - - - - - - -
- -
- - - -
- -
- - - - -
-

Making repo descriptions short and clear

-

The description of a repo tells the public what is contained in the repo itself. If you have multiple repositories for the same project, it's better to describe what is contained in the repo itself instead of describing the project.

- -

Repo descriptions should clear, concise, and descriptive. Descriptions are listed under each repository title on an organization’s GitHub page. Anyone who scans the GitHub page should be able to determine what a repo does, just by looking at the description.

- -

For example, let's look at the description of some 18F projects.

- -

18F GitHub repositories and descriptions, which are written below

- -

The description for the repo domain-side is "Scan domains for various web things, like HTTP/HTTPs configuration."

- -

The description for the repo midas-open opportunities is "Digital Services Innovation Center's Open Opportunities on the Midas Platform."

- -

And the description for the repo pulse is "How the .gov space is doing at best practices and federal requirements."

- -

Each of these descriptions is clear and tells the user exactly what she or he will find when opening the repo.

- -

Screenshot of Description of Method Cards repository. Description: 'An initial collection of design methods, which includes general descriptions, how-tos, and how such methods can be put into practice for government projects

- -

It’s sometimes hard to think of a complete description of the repo in one or two sentences. An easy way to come up with a good description is to think ‘How would I explain what this project does in one or two sentences to someone at a dinner party?’ Those are the sentences you want to write down as your repo description. Before you publish, it also helps to run your description by someone who doesn’t work on your team. Do they have any suggestions?

- -

If a project isn’t active, make that clear

- -

If your repo is not in active development, it’s helpful to let users know this so they don’t make contributions to a non-active repository. We suggest adding the word DEPRECATED before your repo description. Here is an example of a deprecated repo.

- -
- -
- - - - -
- - - - - - - - - - - - - - - - - diff --git a/assets/css/custom.css b/assets/css/custom.css deleted file mode 100644 index 6be5430..0000000 --- a/assets/css/custom.css +++ /dev/null @@ -1,42 +0,0 @@ -/* -This is where custom styles for your guide should live. -*/ - -div.skip-nav a { - position: absolute; - left: -10000; - top: 0; - width: 1px; - height: auto; - overflow: hidden; -} -div.skip-nav a:focus { - position: absolute; - top: 5px; - left: 5px; - width: auto; - height: auto; - z-index: 999999; - background-color: white; - padding-left: 2px; - padding-right: 2px; - overflow: visible; - } - - .mainContent:focus { - outline: none; - } - - table, th, td { - border: 1px solid black; - padding: 5px; - margin:5px; -} -th { - background: #767576; - color:white; -} -li.active > a{ - background-color: #317ab9; -} - diff --git a/assets/css/main.css b/assets/css/main.css deleted file mode 100644 index fa98a51..0000000 --- a/assets/css/main.css +++ /dev/null @@ -1,620 +0,0 @@ ---- ---- - -/* -Main.css -================================== -Begin with generic 'mobile first' styles -*/ - -/* -Normalize the box model -================================== -*/ - -*, -*:before, -*:after { - -webkit-box-sizing: border-box; - -moz-box-sizing: border-box; - box-sizing: border-box; - } - -/* -global styles -================================== -*/ - -html, body { - height: 100%; -} - -/* -Typography -================================== -*/ - -body { - font-family: "Open Sans", Arial, sans-serif; - font-weight: 400; - font-style: normal; - line-height: 1.466666667; - margin: 0; -} - -h1, -h2, -h3, -h4, -h5 { - font-family: "Raleway", Arial, sans-serif; - font-weight: 600; -} - -.site-title { - font-size: 1.9em; - color: #919395; - margin: 0; - line-height: 1.2941176470588236; - display: inline-block; -} - -h2 { - font-size: 1.375em; - margin: 1.4em 0 0 0; -} - -h3 { - margin-top: 30px; -} - -h4 { - font-size: 1em; - text-transform: uppercase; -} - -.page-title { - margin-top: .727272727em; /* 16/22 */ -} - -/* -Lists --------------------------------- -*/ - -.main-content ul { - padding-left: 1.1em; -} - -.main-content li { - margin-bottom: 1em; -} - -li h3, -li h4 { - margin: 0; -} - -li p { - margin-top: 0; -} - -/* -Links -================================== -*/ - -a { - -webkit-transition: .2s; - -moz-transition: .2s; - transition: .2s; -} - -a, -a:link, -a:visited { - color: #0072ce; - border-bottom: 1px dotted #0072ce; - text-decoration: none; -} - -a:hover { - border-bottom: 1px solid #7eb8dd; - color: #7eb8dd; - text-decoration: none; -} - -a:active { - border-bottom: 1px solid #002d72; - color: #002d72; - text-decoration: none; -} - -a:focus { - border-bottom: 1px solid #0072ce; - color: #0072ce; - outline: thin dotted; - text-decoration: none; -} - -a.title-link { - color: #75787B; - border-bottom: none; -} - -a.title-link:hover, -a.title-link:active, -a.title-link:focus { - color: #7eb8dd; - border-bottom: none; -} - -a.skip-link { - color: #0072ce; - border-bottom: none; - padding: .25em; -} - -a.skip-link:hover, -a.skip-link:active, -a.skip-link:focus { - background-color: #0072ce; - color: #fff; - border-bottom: none; -} - - -/* -Navigation -================================== -*/ - -.sidebar-nav a { - display: block; - padding: 10px; - -webkit-transition: .4s; - transition: .4s; - width: 80%; - float: left; -} - -.sidebar-nav a, -.sidebar-nav a:link, -.sidebar-nav a:visited { - border-bottom: none; - color: #74767B; -} - -.sidebar-nav a:hover, -.sidebar-nav a:focus, -.sidebar-nav a:active, -.sidebar-nav .sidebar-nav-active > a { - color: #74767B; - border-left: 4px solid {{ site.brand_color }}; - background-color: transparent; - padding-left: 20px; -} - -.sidebar-nav ul { - margin: 0; - padding: 0; -} - -.sidebar-nav li { - list-style: none; - border-bottom: 1px solid #babbbd; - font-size: 1.125em; - padding-left: 4px; - overflow: hidden; -} - -.sidebar-nav li:last-child { - border-bottom: none; -} - -.nav-children { - clear: both; - display: block; - font-size: 14px; - max-height: 0; - opacity: 0; - overflow: hidden; - position: relative; - -webkit-transition: max-height .2s, opacity .2s; - -moz-transition: max-height .2s, opacity .2s; - -o-transition: max-height .2s, opacity .2s; - transition: max-height .2s, opacity .2s; -} - -.nav-children li { - border-bottom: none; -} - -.nav-children a { - padding: 5px 5px 5px 20px; -} - -.nav-children li:last-child a { - padding-bottom: 10px; -} - -.nav-children a:hover, -.nav-children a:focus, -.nav-children a:active { - padding-left: 40px; -} - -.expand-subnav { - background: none; - border: none; - border-radius: 24px; - color: #0072ce; - cursor: pointer; - display: block; - float: right; - height: 24px; - margin: 12px; - position: relative; - width: 24px; - -webkit-appearance: none; - -moz-appearance: none; - -o-appearance: none; - appearance: none; -} - -.expand-subnav:before { - content: "+"; - display: block; - font-size: 20px; - left: 6px; - line-height: 1; - position: absolute; - top: 0px; - -webkit-transition: transform .2s, left .2s; - -moz-transition: transform .2s, left .2s; - -o-transition: transform .2s, left .2s; - transition: transform .2s, left .2s; -} - -.expand-subnav:focus { - background: #0072ce; - color: #fff; - outline: none; -} - -.expand-subnav:checked:before { - left: 7px; - -webkit-tranform: rotate3d(0, 0, 1, 45deg); - -moz-transform: rotate3d(0, 0, 1, 45deg); - -o-transform: rotate3d(0, 0, 1, 45deg); - transform: rotate3d(0, 0, 1, 45deg); - -webkit-transition: transform .2s, left .2s; - -moz-transition: transform .2s, left .2s; - -o-transition: transform .2s, left .2s; - transition: transform .2s, left .2s; -} - -/* Show the menu when the checkbox is checked */ -.expand-subnav:checked + .nav-children { - display: block; - max-height: 400px; - opacity: 1; - -webkit-transition: max-height .2s, opacity .2s; - -moz-transition: max-height .2s, opacity .2s; - -o-transition: max-height .2s, opacity .2s; - transition: max-height .2s, opacity .2s; -} - -/* -Layout -================================== -*/ - -.logo { - display: block; -} - -.content { - padding-top: 2em; - padding-bottom: 2em; -} - -/* offset the fixed position header for jump links */ -section:before { - display: block; - content: ""; - height: 60px; - margin: -60px 0 0; -} - -.wrap { - max-width: 1200px; - margin: 0 auto; - padding-left: 20px; - padding-right: 20px; -} - -header { - width: 100%; - border-bottom: 4px solid {{ site.brand_color }}; - background-color: #fff; - padding: 2em 0; -} - - -/* -Footer -================================== -*/ - -/* for sticky footer */ -.container { - display: table; - height: 100%; - width: 100%; -} - -footer { - display: table-row; /* for sticky footer */ - height: 1px; /* for sticky footer */ - border-top: 2px solid #babbbd; - background: #f1f2f2; - width: 100%; - font-size: 0.875em; -} - -footer .wrap { - padding-top: 2em; - padding-bottom: 2em; -} - - -/* -Helpers -================================== -*/ - -/* Hide from both screenreaders and browsers: h5bp.com/u */ -.hidden { - display: none !important; - visibility: hidden; -} - -/* Hide only visually, but have it available for screenreaders: h5bp.com/v */ -.visuallyhidden { - border: 0; - clip: rect(0 0 0 0); - height: 1px; - margin: -1px; - overflow: hidden; - padding: 0; - position: absolute; - width: 1px; -} - -/* Extends the .visuallyhidden class to allow the element to be focusable - * when navigated to via the keyboard: h5bp.com/p */ -.visuallyhidden.focusable:active, -.visuallyhidden.focusable:focus { - clip: auto; - height: auto; - margin: 0; - overflow: visible; - position: static; - width: auto; -} - -/* Hide visually and from screenreaders, but maintain layout */ -.invisible { - visibility: hidden; -} - - -/* -Style -================================== -*/ - -.intro { - color: #75787B; -} - -li h4 { - margin: 0; -} - -.license { - font-family: "Avenir Next Demi", Arial, sans-serif; - font-weight: normal; - font-style: normal; -} - -pre { - max-width: 100%; - font-size: 0.875em; - overflow-y: scroll; - background-color: #f1f2f2; - padding: 10px; -} - -/* -Post list ----------------------------------- -*/ - -ul.posts { - padding: 0; -} - -.posts li { - list-style: none; -} - -.post-date { - color: #75787B; -} - -/* -Repo list ----------------------------------- -*/ - -ul.repo-list { - margin: .5em 0 1em 0; - padding: 0; -} - -.repo-list li { - list-style: none; -} - -.repo-list p { - margin: 0; - font-size: 0.875em; -} - -.repo-list h4 { - text-transform: none; -} - -/* -Helper Classes -================================== -*/ - -/* -Clearfix list ----------------------------------- -*/ - -.group:before, -.group:after { - content: " "; - display: table; -} - -.group:after { - clear: both; -} - -.group { - *zoom: 1; -} - -/* -Desktop Styles -================================== -*/ - -@media screen and (min-width: 45em) and (min-height: 32.5em) { - - /* - Typography - ============================== - */ - - /* - Layout - ============================== - */ - - .logo { - max-width: 30%; - padding-right: 20px; - margin-top: -12px; - float: right; - } - - aside { - width: 30%; - float: left; - } - - .main-content { - width: 67%; - float: right; - margin-bottom: 120px; - } - - .main-content img { - max-width: 100%; - } - - /* - Navigation - ============================== - */ - - - /* - Style - ============================== - */ - - /* - Repo list - ------------------------------ - */ - - .repo-list li { - list-style: none; - display: block; - float: left; - height: 4.0625em; - max-height: 4.0625em; - background-color: #E7E7E6; - border-left: 1px solid #BABBBD; - width: 30%; - } - - .repo-list a:link, - .repo-list a:visited { - display: block; - max-height: 4.0625em; - background-color: #E7E7E6; - border-bottom: none; - padding: .625em 1em 1em 1em; - } - - .repo-list a:hover { - color: #4D5F87; - background-color: #CDE3F1; - } - - .repo-list li:first-child { - text-align: center; - border-left: none; - line-height: 60px; - padding: .625em 1em; - width: 10%; - } - -} - -@media screen and (max-width: 54.375em) and (min-height: 32.5em) { - - /* keep the repo list containers the same height, but account for the need for more height */ - - .repo-list li { - height: 6em; - max-height: 6em; - } - - .repo-list a:link, - .repo-list a:visited { - max-height: 6em; - } -} - -/* -Mobile Styles -================================== -*/ - -@media screen and (max-width: 40.5em) { - - .main-content { - margin-top: 1.5em; - } - -} diff --git a/assets/css/styles.scss b/assets/css/styles.scss new file mode 100644 index 0000000..0020383 --- /dev/null +++ b/assets/css/styles.scss @@ -0,0 +1,4 @@ +--- +--- + +@import "guides_style_18f"; diff --git a/assets/css/syntax.css b/assets/css/syntax.css deleted file mode 100644 index 1e651cf..0000000 --- a/assets/css/syntax.css +++ /dev/null @@ -1,60 +0,0 @@ -.highlight { background: #ffffff; } -.highlight .c { color: #999988; font-style: italic } /* Comment */ -.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */ -.highlight .k { font-weight: bold } /* Keyword */ -.highlight .o { font-weight: bold } /* Operator */ -.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */ -.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */ -.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */ -.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */ -.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */ -.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */ -.highlight .ge { font-style: italic } /* Generic.Emph */ -.highlight .gr { color: #aa0000 } /* Generic.Error */ -.highlight .gh { color: #999999 } /* Generic.Heading */ -.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */ -.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */ -.highlight .go { color: #888888 } /* Generic.Output */ -.highlight .gp { color: #555555 } /* Generic.Prompt */ -.highlight .gs { font-weight: bold } /* Generic.Strong */ -.highlight .gu { color: #aaaaaa } /* Generic.Subheading */ -.highlight .gt { color: #aa0000 } /* Generic.Traceback */ -.highlight .kc { font-weight: bold } /* Keyword.Constant */ -.highlight .kd { font-weight: bold } /* Keyword.Declaration */ -.highlight .kp { font-weight: bold } /* Keyword.Pseudo */ -.highlight .kr { font-weight: bold } /* Keyword.Reserved */ -.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */ -.highlight .m { color: #009999 } /* Literal.Number */ -.highlight .s { color: #d14 } /* Literal.String */ -.highlight .na { color: #008080 } /* Name.Attribute */ -.highlight .nb { color: #0086B3 } /* Name.Builtin */ -.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */ -.highlight .no { color: #008080 } /* Name.Constant */ -.highlight .ni { color: #800080 } /* Name.Entity */ -.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */ -.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */ -.highlight .nn { color: #555555 } /* Name.Namespace */ -.highlight .nt { color: #000080 } /* Name.Tag */ -.highlight .nv { color: #008080 } /* Name.Variable */ -.highlight .ow { font-weight: bold } /* Operator.Word */ -.highlight .w { color: #bbbbbb } /* Text.Whitespace */ -.highlight .mf { color: #009999 } /* Literal.Number.Float */ -.highlight .mh { color: #009999 } /* Literal.Number.Hex */ -.highlight .mi { color: #009999 } /* Literal.Number.Integer */ -.highlight .mo { color: #009999 } /* Literal.Number.Oct */ -.highlight .sb { color: #d14 } /* Literal.String.Backtick */ -.highlight .sc { color: #d14 } /* Literal.String.Char */ -.highlight .sd { color: #d14 } /* Literal.String.Doc */ -.highlight .s2 { color: #d14 } /* Literal.String.Double */ -.highlight .se { color: #d14 } /* Literal.String.Escape */ -.highlight .sh { color: #d14 } /* Literal.String.Heredoc */ -.highlight .si { color: #d14 } /* Literal.String.Interpol */ -.highlight .sx { color: #d14 } /* Literal.String.Other */ -.highlight .sr { color: #009926 } /* Literal.String.Regex */ -.highlight .s1 { color: #d14 } /* Literal.String.Single */ -.highlight .ss { color: #990073 } /* Literal.String.Symbol */ -.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */ -.highlight .vc { color: #008080 } /* Name.Variable.Class */ -.highlight .vg { color: #008080 } /* Name.Variable.Global */ -.highlight .vi { color: #008080 } /* Name.Variable.Instance */ -.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */ \ No newline at end of file diff --git a/assets/img/18f-logo.png b/assets/img/18f-logo.png deleted file mode 100644 index 8ca142f..0000000 Binary files a/assets/img/18f-logo.png and /dev/null differ diff --git a/assets/js/html5shiv.js b/assets/js/html5shiv.js deleted file mode 100755 index 205bdfe..0000000 --- a/assets/js/html5shiv.js +++ /dev/null @@ -1,301 +0,0 @@ -/** -* @preserve HTML5 Shiv prev3.7.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed -*/ -;(function(window, document) { -/*jshint evil:true */ - /** version */ - var version = '3.7.0'; - - /** Preset options */ - var options = window.html5 || {}; - - /** Used to skip problem elements */ - var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i; - - /** Not all elements can be cloned in IE **/ - var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i; - - /** Detect whether the browser supports default html5 styles */ - var supportsHtml5Styles; - - /** Name of the expando, to work with multiple documents or to re-shiv one document */ - var expando = '_html5shiv'; - - /** The id for the the documents expando */ - var expanID = 0; - - /** Cached data for each document */ - var expandoData = {}; - - /** Detect whether the browser supports unknown elements */ - var supportsUnknownElements; - - (function() { - try { - var a = document.createElement('a'); - a.innerHTML = ''; - //if the hidden property is implemented we can assume, that the browser supports basic HTML5 Styles - supportsHtml5Styles = ('hidden' in a); - - supportsUnknownElements = a.childNodes.length == 1 || (function() { - // assign a false positive if unable to shiv - (document.createElement)('a'); - var frag = document.createDocumentFragment(); - return ( - typeof frag.cloneNode == 'undefined' || - typeof frag.createDocumentFragment == 'undefined' || - typeof frag.createElement == 'undefined' - ); - }()); - } catch(e) { - // assign a false positive if detection fails => unable to shiv - supportsHtml5Styles = true; - supportsUnknownElements = true; - } - - }()); - - /*--------------------------------------------------------------------------*/ - - /** - * Creates a style sheet with the given CSS text and adds it to the document. - * @private - * @param {Document} ownerDocument The document. - * @param {String} cssText The CSS text. - * @returns {StyleSheet} The style element. - */ - function addStyleSheet(ownerDocument, cssText) { - var p = ownerDocument.createElement('p'), - parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement; - - p.innerHTML = 'x'; - return parent.insertBefore(p.lastChild, parent.firstChild); - } - - /** - * Returns the value of `html5.elements` as an array. - * @private - * @returns {Array} An array of shived element node names. - */ - function getElements() { - var elements = html5.elements; - return typeof elements == 'string' ? elements.split(' ') : elements; - } - - /** - * Returns the data associated to the given document - * @private - * @param {Document} ownerDocument The document. - * @returns {Object} An object of data. - */ - function getExpandoData(ownerDocument) { - var data = expandoData[ownerDocument[expando]]; - if (!data) { - data = {}; - expanID++; - ownerDocument[expando] = expanID; - expandoData[expanID] = data; - } - return data; - } - - /** - * returns a shived element for the given nodeName and document - * @memberOf html5 - * @param {String} nodeName name of the element - * @param {Document} ownerDocument The context document. - * @returns {Object} The shived element. - */ - function createElement(nodeName, ownerDocument, data){ - if (!ownerDocument) { - ownerDocument = document; - } - if(supportsUnknownElements){ - return ownerDocument.createElement(nodeName); - } - if (!data) { - data = getExpandoData(ownerDocument); - } - var node; - - if (data.cache[nodeName]) { - node = data.cache[nodeName].cloneNode(); - } else if (saveClones.test(nodeName)) { - node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode(); - } else { - node = data.createElem(nodeName); - } - - // Avoid adding some elements to fragments in IE < 9 because - // * Attributes like `name` or `type` cannot be set/changed once an element - // is inserted into a document/fragment - // * Link elements with `src` attributes that are inaccessible, as with - // a 403 response, will cause the tab/window to crash - // * Script elements appended to fragments will execute when their `src` - // or `text` property is set - return node.canHaveChildren && !reSkip.test(nodeName) && !node.tagUrn ? data.frag.appendChild(node) : node; - } - - /** - * returns a shived DocumentFragment for the given document - * @memberOf html5 - * @param {Document} ownerDocument The context document. - * @returns {Object} The shived DocumentFragment. - */ - function createDocumentFragment(ownerDocument, data){ - if (!ownerDocument) { - ownerDocument = document; - } - if(supportsUnknownElements){ - return ownerDocument.createDocumentFragment(); - } - data = data || getExpandoData(ownerDocument); - var clone = data.frag.cloneNode(), - i = 0, - elems = getElements(), - l = elems.length; - for(;i -1 ? ( eminpx || getEmValue() ) : 1 ); - } - if( !!max ){ - max = parseFloat( max ) * ( max.indexOf( em ) > -1 ? ( eminpx || getEmValue() ) : 1 ); - } - - // if there's no media query at all (the () part), or min or max is not null, and if either is present, they're true - if( !thisstyle.hasquery || ( !minnull || !maxnull ) && ( minnull || currWidth >= min ) && ( maxnull || currWidth <= max ) ){ - if( !styleBlocks[ thisstyle.media ] ){ - styleBlocks[ thisstyle.media ] = []; - } - styleBlocks[ thisstyle.media ].push( rules[ thisstyle.rules ] ); - } - } - } - - //remove any existing respond style element(s) - for( var j in appendedEls ){ - if( appendedEls.hasOwnProperty( j ) ){ - if( appendedEls[ j ] && appendedEls[ j ].parentNode === head ){ - head.removeChild( appendedEls[ j ] ); - } - } - } - appendedEls.length = 0; - - //inject active styles, grouped by media type - for( var k in styleBlocks ){ - if( styleBlocks.hasOwnProperty( k ) ){ - var ss = doc.createElement( "style" ), - css = styleBlocks[ k ].join( "\n" ); - - ss.type = "text/css"; - ss.media = k; - - //originally, ss was appended to a documentFragment and sheets were appended in bulk. - //this caused crashes in IE in a number of circumstances, such as when the HTML element had a bg image set, so appending beforehand seems best. Thanks to @dvelyk for the initial research on this one! - head.insertBefore( ss, lastLink.nextSibling ); - - if ( ss.styleSheet ){ - ss.styleSheet.cssText = css; - } - else { - ss.appendChild( doc.createTextNode( css ) ); - } - - //push to appendedEls to track for later removal - appendedEls.push( ss ); - } - } - }, - //find media blocks in css text, convert to style blocks - translate = function( styles, href, media ){ - var qs = styles.replace( respond.regex.keyframes, '' ).match( respond.regex.media ), - ql = qs && qs.length || 0; - - //try to get CSS path - href = href.substring( 0, href.lastIndexOf( "/" ) ); - - var repUrls = function( css ){ - return css.replace( respond.regex.urls, "$1" + href + "$2$3" ); - }, - useMedia = !ql && media; - - //if path exists, tack on trailing slash - if( href.length ){ href += "/"; } - - //if no internal queries exist, but media attr does, use that - //note: this currently lacks support for situations where a media attr is specified on a link AND - //its associated stylesheet has internal CSS media queries. - //In those cases, the media attribute will currently be ignored. - if( useMedia ){ - ql = 1; - } - - for( var i = 0; i < ql; i++ ){ - var fullq, thisq, eachq, eql; - - //media attr - if( useMedia ){ - fullq = media; - rules.push( repUrls( styles ) ); - } - //parse for styles - else{ - fullq = qs[ i ].match( respond.regex.findStyles ) && RegExp.$1; - rules.push( RegExp.$2 && repUrls( RegExp.$2 ) ); - } - - eachq = fullq.split( "," ); - eql = eachq.length; - - for( var j = 0; j < eql; j++ ){ - thisq = eachq[ j ]; - mediastyles.push( { - media : thisq.split( "(" )[ 0 ].match( respond.regex.only ) && RegExp.$2 || "all", - rules : rules.length - 1, - hasquery : thisq.indexOf("(") > -1, - minw : thisq.match( respond.regex.minw ) && parseFloat( RegExp.$1 ) + ( RegExp.$2 || "" ), - maxw : thisq.match( respond.regex.maxw ) && parseFloat( RegExp.$1 ) + ( RegExp.$2 || "" ) - } ); - } - } - - applyMedia(); - }, - - //recurse through request queue, get css text - makeRequests = function(){ - if( requestQueue.length ){ - var thisRequest = requestQueue.shift(); - - ajax( thisRequest.href, function( styles ){ - translate( styles, thisRequest.href, thisRequest.media ); - parsedSheets[ thisRequest.href ] = true; - - // by wrapping recursive function call in setTimeout - // we prevent "Stack overflow" error in IE7 - w.setTimeout(function(){ makeRequests(); },0); - } ); - } - }, - - //loop stylesheets, send text content to translate - ripCSS = function(){ - - for( var i = 0; i < links.length; i++ ){ - var sheet = links[ i ], - href = sheet.href, - media = sheet.media, - isCSS = sheet.rel && sheet.rel.toLowerCase() === "stylesheet"; - - //only links plz and prevent re-parsing - if( !!href && isCSS && !parsedSheets[ href ] ){ - // selectivizr exposes css through the rawCssText expando - if (sheet.styleSheet && sheet.styleSheet.rawCssText) { - translate( sheet.styleSheet.rawCssText, href, media ); - parsedSheets[ href ] = true; - } else { - if( (!/^([a-zA-Z:]*\/\/)/.test( href ) && !base) || - href.replace( RegExp.$1, "" ).split( "/" )[0] === w.location.host ){ - // IE7 doesn't handle urls that start with '//' for ajax request - // manually add in the protocol - if ( href.substring(0,2) === "//" ) { href = w.location.protocol + href; } - requestQueue.push( { - href: href, - media: media - } ); - } - } - } - } - makeRequests(); - }; - - //translate CSS - ripCSS(); - - //expose update for re-running respond later on - respond.update = ripCSS; - - //expose getEmValue - respond.getEmValue = getEmValue; - - //adjust on resize - function callMedia(){ - applyMedia( true ); - } - - if( w.addEventListener ){ - w.addEventListener( "resize", callMedia, false ); - } - else if( w.attachEvent ){ - w.attachEvent( "onresize", callMedia ); - } -})(this); diff --git a/images/favicons/18f-center-114.png b/images/favicons/18f-center-114.png deleted file mode 100644 index c925bd8..0000000 Binary files a/images/favicons/18f-center-114.png and /dev/null differ diff --git a/images/favicons/18f-center-144.png b/images/favicons/18f-center-144.png deleted file mode 100644 index 0a0b18d..0000000 Binary files a/images/favicons/18f-center-144.png and /dev/null differ diff --git a/images/favicons/18f-center-16.png b/images/favicons/18f-center-16.png deleted file mode 100644 index 5be8614..0000000 Binary files a/images/favicons/18f-center-16.png and /dev/null differ diff --git a/images/favicons/18f-center-192.png b/images/favicons/18f-center-192.png deleted file mode 100644 index 30b1cec..0000000 Binary files a/images/favicons/18f-center-192.png and /dev/null differ diff --git a/images/favicons/18f-center-200.png b/images/favicons/18f-center-200.png deleted file mode 100644 index ea4027b..0000000 Binary files a/images/favicons/18f-center-200.png and /dev/null differ diff --git a/images/favicons/18f-center-32.png b/images/favicons/18f-center-32.png deleted file mode 100644 index cbd6281..0000000 Binary files a/images/favicons/18f-center-32.png and /dev/null differ diff --git a/images/favicons/18f-center-57.png b/images/favicons/18f-center-57.png deleted file mode 100644 index be6e1bf..0000000 Binary files a/images/favicons/18f-center-57.png and /dev/null differ diff --git a/images/favicons/18f-center-72.png b/images/favicons/18f-center-72.png deleted file mode 100644 index bcecd67..0000000 Binary files a/images/favicons/18f-center-72.png and /dev/null differ diff --git a/images/favicons/favicon.ico b/images/favicons/favicon.ico deleted file mode 100644 index d5b1c58..0000000 Binary files a/images/favicons/favicon.ico and /dev/null differ diff --git a/images/favicons/favicon.png b/images/favicons/favicon.png deleted file mode 100644 index f875fee..0000000 Binary files a/images/favicons/favicon.png and /dev/null differ diff --git a/index.md b/index.md index 3613baf..ffc64fe 100644 --- a/index.md +++ b/index.md @@ -1,6 +1,5 @@ --- permalink: / -layout: default title: Introduction --- diff --git a/pages/github-repo-checklist.md b/pages/github-repo-checklist.md index 4f93a30..163e5b5 100644 --- a/pages/github-repo-checklist.md +++ b/pages/github-repo-checklist.md @@ -1,6 +1,5 @@ --- permalink: /github-repo-checklist/ -layout: default title: GitHub repo checklist --- diff --git a/pages/making-readmes-readable.md b/pages/making-readmes-readable.md index 391f21f..ebcd740 100644 --- a/pages/making-readmes-readable.md +++ b/pages/making-readmes-readable.md @@ -1,6 +1,5 @@ --- permalink: /making-readmes-readable/ -layout: default title: Making READMEs readable --- diff --git a/pages/naming-your-project.md b/pages/naming-your-project.md index 7f9f65e..6338844 100644 --- a/pages/naming-your-project.md +++ b/pages/naming-your-project.md @@ -1,6 +1,5 @@ --- permalink: /naming-your-project/ -layout: default title: Naming your project --- diff --git a/pages/using-the-wiki.md b/pages/using-the-wiki.md index 989abe0..cfc5d13 100644 --- a/pages/using-the-wiki.md +++ b/pages/using-the-wiki.md @@ -1,6 +1,5 @@ --- permalink: /using-the-wiki/ -layout: default title: Best practices for using the wiki --- diff --git a/pages/writing-clear-and-concise-issues.md b/pages/writing-clear-and-concise-issues.md index fd93f31..88af80c 100644 --- a/pages/writing-clear-and-concise-issues.md +++ b/pages/writing-clear-and-concise-issues.md @@ -1,6 +1,5 @@ --- permalink: /writing-clear-and-concise-issues/ -layout: default title: Writing clear and concise issues --- diff --git a/pages/writing-the-repo-description.md b/pages/writing-the-repo-description.md index 69f12a8..021a826 100644 --- a/pages/writing-the-repo-description.md +++ b/pages/writing-the-repo-description.md @@ -1,6 +1,5 @@ --- permalink: /writing-the-repo-description/ -layout: default title: Making repo descriptions short and clear ---