Skip to content

maxgiraldo/book

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📖 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.

Releases

No releases published

Packages

No packages published

Languages

  • CSS 38.0%
  • JavaScript 35.7%
  • Handlebars 23.7%
  • Shell 2.6%