This is the source for the babeljs.io website, powered by Jekyll.
This repo also contains babel's source documentation.
The babel repo is babel/babel
Feel free to suggest changes to our docs, or add new content!
$ git clone [email protected]:babel/babel.github.io.git
$ cd babel.github.io- Please install ruby, if not already installed.
- Use
which rubyorruby --version, to verify if ruby is installed. - Make sure
bundleris installed by runninggem install bundler
- Use
- Install
jekylldependencies by runningbundle install npm ito install this package's dependencies- To start the web server on your machine, check out this repo and run
npm start.
To keep documentation in sync across all of Babel's packages and plugins, the majority of the website is sourced directly from the README files located inside their respective repositories (Babel's packages, Babili's packages, ...).
If you want to create a new page, you need to consider the following.
The package configuration in the header needs to correspond to your package name.
layout: docs
title: babel-register (require hook)
description: How to use babel-register, the require hook.
permalink: /docs/usage/babel-register/
redirect_from:
- /docs/usage/require/
package: babel-register{% include package_readme.html %}
For example babel.github.io/docs/plugins/preset-stage-0.md which then points to babel/packages/babel-preset-stage-0/README.md
{% include package_readme.html from="babili" %}
git submodule foreach git pull origin masterYou can safely push them once updated. Note, the website will fetch all latest submodule versions during deployment.
For questions and support please join our Slack community, channel #website or directly here.