Skip to content

bhargav-kitchen/website

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the source for the babeljs.io website, powered by Jekyll.

This repo also contains Babel's source documentation.

Feel free to suggest changes to our docs, add new content, or new ideas!

Setup

  • Please install ruby, if not already installed.
    • Use which ruby or ruby --version, to verify if ruby is installed.
    • Make sure bundler is installed by running gem install bundler
$ git clone [email protected]:babel/babel.github.io.git
$ cd babel.github.io
$ make bootstrap
  • Just run npm start next time.

Contributing to the website

To keep documentation in sync across all of Babel's packages and plugins, the documentation for the plugins and presets is sourced directly from the README files located inside their respective repositories (Babel's packages, babel-minify's packages, ...).

For pages that are sourced from README files, the package field in the header needs to correspond to your package name. This package name also needs to be added to scripts/download-readmes.js.

layout: docs
title: babel-register (require hook)
description: How to use babel-register, the require hook.
permalink: /docs/usage/babel-register/
package: babel-register

Publishing README

{% 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

If you encounter an Liquid Exception: Included file '_includes/.../packages/.../README.md' not found, please double check your package configuration, and ensure you have ran scripts/download-readmes.js (make build will run this for you).

Linting markdown

npm test

This will lint markdown documents inside both the website and the imported repositories (like babel, babili, etc).

Testing compiled output

rake

Running this will check the compiled output for broken links and invalid markup.

Looking for support?

For questions and support please join our Slack community, channel #website or directly here.

About

🌐 The Babel documentation website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.0%
  • CSS 29.4%
  • HTML 12.0%
  • Ruby 1.3%
  • Makefile 0.3%