GithubHelp home page GithubHelp logo

maxgiraldo / book Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dojoengine/book

0.0 0.0 0.0 1.99 MB

The Dojo Book

Home Page: https://book.dojoengine.org

License: MIT License

Shell 2.61% JavaScript 35.72% CSS 37.99% Handlebars 23.69%

book's Introduction

๐Ÿ“– The Dojo Book

Dojo is a toolchain for building Autonomous Worlds. Step into the Dojo now.

Contributing

Dojo is open-source and encourages contribution. It is in the early stage of development.

Check our contributing guidelines. Feel free to contribute wording, sentences, chapters, and guides!

Setup

  1. Rust related packages:
    • Install toolchain providing cargo using rustup.
    • Install mdBook and the translation extension:
    cargo install mdbook mdbook-i18n-helpers
    
  2. Host machine packages:
    • Install gettext for translations, usually available with regular package manager: sudo apt install gettext.
  3. Clone this repository.

Work locally (english, main language)

All the Markdown files MUST be edited in english. To work locally in english:

  • Start a local server with mdbook serve and visit localhost:3000 to view the book. You can use the --open flag to open the browser automatically: mdbook serve --open.
  • Make changes to the book and refresh the browser to see the changes.
  • Open a PR with your changes.

Work locally (translations)

This book is targetting international audience, and aims at being gradually translated in several languages. All files in the src directory MUST be written in english. This ensures that all the translation files can be auto-generated and updated by translators. To work with translations, those are the steps to update the translated content:

  • Run a local server for the language you want to edit: ./translations.sh es for instance. If no language is provided, the script will only extract translations from english.
  • Open the translation file you are interested in po/es.po for instance. You can also use editors like poedit to help you on this task.
  • When you are done, you should only have changes into the po/xx.po file. Commit them and open a PR. The PR must stars with i18n to let the maintainers know that the PR is only changing translation. The translation work is inspired from Comprehensive Rust repository.

Initiate a new translation for your language

If you wish to initiate a new translation for your language without running a local server, consider the following tips:

  • Execute the command ./translations.sh new xx (replace xx with your language code). This method can generate the xx.po file of your language for you.
  • To update your xx.po file, execute the command ./translations.sh xx (replace xx with your language code), as mentioned in the previous chapter.
  • If the xx.po file already exists (which means you are not initiating a new translation), you should not run this command.

book's People

Contributors

ametel01 avatar bal7hazar avatar beeinger avatar broody avatar credence0x avatar dpinones avatar kariy avatar lukisanumi avatar maxgiraldo avatar milancermak avatar ponderingdemocritus avatar ptisserand avatar rkdud007 avatar tarrencev 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.