Skip to content

Commit 155c9d4

Browse files
committed
Instructions to run the site locally
1 parent 4ecb123 commit 155c9d4

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

CONTRIBUTING.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,3 +85,22 @@ in `_data/languages.yml` will need to be extended to include the
8585
language.
8686

8787
See also the [specific guidelines for translators](TRANSLATIONS.md).
88+
89+
## Running the site on your computer
90+
91+
You can run a local copy of the learnlatex.org site on your computer, to test
92+
your contributions before submitting them to GitHub. For this you need:
93+
94+
- [Ruby](https://www.ruby-lang.org/) (version 2.7.0 or higher) and RubyGems
95+
- [Jekyll](https://jekyllrb.com/)
96+
97+
The provided `Gemfile` will take care of building the site and running it locally.
98+
99+
After you have installed the above dependencies, open a terminal, `cd` to the folder of the site's code in your computer, and execute
100+
101+
```bash
102+
bundle exec jekyll serve
103+
```
104+
105+
to build and run the site.
106+
You can add the option `--incremental` at the end to make rebuiling the pages faster.

0 commit comments

Comments
 (0)