Git Product home page Git Product logo

book's Introduction

๐Ÿ“– The Dojo Book

Explore the world of Autonomous Worlds with Dojo, your trusted toolchain. Dive in now.

Contributing

Embrace the open-source spirit of Dojo. As it's in its nascent phase, we welcome contributors with open arms.

Peruse our contributing guidelines. From minor wording adjustments to extensive chapters, every contribution matters!

Setup

  1. Rust-related Packages:
    • Obtain the cargo toolchain via rustup.
    • Get mdBook and its translation extension with the command: cargo install mdbook mdbook-i18n-helpers
  2. Host Machine Packages:
    • To assist with translations, install gettext. It's typically accessible via most package managers. Use: sudo apt install gettext.
  3. Clone this repository to get started.

Working Locally (English - Primary Language)

Always edit Markdown files in English. Here's how to work on it:

  • Spin up a local server using mdbook serve. Navigate to localhost:3000. For an automated browser launch, append the --open flag: mdbook serve --open.
  • Modify the content as desired. Refresh your browser to review edits.
  • Ready to share? Open a PR with your enhancements.
  • Don't forge to use prettier locally to format your markdown files:
    npm i -g prettier
    prettier -w "**/*.md"

Working Locally (Translations)

Catering to a global audience, we aspire for multilingual content.

Note: Ensure all files in the src directory are in English, facilitating automated generation and updates of translation files.

For translation tasks:

  • Start a local server for a specific language, e.g., ./translations.sh es. Without specifying a language, the script defaults to extracting English translations.
  • Focus on the relevant translation file, such as po/es.po. Tools like poedit can make this task easier.
  • Conclude your session with changes only in the po/xx.po file. Commit and open a PR. Ensure the PR begins with i18n to signal it involves translation.

This translation model draws inspiration from the Comprehensive Rust repository.

Starting a New Language Translation

If initiating a new language translation without a local server:

  • Use ./translations.sh new xx, replacing xx with your language code. This command spawns the xx.po file for your language.
  • Update your xx.po file with ./translations.sh xx (swap xx with your language code), as detailed above.
  • For pre-existing xx.po files, refrain from using the new command.

GPT Translation

Setup env:

python3 -m venv ~/lang

source ~/lang/bin/activate

pip install -r requirements.txt

See script ./main.py for instructions.

book's People

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.