Skip to content

Commit

Permalink
Added contributor guidelines to README.md. Adde .gitattributes to def…
Browse files Browse the repository at this point in the history
…ine which file types should be treated as text and which should be treated as binary.
  • Loading branch information
Paul Jackson authored and Paul Jackson committed Jul 16, 2012
1 parent 5cb7296 commit 1c3598e
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitattributes
@@ -0,0 +1,21 @@
# These files are text and should be normalized (convert crlf => lf)
*.js text
*.css text
*.scss text
*.html text
*.php text
*.inc text
*.xml text
*.txt text
*.md text
*.properties text
*.rb text
*.yml text


# Images should be treated as binary
# (binary is a macro for -text -diff)
*.png binary
*.jpeg binary
*.gif binary
*.jar binary
22 changes: 22 additions & 0 deletions README.md
Expand Up @@ -22,6 +22,28 @@ The toolkit complies with the new Standards on Web Accessibility and Web Usabili
* [Terms and conditions](http://www.tbs.gc.ca/ws-nw/wet-boew/terms)
* [Working examples](http://wet-boew.github.com/wet-boew/demos/index-eng.html)

## Contributor guidelines

* Pull requests are welcome. Please make sure your changes are to the latest code and limit the commit range to just the files you intended to change (to avoid conflicts).
* New components should be added in a feature-* branch (e.g., feature-lightbox).
** Licensing for all new components and supporting code must be compatible with the MIT license used by WET.
** New plugins should use pluginTemplate.js as the basis for the JavaScript code.
** Include the WET terms and conditions comment block in all text-based source files that fall under Crown Copyright.
* [Validate your HTML markup](http://validator.w3.org/nu/). Markup should be well-formed HTML5.
** To test for well-formed markup, validate with an XHTML5 preset and a checkmark next to "Be lax about HTTP Content-Type".
* [Validate your CSS](http://jigsaw.w3.org/css-validator/#validate_by_uri+with_options) with the following changes to the default settings:
** **Profile:** CSS level 3
** **Vendor extensions:** Warnings
* [JSLint your JavaScript code](http://www.jslint.com) with the following changes to the default settings:
** **Tolerate dangling _ in identifiers:** true
** **Tolerate missing 'use strict' pragma:** true
** **Assume browser:** true
* Formatting recommendations:
** Indent with tabs using the [K&R indenting style](http://en.wikipedia.org/wiki/Indent_style#K.26R_style)
** Use single quotes for string in JavaScript (so unescaped double quotes can be used for attributes in HTML output)
* Supported browsers (should be tested against): [Browser test baseline - YUI Graded Browser Support](http://yuilibrary.com/yui/docs/tutorials/gbs/) (excluding IE6)


-------------------------------------------------------------------

# Boîte à outils de l’expérience Web (BOEW)
Expand Down
2 changes: 2 additions & 0 deletions demos/mathlib/mathlib-eng.html
Expand Up @@ -1422,6 +1422,8 @@ <h1 id="wb-cont">Mathematical/scientific formula display</h1>
</section>
</div>

<a href="#" onclick="pe.add._load('sie-mini.js');alert($('.wet-boew-mathlib table tr').eq(1).html());return false;">Load SVG</a>

<dl id="gcwu-date-mod" role="contentinfo">
<dt>Date modified:</dt><dd><span><time>2011-10-31</time></span></dd>
</dl>
Expand Down

0 comments on commit 1c3598e

Please sign in to comment.