Skip to content

af/bucklescript.github.io

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

BuckleScript's documentation site

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.0%
  • CSS 16.6%
  • HTML 0.4%