> For the complete documentation index, see [llms.txt](https://overleaf-pro.ayaka.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://overleaf-pro.ayaka.space/on-premises/ru/konfiguraciya/overleaf-toolkit/branding.md).

# Брендинг

### Шапка <a href="#header" id="header"></a>

В этом разделе мы расскажем, как персонализировать ключевые элементы вашей локальной установки. Вы можете настроить название сайта, навигационные ссылки, шапку, нижний колонтитул и логотип по своему усмотрению.

### Название сайта <a href="#site-title" id="site-title"></a>

Заголовок панели навигации можно настроить с помощью `OVERLEAF_NAV_TITLE` переменной окружения, этот текст используется в левом верхнем углу навигации, если логотип не задан.

```bash
# добавьте в config/variables.env
OVERLEAF_NAV_TITLE=Наш экземпляр Overleaf
```

## Логотип

Вы можете добавить собственный логотип вместо текста, задав переменную окружения `OVERLEAF_HEADER_IMAGE_URL`. Это значение должно указывать на файл изображения, размещённый на внешнем хостинге.

Добавьте в config/variables.env:

{% code title="config/variables.env" %}

```bash
# добавьте в config/variables.env
OVERLEAF_HEADER_IMAGE_URL=https://mysite.somewhere.com/img/logo.png
```

{% endcode %}

## Ссылки навигации в шапке

Дополнительные элементы навигации можно добавить в шапку навигации, задав `OVERLEAF_HEADER_EXTRAS` переменную окружения в массив JSON-объектов. Например:

{% code overflow="wrap" %}

```json
[\
  {\
    "text": "Некоторая ссылка",\
    "url": "http://example.com/somelink",\
    "class": "subdued",\
    "only_when_logged_out": true\
  },\
  {\
    "text": "Помощь",\
    "class": "subdued",\
    "dropdown": [\
      {\
        "text": "Документация",\
        "url": "/learn"
      },\
      {\
        "text": "Связаться с администратором",\
        "url": "http://example.com/contact"\
      },\
    ]\
  },\
]
```

{% endcode %}

Добавьте экранированную JSON-форму в toolkit/variables.env:

{% code title="toolkit/variables.env" overflow="wrap" %}

```bash
# добавьте в toolkit/variables.env
OVERLEAF_HEADER_EXTRAS=[{"text":"Некоторая ссылка","url":"http://example.com/somelink","class":"subdued","only_when_logged_out":true},{"text":"Помощь","class":"subdued","dropdown":[{"text":"Документация","url":"/learn"},{"text":"Связаться с администратором","url":"http://example.com/contact"}]}]
```

{% endcode %}

## Нижние колонтитулы

Можно настроить как левый, так и меньший правый нижний колонтитул (встречается на страницах вроде `/project`) с помощью переменных окружения `OVERLEAF_LEFT_FOOTER` и `OVERLEAF_RIGHT_FOOTER`. Оба ожидают массив объектов JSON, который будет вставлен.

Оба ожидают массив JSON, который будет вставлен.

```json
[\
  {\
    "text": "Это пример текстовой записи в нижнем колонтитуле!"\
  },\
  {\
    "text": "Это пример ссылки URL в нижнем колонтитуле!", "url" : "/my-first-link.htm"\
  },\
]
```

{% hint style="info" %}
При использовании `текст` только, он не должен содержать HTML, так как значение будет отображаться как обычный текст.
{% endhint %}

Эти данные должны быть корректным JSON, чтобы работать; кавычки должны быть экранированы при передаче через переменную окружения.

{% code title="config/variables.env" overflow="wrap" %}

```bash
# добавьте в config/variables.env
OVERLEAF_LEFT_FOOTER=[{"text": "Это пример текстовой записи в нижнем колонтитуле!"}]
OVERLEAF_RIGHT_FOOTER=["text": "Это пример ссылки URL в нижнем колонтитуле!", "url" : "/my-first-link.htm"]
```

{% endcode %}

{% hint style="info" %}
Помимо `текст` и `url`, JSON-объект также принимает свойства `класс` и `метка` для дополнительной настройки.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://overleaf-pro.ayaka.space/on-premises/ru/konfiguraciya/overleaf-toolkit/branding.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
