So you wanna build the site?
mochajs.org is built using Jekyll, the popular static site generator.
- Ruby
- RubyGems
- Bundler
- (Optional) Node.js v4.0.0 or greater
- Clone this repo
- Execute
npm installand follow the directions.
Mac users: You may need to install Xcode command line tools if
bundle installfails. Executexcode-select --installif so.
- Node.js is only necessary if you need to rebuild the table of contents.
- To serve the site and rebuild as changes are made, execute
npm start serve. - To rebuild the site once, execute
npm start build. - To update the table of contents, execute:
npm start toc. This will only alterindex.md; it will not rebuild the site unlessnpm start serveis running in another process. - The
_sitedirectory is where the generated static site lives (and is what you see at mochajs.org). It is not under version control. Gemfile.lockis ignored as to always get the latestgithub-pagesgem.
©️ 2016 JS Foundation and contributors.
Content licensed CC-BY-4.0.
Code licensed MIT.