# Website

## Installation

#### Ubuntu dependencies

`sudo apt install ruby-full make gcc gpp build-essential zlib1g zlib1g-dev ruby-dev dh-autoreconf`

#### Update gem packages

`sudo gem update`

#### Install Gem bundler

`sudo gem install bundler`

#### Clone the website

`git clone https://github.com/LibreELEC/website.git`

#### Install Jekyll

`cd /path/to/git/website/`

`bundle install`

## Run the website from Linux

Run the command from the cloned website folder.

`bundle exec jekyll serve --livereload --unpublished --incremental`

## Run the website from Windows (WSL2)

It is possible to run Ruby natively in Windows but this is difficult to do. So in our example we just run it at WSL and bypass all those problems.

Run the command from the cloned website folder.

`bundle exec jekyll serve --force_polling --livereload --unpublished`

![](https://2659664661-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MAdvk5nyUZ57Kqgd94Z%2Fuploads%2FVWnFfCo8lxyl8VsXoJln%2Fwsl-website.png?alt=media\&token=899a69b5-9bb9-4990-818a-d4fee902ec19)

## Display the website

After starting the server the website is autogenerated at every change excluding changes at `_config.yml` and `packages.json` that requires a restart of the server.

The website is now located at [http://127.0.0.1:4000/](http://127.0.0.1:4000) .


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://wiki.libreelec.tv/development/website.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
