Skip to content

Commit 95c5369

Browse files
committed
merge mochajs/mochajs.github.io into mochajs/mocha
* 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
2 parents b954f69 + c247032 commit 95c5369

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+5627
-0
lines changed

docs/.eslintrc.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
env:
2+
browser: true
3+
node: false

docs/CNAME

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mochajs.org

docs/LICENSE-CC-BY-4.0

Lines changed: 395 additions & 0 deletions
Large diffs are not rendered by default.

docs/README.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# mochajs.org
2+
3+
*So you wanna build the site?*
4+
5+
[mochajs.org](https://mochajs.org) is built using [Jekyll](http://jekyllrb.com), the popular static site generator.
6+
7+
## Prerequisites
8+
9+
- Ruby
10+
- RubyGems
11+
- Bundler (`gem install bundler`)
12+
- Node.js v4.0.0 or greater
13+
14+
## Development
15+
16+
1. Run `npm install` to get Node.js deps.
17+
2. Run `bundle install` to install Jekyll and its dependencies. This may or may not require elevated privileges, depending on your system.
18+
3. To serve the site and rebuild as changes are made, execute `npm run serveDocs`.
19+
4. To rebuild the site *once*, execute `npm start buildDocs`.
20+
21+
### Notes
22+
23+
- The content lives in `docs/index.md`; everything else is markup, scripts, assets, etc.
24+
- `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.
25+
- `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.
26+
27+
## License
28+
29+
:copyright: 2016-2017 [JS Foundation](https://js.foundation) and contributors.
30+
31+
Content licensed [CC-BY-4.0](https://raw.githubusercontent.com/mochajs/mocha/master/docs/LICENSE-CC-BY-4.0).
32+
33+
Code licensed [MIT](https://raw.githubusercontent.com/mochajs/mocha/master/LICENSE-MIT).

docs/_config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
url: https://mochajs.org
2+
exclude:
3+
- README.md
4+
- .*
5+
- LICENSE*
6+
repository: mochajs/mocha
7+
source: docs
8+

docs/_includes/backers.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Backers
2+
3+
Find Mocha helpful? Become a [backer](https://opencollective.com/mochajs#support) and support Mocha with a monthly donation.
4+
5+
{: id="_backers" }
6+
{% 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 %}

docs/_includes/footer.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<footer>
2+
<span>
3+
<a href="https://mochajs.org">mochajs.org</a> is licensed under a <a rel="license"
4+
href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
5+
<p><em>Last updated: {{ site.time | date: "%c" }}</em>
6+
</span>
7+
<script src="//cdnjs.cloudflare.com/ajax/libs/anchor-js/3.2.2/anchor.min.js"></script>
8+
<script>
9+
anchors.options = {
10+
placement: 'left'
11+
};
12+
anchors.add('h2, h3');
13+
</script>
14+
</footer>

docs/_includes/head.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<title>{{ page.title }}</title>
4+
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/4.2.0/normalize.min.css"/>
5+
<link rel="stylesheet" href="css/style.css"/>
6+
<link rel="stylesheet" href="css/pygments.css"/>
7+
<link rel="shortcut icon" href="favicon.ico"/>
8+
9+
<!--[if lt IE 9]>
10+
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7.2/html5shiv.min.js"></script>
11+
<![endif]-->
12+
<script src="js/ga.js"></script>
13+
<script src="js/avatars.js"></script>
14+
</head>

docs/_includes/header.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<header id="_header">
2+
<h1><a href="/"><img onload="window.document.getElementById('_header').classList.add('onload');" src="//cldup.com/xFVFxOioAU.svg"></a></h1>
3+
<p id="tag"><em>simple</em>, <em>flexible</em>, <em>fun</em></p>
4+
</header>

docs/_includes/sponsors.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
## Sponsors
2+
3+
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).
4+
5+
{: id="_sponsors" }
6+
{% 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 %}

0 commit comments

Comments
 (0)