> 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/zh-tw/she-ding/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=Our Overleaf Instance
```

## 標誌

您可以透過設定環境變數來加入自訂標誌，而不是使用文字 `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/zh-tw/she-ding/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.
