Skip to content

Latest commit

 

History

History
42 lines (26 loc) · 1.16 KB

README.md

File metadata and controls

42 lines (26 loc) · 1.16 KB

MoonBit Language Tour

An interactive tour to learn the MoonBit programming language.

Get started

pnpm install
pnpm build
pnpm preview

open http://localhost:4173 to view the tour.

How to add new tour

Add new lesson

  1. Create a new folder under the chapter folder following the naming convention lesson<n>_<lesson-name> (count start from 1).
  2. Write the lesson content in index.md and lesson code in index.mbt under the created folder.

To see the render result while writing lesson on the fly, follow the instruction below:

  1. Setup development environment.

    pnpm install
    pnpm dev
  2. Write the lesson content in tour/index.md and lesson code in tour/index.mbt. You can see the render result in http://localhost:5173

  3. After you finish writing the lesson, copy tour/index.md and tour/index.mbt to the corresponding lesson folder.

Add new chapter

  1. Create a new folder under tour following the naming convention chapter<n>_<chapter-name>.
  2. Add new lessons following the instruction above.

Credit

This project is highly inspired by Gleam Language Tour.