Giter Club home page Giter Club logo

rust-sokoban's Introduction

Code-samples-compile 简体中文

🎯 What is it?

This repository hosts the Rust Sokoban book and source code used in the book. It's using mdbook. You can read the book at sokoban.iolivia.me.

🏃 How to?

Host the book locally

If not already done, install mdbook.

$ cargo install mdbook

Serve the book and navigate to http://localhost:3000/ in your local browser.

$ mdbook serve

Run the code locally

$ cd code/rust-sokoban-c01-01
$ cargo run --release

💪 Contribute

Add a new section

  1. Copy the latest code/rust-sokoban-x folder to code/rust-sokoban-x+1
  2. Add the code changes of the topic you want to illustrate, try to keep each section self contained and relatively simple to grasp
  3. Make sure the code compiles (ideally without warnings)
  4. Add a new entry in src/SUMMARY.md - each md file should be in the format cxx-yy-text.md
  5. Fill the markdown in and use code references with line numbers pointing to the code/rust-sokoban-x+1 folder
  6. Add a gif towards the end of the new section to showcase the new feature - grab a screen recording and then convert it to a gif (I use ffmpeg for this - ffmpeg -i Screen_Recording.mov -r 60 -f gif - > moves.gif)
  7. If you add a directory tree listing, use tree - tree --dirsfirst -I target
  8. Create a PR and wait for the 👏 🎉

Create an issue

Have a look in the issues list of any duplicates, if you can't find anything create a new one!

Help with a translation

  1. Make a copy of the books/en_US folder with the new translation ISO code (for example fr_FR, see list)
  2. Modify the language in book.toml
  3. Translate SUMMARY.md first
  4. Translate each chapter/sub-chapter, try to not modify any images/sounds/videos or any of the book structure
  5. Feel free to create a draft pull request as soon as you have a few pages translated, this will make other contributors aware of the work
  6. When this is ready, notify the repo owner, a CI change is required to publish the book to a new subdomain (sokoban.iolivia.me/fr_fr in this example)

🚗 License

MIT

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.