Contributing to learnlatex.org

Thanks for considering contributing to learnlatex.org: feedback, fixes and ideas are all useful.

Commit messages and authors

Commit messages where the content of a single lesson is changed should start with L-<name>. Changes to the content of lessons should always be made in separate commits: formatting, typos or other ‘non-significant’ changes can be made for multiple lessons in one go.

If you are making a significant change to the content, please make sure you add yourself to the contributors list.

Formatting

The site is written in GitHub-flavoured Markdown, and uses the GitHub Pages system to convert this to web pages. In general, Markdown is easy to use, and offers enough formatting power to make the site useful. There are a few things to watch out for

Language

We already have have full content in several languages. Some in-progress partial translations are also visible in the git sources of this site and in several forks.

For the avoidance of doubt, we are using US English spelling (and idiom) on the site, as this is the most widely-understood approach.

See The Style Guide for other points of style for the English version.

If you do plan to contribute a translation then please contact the site maintainers by opening an issue.

The lessons lesson-1–15 and extended lessons more-1–15 should be translated fairly closely. Additional lessons language-* may be added that need not be translations of the English text, but have information specific to the language being used.

The translation should be placed in a two-letter directory using the ISO 639-1 language code, of if necessary, also use the script code such as zh-Hans for Chinese using the simplified script. The YAML array in _data/languages.yml will need to be extended to include the language.

See also the specific guidelines for translators.

Running the site on your computer

You can run a local copy of the learnlatex.org site on your computer, to test your contributions before submitting them to GitHub. For this you need:

The provided Gemfile will take care of building the site and running it locally.

After you have installed the above dependencies, open a terminal, cd to the folder of the site’s code in your computer, and execute

bundle exec jekyll serve

to build and run the site. You can add the option --incremental at the end to make rebuiling the pages faster.