> For the complete documentation index, see [llms.txt](https://gitbook.com/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.com/docs/documentation/zh/guan-li-ni-de-zhan-dian/customization/sharing-and-social.md).

# 分享与社交

自定义站点的社交账号元数据和分享选项

### 社交账号

你可以从 **分享** 选项卡中将社交账号添加到你网站的元数据和页脚。

点击 **+ 添加账号** 并从包含的选项列表中选择一种账号类型——例如 X、GitHub、LinkedIn、Discord 和 Bluesky。 在此菜单中添加社交账号也会将其添加到你网站的元数据中。

对于每个社交账号，你都可以在不影响元数据的情况下，开启或关闭其在文档站点页脚中的可见性。

<figure><img src="https://2111890564-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNkEGS7hzeqa35sMXQZ4X%2Fuploads%2F8dGUWBpVMVNID1jc29gg%2Fsocial_accounts%402x.png?alt=media&amp;token=24be67aa-c71b-4f15-8625-180c397a6d3c" alt="Social accounts settings in Site customization"><figcaption></figcaption></figure>

### 社交预览

在这里，你可以为你的网站上传一张自定义社交预览图片。这将把网站的 `og:image` 设置为你上传的图片，并且当网站链接分享到任何支持 OpenGraph 图片的平台或产品（例如 Slack 或 X）时，它会显示出来。

如果你不添加社交预览，GitBook 将自动使用你的主题颜色、页面标题和描述生成一个预览。

如果你的网站有多个 [站点部分](/docs/documentation/zh/guan-li-ni-de-zhan-dian/site-structure/site-sections.md)，你可以使用自定义界面顶部的下拉菜单在各部分之间切换，并为每个部分添加自定义社交预览图片。


---

# 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://gitbook.com/docs/documentation/zh/guan-li-ni-de-zhan-dian/customization/sharing-and-social.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.
