Skip to content

mozilla-l10n/documentation

Repository files navigation

Documentation

Deployment status Linter status

This repository includes several documents describing how to perform internal tasks within the l10n-drivers team at Mozilla. If you’re reading these pages on GitHub, a version with improved readability and search capabilities is available here.

Table of content is available in this page.

How to read these documents

You will need a Unix-like environment (Linux, macOS) to run most of the tools. Across the entire documentation, commands to run in a terminal are described like this:

$ composer update

$ is not part of the command, it just indicates the terminal prompt. The command to type or copy and paste is simply composer update.

Updating the documentation

Simply open a pull request adding the new file or updating an existing document. Make sure to follow these style guidelines, and note that all pull requests need to be reviewed before merging.

You can run the following commands to make sure that files are correctly formatted (you will need to install npm if it’s not already available):

$ npm install
$ npm test

GitHub Pages

To generate these pages, mdBook is used and built automatically via GitHub Actions, and changes pushed to the gh-pages branch. If you want to build and preview the pages locally, install Rust and cargo and then run the following commands from the root of the repository:

$ cargo install mdbook
$ cargo install mdbook-toc
$ mdbook serve

mdbook-toc is used as a preprocessor, and will install the correct version of mdBook as a dependency.

If you want a new page to be available in GitHub pages, make sure to include a link in src/SUMMARY.md.