An interactive tour to learn the MoonBit programming language.
pnpm install
pnpm build
pnpm preview
open http://localhost:4173 to view the tour.
- Create a new folder under the chapter folder following the naming convention
lesson<n>_<lesson-name>
(count start from 1). - Write the lesson content in
index.md
and lesson code inindex.mbt
under the created folder.
To see the render result while writing lesson on the fly, follow the instruction below:
-
Setup development environment.
pnpm install pnpm dev
-
Write the lesson content in
tour/index.md
and lesson code intour/index.mbt
. You can see the render result in http://localhost:5173 -
After you finish writing the lesson, copy
tour/index.md
andtour/index.mbt
to the corresponding lesson folder.
- Create a new folder under
tour
following the naming conventionchapter<n>_<chapter-name>
. - Add new lessons following the instruction above.
This project is highly inspired by Gleam Language Tour.