Giter Club home page Giter Club logo

babel.github.io's Introduction

babel.github.io

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!

Setup

$ git clone [email protected]:babel/babel.github.io.git
$ cd babel.github.io
  • 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
  • Install jekyll dependencies by running bundle install
  • npm i to install this package's dependencies
  • To start the web server on your machine, check out this repo and run npm start.

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, Babili'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/
redirect_from:
 - /docs/usage/require/
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.

babel.github.io's People

Contributors

antn avatar callumlocke avatar cesarandreu avatar cvrebert avatar danez avatar daniel15 avatar ellenaua avatar eventualbuddha avatar existentialism avatar goatslacker avatar guybedford avatar hemanth avatar hzoo avatar jamiebuilds avatar jayphelps avatar leonfedotov avatar maur8ino avatar moneytree-doug avatar oliviertassinari avatar prathamesh-sonpatki avatar raspo avatar sarbbottam avatar sebmck avatar seedofjoy avatar spadin avatar sparty02 avatar strml avatar xtuc avatar yavorsky avatar zloirock avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.