GithubHelp home page GithubHelp logo

af / bucklescript.github.io Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rescript-lang/bucklescript.github.io

0.0 3.0 0.0 474 KB

BuckleScript's documentation site

Home Page: https://bucklescript.github.io

HTML 0.38% JavaScript 83.07% CSS 16.55%

bucklescript.github.io's Introduction

BuckleScript Website

This code is used to generate https://bucklescript.github.io. It pulls in files from docs and the current directory to generate the final static html files that's served on the site.

website/ contains the actual js, css, images and other files (and blog, which contains some markdown files too, these are separated from docs/, not too important).

npm start to start the server & watcher. The other scripts in package.json should also be self-descriptive.

Don't use npm build for now.

In the end, we spit out normal HTML, with all the JS dependencies (barring a few critical ones) removed, including ReactJS itself. It's a full, static website, super lightweight, portable, unfancy but good looking.

Two special files:

  • sidebars.json: lists the sections.
  • siteConfig.json: some header and i18n configs.

During your development, most changes will be picked up at each browser refresh. If you touch these two files or blog/, however, you'll have to restart the server to see the changes.

Translations

The entire site can be translated via the Crowdin project. This repo only has the canonical english documentation. Don't manually editor things in i18n/.

For repo maintainers: to have the new translated strings appear in prod, run yarn crowin-upload. This assumes you have crowdin installed, through https://support.crowdin.com/cli-tool/.

Debugging

console.logs appear in your terminal! Since the site itself is React-free.

Building and Deploying

Note: the deployment is slightly manual right now. Ping @rickyvetter and @chenglou on Discord if you'd like to try it eagerly.

bucklescript.github.io's People

Contributors

chenglou avatar rickyvetter avatar

Watchers

 avatar  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.