Skip to content

Commit

Permalink
merge mochajs/mochajs.github.io into mochajs/mocha
Browse files Browse the repository at this point in the history
* ghpages/pre-move: (263 commits)
  move everything into docs/ in prep for moving repo into mocha proper
  Fix hyperlink for async_hooks
  add section on --exit / --no-exit
  update "Usage" and "--compilers" sections
  Fix typo in "Using async / await" snippet
  Update index.md
  Add `--inspect`
  **Bug** Edge renders the icon for a backer without an image to take up the entire screen.
  drop shx dependency
  chore(package): update shx to version 0.2.0
  fix hardcoded scheme in anchor.js url
  decrease line-height slightgly for code
  increase font size
  Getting started run test (#58)
  add anchor support
  upgrade deps; fix script execution
  chore(package): update p-s to version 3.0.1
  update license information
  remove misinformation about using --require and hooks
  fix bad formatting in CLI options headers; closes #51
  ...

Signed-off-by: Christopher Hiller <[email protected]>

# Conflicts:
#	.gitignore
#	Makefile
#	bin/mocha
#	editors/JavaScript mocha.tmbundle/Snippets/bdd - after each.tmSnippet
#	editors/JavaScript mocha.tmbundle/Snippets/bdd - after.tmSnippet
#	editors/JavaScript mocha.tmbundle/Snippets/bdd - before each.tmSnippet
#	editors/JavaScript mocha.tmbundle/Snippets/bdd - before.tmSnippet
#	editors/JavaScript mocha.tmbundle/Snippets/bdd - describe.tmSnippet
#	editors/JavaScript mocha.tmbundle/Snippets/bdd - it.tmSnippet
#	index.js
#	lib/browser/tty.js
#	lib/interfaces/bdd.js
#	lib/interfaces/exports.js
#	lib/interfaces/index.js
#	lib/interfaces/tdd.js
#	lib/mocha.js
#	lib/reporters/base.js
#	lib/reporters/doc.js
#	lib/reporters/dot.js
#	lib/reporters/html.js
#	lib/reporters/index.js
#	lib/reporters/json-stream.js
#	lib/reporters/json.js
#	lib/reporters/landing.js
#	lib/reporters/list.js
#	lib/reporters/progress.js
#	lib/reporters/spec.js
#	lib/reporters/tap.js
#	lib/runner.js
#	lib/suite.js
#	lib/test.js
#	package.json
#	test/browser/index.html
#	test/mocha.opts
  • Loading branch information
boneskull committed Dec 6, 2017
2 parents b954f69 + c247032 commit 95c5369
Show file tree
Hide file tree
Showing 41 changed files with 5,627 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/.eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
env:
browser: true
node: false
1 change: 1 addition & 0 deletions docs/CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mochajs.org
395 changes: 395 additions & 0 deletions docs/LICENSE-CC-BY-4.0

Large diffs are not rendered by default.

33 changes: 33 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# mochajs.org

*So you wanna build the site?*

[mochajs.org](https://mochajs.org) is built using [Jekyll](http://jekyllrb.com), the popular static site generator.

## Prerequisites

- Ruby
- RubyGems
- Bundler (`gem install bundler`)
- Node.js v4.0.0 or greater

## Development

1. Run `npm install` to get Node.js deps.
2. Run `bundle install` to install Jekyll and its dependencies. This may or may not require elevated privileges, depending on your system.
3. To serve the site and rebuild as changes are made, execute `npm run serveDocs`.
4. To rebuild the site *once*, execute `npm start buildDocs`.

### Notes

- The content lives in `docs/index.md`; everything else is markup, scripts, assets, etc.
- `docs/index.md` may be mutated upon build. If you update the table of contents, **you must commit `index.md`**; GitHub won't do it for you.
- `docs/_site/` is where the generated static site lives (and is what you see at [mochajs.org](https://mochajs.org)). It is *not* under version control.

## License

:copyright: 2016-2017 [JS Foundation](https://js.foundation) and contributors.

Content licensed [CC-BY-4.0](https://raw.githubusercontent.com/mochajs/mocha/master/docs/LICENSE-CC-BY-4.0).

Code licensed [MIT](https://raw.githubusercontent.com/mochajs/mocha/master/LICENSE-MIT).
8 changes: 8 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
url: https://mochajs.org
exclude:
- README.md
- .*
- LICENSE*
repository: mochajs/mocha
source: docs

6 changes: 6 additions & 0 deletions docs/_includes/backers.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## Backers

Find Mocha helpful? Become a [backer](https://opencollective.com/mochajs#support) and support Mocha with a monthly donation.

{: id="_backers" }
{% for i in (0..29) %}[![](//opencollective.com/mochajs/backer/{{ i }}/avatar){: onload="window.avatars.backerLoaded()" }](https://opencollective.com/mochajs/backer/{{ i }}/website){: target="_blank"} {% endfor %}
14 changes: 14 additions & 0 deletions docs/_includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<footer>
<span>
<a href="https://mochajs.org">mochajs.org</a> is licensed under a <a rel="license"
href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
<p><em>Last updated: {{ site.time | date: "%c" }}</em>
</span>
<script src="//cdnjs.cloudflare.com/ajax/libs/anchor-js/3.2.2/anchor.min.js"></script>
<script>
anchors.options = {
placement: 'left'
};
anchors.add('h2, h3');
</script>
</footer>
14 changes: 14 additions & 0 deletions docs/_includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<head>
<meta charset="utf-8">
<title>{{ page.title }}</title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.min.css"/>
<link rel="stylesheet" href="css/style.css"/>
<link rel="stylesheet" href="css/pygments.css"/>
<link rel="shortcut icon" href="favicon.ico"/>

<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
<![endif]-->
<script src="js/ga.js"></script>
<script src="js/avatars.js"></script>
</head>
4 changes: 4 additions & 0 deletions docs/_includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<header id="_header">
<h1><a href="/"><img onload="window.document.getElementById('_header').classList.add('onload');" src="//cldup.com/xFVFxOioAU.svg"></a></h1>
<p id="tag"><em>simple</em>, <em>flexible</em>, <em>fun</em></p>
</header>
6 changes: 6 additions & 0 deletions docs/_includes/sponsors.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
## Sponsors

Use Mocha at Work? Ask your manager or marketing team if they'd help [support](https://opencollective.com/mochajs#support) our project. Your company's logo will also be displayed on [npmjs.com](http://npmjs.com/package/mocha) and our [GitHub repository](https://github.com/mochajs/mocha#sponsors).

{: id="_sponsors" }
{% for i in (0..29) %}[![](//opencollective.com/mochajs/sponsor/{{ i }}/avatar){: onload="window.avatars.sponsorLoaded()" }](https://opencollective.com/mochajs/sponsor/{{ i }}/website){: target="_blank"} {% endfor %}
17 changes: 17 additions & 0 deletions docs/_layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">

{% include head.html %}

<body>

{% include header.html %}

<section id="content">
{{ content }}
</section>

{% include footer.html %}
</body>

</html>
59 changes: 59 additions & 0 deletions docs/css/pygments.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
.highlight .hll { background-color: #ffffcc }
.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 .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 .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 .kn { font-weight: bold } /* Keyword.Namespace */
.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: #bb8844 } /* Literal.String */
.highlight .na { color: #008080 } /* Name.Attribute */
.highlight .nb { color: #999999 } /* 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: #bb8844 } /* Literal.String.Backtick */
.highlight .sc { color: #bb8844 } /* Literal.String.Char */
.highlight .sd { color: #bb8844 } /* Literal.String.Doc */
.highlight .s2 { color: #bb8844 } /* Literal.String.Double */
.highlight .se { color: #bb8844 } /* Literal.String.Escape */
.highlight .sh { color: #bb8844 } /* Literal.String.Heredoc */
.highlight .si { color: #bb8844 } /* Literal.String.Interpol */
.highlight .sx { color: #bb8844 } /* Literal.String.Other */
.highlight .sr { color: #808000 } /* Literal.String.Regex */
.highlight .s1 { color: #bb8844 } /* Literal.String.Single */
.highlight .ss { color: #bb8844 } /* 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 */
208 changes: 208 additions & 0 deletions docs/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,208 @@
html {
font: 16px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
color: #2c2c2c;
border-top: 2px solid #ddd;
}

#content {
padding: 0 110px 60px 110px;
}

header {
padding: 140px 110px 0 110px;
}

h1 {
margin-left: -19px;
opacity: 0;
-webkit-transition: opacity 1s;
-moz-transition: opacity 1s;
-o-transition: opacity 1s;
transition: opacity 1s;
}

#_backers a, #_sponsors a {
opacity: 0;
-webkit-transition: opacity .3s;
-moz-transition: opacity .3s;
-o-transition: opacity .3s;
transition: opacity .3s;
}

#_backers a img, #_sponsors a img {
max-height: 64px;
}

.onload h1, #_backers.onload a, #_sponsors.onload a {
opacity: 1;
}

h2 {
margin-top: 80px;
font-weight: 400;
letter-spacing: 1px;
border-bottom: 1px solid #ddd;
text-transform: uppercase;
}

h3 {
font-weight: 200;
letter-spacing: 1px;
border-bottom: 1px solid #eee;
margin-top: 40px;
text-transform: uppercase;
}

h3 > code {
text-transform: none;
font-size: 14px;
}

#tag {
opacity: 0;
color: #c29d7f;
font-weight: 100;
font-size: 30px;
margin-top: -155px;
margin-left: 140px;
margin-bottom: 125px;
letter-spacing: 2px;
-webkit-transition: opacity 1s, margin-top 200ms, margin-bottom 200ms, margin-left 1s;
-moz-transition: opacity 1s, margin-top 200ms, margin-bottom 200ms, margin-left 1s;
-o-transition: opacity 1s, margin-top 200ms, margin-bottom 200ms, margin-left 1s;
transition: opacity 1s, margin-top 200ms, margin-bottom 200ms, margin-left 1s;
}

#tag em {
font-style: normal
}

.onload #tag {
opacity: 1;
margin-left: 185px;
}

#content > p:first-child {
font-size: 20px;
font-weight: 200;
letter-spacing: 1px;
}

a {
color: #8D6748;
}

a:hover {
color: #717171;
}

ul {
margin-top: 20px;
padding: 0 15px;
width: 100%;
-webkit-column-count: 2;
-moz-column-count: 2;
column-count: 2;
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}

ul li {
margin-top: 5px;
margin-right: 60px;
list-style: none;
border-bottom: 1px solid #eee;
padding: 5px 0;
-webkit-column-break-inside: avoid;
-moz-column-break-inside: avoid;
column-break-inside: avoid;
}

ul::after {
content: '.';
height: 0;
display: block;
visibility: hidden;
clear: both;
}

code {
font: 14px monaco, monospace;
line-height: 1.8;
}

pre {
margin: 20px;
padding: 20px;
border: 1px solid #ddd;
border-bottom-color: #ccc;
background-color: #f3f3f3;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-o-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: inset 0 0 10px #ddd;
-moz-box-shadow: inset 0 0 10px #ddd;
box-shadow: inset 0 0 10px #ddd;
overflow-x: auto;
}

img {
margin: 30px;
padding: 1px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
-o-border-radius: 3px;
border-radius: 3px;
-webkit-box-shadow: 0 3px 10px #dedede, 0 1px 5px #888;
-moz-box-shadow: 0 3px 10px #dedede, 0 1px 5px #888;
box-shadow: 0 3px 10px #dedede, 0 1px 5px #888;
max-width: 100%;
}

img[src*="opencollective.com/mochajs"], img[src*=badges], img[src*=".svg"] {
margin: 0;
box-shadow: none;
}

footer {
background-color: #eee;
width: 100%;
padding: 50px 0;
text-align: right;
border-top: 1px solid #ddd;
}

footer span {
display: block;
margin-right: 30px;
color: #888;
font-size: 0.8em;
}

@media all and (max-width: 850px) {
ul li {
width: 100%;
}
}

@media all and (max-width: 600px) {
#tag {
margin-top: 0;
margin-left: 0;
margin-bottom: 0;
}

.onload #tag {
margin-left: 0;
}
}

blockquote {
padding: 10px;
border-left: 1px solid #eee;
}
Loading

0 comments on commit 95c5369

Please sign in to comment.