# Documentation

**URL:** https://meta.discourse.org/c/documentation/10.md?ascending=false&page=15

[最新版本](https://meta.discourse.org/latest.md) · [分類](https://meta.discourse.org/categories.md) · [標簽](https://meta.discourse.org/tags.md)

**Page:** 16

---

## [删除分类](https://meta.discourse.org/t/deleting-a-category/107854)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 0\
**Last updated:** [2019年一月29日 18:36 UTC](https://meta.discourse.org/t/deleting-a-category/107854 "2019-01-29T18:36:14Z")

</div>

:bookmark: 本指南介绍如何在 Discourse 中删除分类，包括移动或删除该分类内主题的必需步骤，以及处理“未分类”等特殊情况的说明。 …

---

## [使用安全模式排查主题和插件问题](https://meta.discourse.org/t/using-safe-mode-to-troubleshoot-issues-with-themes-and-plugins/53504)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 8\
**Last updated:** [2024年二月8日 12:14 UTC](https://meta.discourse.org/t/using-safe-mode-to-troubleshoot-issues-with-themes-and-plugins/53504 "2024-02-08T12:14:59Z")

</div>

:bookmark: 本指南介绍如何使用 Discourse 的安全模式来排查主题和插件相关问题。 :person\_raising\_hand: 所需用户等级：所有用户 Discourse 提供“JavaScript 安全模式”，允许...

---

## [通过 sync\_sso 路由同步 DiscourseConnect 用户数据](https://meta.discourse.org/t/sync-discourseconnect-user-data-with-the-sync-sso-route/84398)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 1\
**Last updated:** [2024年五月7日 06:26 UTC](https://meta.discourse.org/t/sync-discourseconnect-user-data-with-the-sync-sso-route/84398 "2024-05-07T06:26:16Z")

</div>

单点登录（Single Sign-On）可用于从独立站点处理 Discourse 用户认证。关于如何实现 DiscourseConnect 的详细信息，请参阅主题“设置 DiscourseConnect——Discourse 官方单点登录（sso）”……

---

## [在 Discourse 中创建群组](https://meta.discourse.org/t/creating-groups-in-discourse/197220)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 2\
**Last updated:** [2024年五月1日 10:57 UTC](https://meta.discourse.org/t/creating-groups-in-discourse/197220 "2024-05-01T10:57:02Z")

</div>

:bookmark: 本指南介绍如何在您的 Discourse 社区中创建群组。 :person\_raising\_hand: 所需用户等级：管理员（或在启用 moderators\_manage\_groups 时为版主） Discourse 中的群组可...

---

## [Discourse 主题入门设计师指南](https://meta.discourse.org/t/designers-guide-to-getting-started-with-themes-in-discourse/152002)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 9\
**Last updated:** [2024年四月8日 21:32 UTC](https://meta.discourse.org/t/designers-guide-to-getting-started-with-themes-in-discourse/152002 "2024-04-08T21:32:15Z")

</div>

所以您有兴趣为 Discourse 设计自己的主题？您来对地方了 :smile: 本指南将更侧重于使用 Discourse 主题时的 SCSS/CSS 方面。如果您也想……

---

## [为 Discourse API 文档做贡献](https://meta.discourse.org/t/contributing-to-the-discourse-api-documentation/56693)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 3\
**Last updated:** [2023年十一月16日 07:43 UTC](https://meta.discourse.org/t/contributing-to-the-discourse-api-documentation/56693 "2023-11-16T07:43:57Z")

</div>

:bookmark: 这是为贡献官方 Discourse API 文档准备的指南。 :person\_raising\_hand: 所需用户级别：开发者 :gear: 需要控制台访问权限 您是否希望为官方 … 做出贡献？

---

## [使用新的用户更新自动化功能](https://meta.discourse.org/t/using-the-new-user-update-automation/296389)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 8\
**Last updated:** [2024年三月7日 09:49 UTC](https://meta.discourse.org/t/using-the-new-user-update-automation/296389 "2024-03-07T09:49:56Z")

</div>

:bookmark: 本指南介绍如何在 Discourse 自动化插件中使用新的用户更新触发器，以便在用户更新个人资料时创建帖子。 :person\_raising\_hand: 所需用户等级：管理员 ……

---

## [使用 Let's Encrypt 设置 HTTPS 支持](https://meta.discourse.org/t/set-up-https-support-with-lets-encrypt/40709)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 2\
**Last updated:** [2024年二月25日 02:33 UTC](https://meta.discourse.org/t/set-up-https-support-with-lets-encrypt/40709 "2024-02-25T02:33:55Z")

</div>

:bookmark: 本指南介绍如何在已安装的 Discourse 上启用 HTTPS，使用 Let's Encrypt。假设您之前已安装 Discourse 但未启用 HTTPS。 :person\_raising\_hand: 所需用户级别：系统管理员…

---

## [通过编程方式安装主题](https://meta.discourse.org/t/install-a-theme-programatically/191843)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 3\
**Last updated:** [2024年二月17日 22:24 UTC](https://meta.discourse.org/t/install-a-theme-programatically/191843 "2024-02-17T22:24:42Z")

</div>

如果您想通过 app.yml 安装主题，请使用以下格式： run: - exec: echo "开始自定义命令" - file: path: /tmp/mythemes.yml contents: | discourse-gifs: u…

---

## [迁移 Discourse 主题设置](https://meta.discourse.org/t/migrate-discourse-theme-settings/287783)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 0\
**Last updated:** [2024年一月30日 22:02 UTC](https://meta.discourse.org/t/migrate-discourse-theme-settings/287783 "2024-01-30T22:02:00Z")

</div>

引言 从 Discourse 版本 3.2.0.beta3 开始，Discourse 主题/组件可以利用迁移（migrations）功能来无缝地演进和更改其设置。此功能确保主题的更新不会中断...

---

## [将主题SCSS拆分为多个文件](https://meta.discourse.org/t/split-up-theme-scss-into-multiple-files/115126)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 12\
**Last updated:** [2024年一月18日 00:58 UTC](https://meta.discourse.org/t/split-up-theme-scss-into-multiple-files/115126 "2024-01-18T00:58:00Z")

</div>

主题和主题组件正变得越来越强大，开发人员也越来越雄心勃勃。为了方便开发人员，主题现在可以将它们的 SCSS 分成多个文件。 当创建……

---

## [将 bbPress WordPress 插件论坛迁移到 Discourse](https://meta.discourse.org/t/migrate-a-bbpress-wordpress-plugin-forum-to-discourse/48876)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 33\
**Last updated:** [2024年一月10日 07:49 UTC](https://meta.discourse.org/t/migrate-a-bbpress-wordpress-plugin-forum-to-discourse/48876 "2024-01-10T07:49:50Z")

</div>

我最近成功使用 Discourse 内置的迁移脚本完成了 bbPress 数据库迁移。现在，我将以分步教程的形式分享该过程。 注意：本教程适用于 bbPress 插件，而非旧版 st…

---

## [为 Rails 自动加载构建插件结构](https://meta.discourse.org/t/structuring-a-plugin-for-rails-autoloading/256092)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 10\
**Last updated:** [2024年一月9日 10:13 UTC](https://meta.discourse.org/t/structuring-a-plugin-for-rails-autoloading/256092 "2024-01-09T10:13:30Z")

</div>

许多插件在 \`plugin.rb\` 中包含大量类定义，或使用 \`require\_relative\` 来加载 Ruby 文件。这可行，但也有一些缺点： 在开发过程中无法自动重新加载更改。任何更改都会重新……

---

## [配置 Cloudflare Workers AI 的 API 密钥](https://meta.discourse.org/t/configure-api-keys-for-cloudflare-workers-ai/283321)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 0\
**Last updated:** [2023年十月24日 20:40 UTC](https://meta.discourse.org/t/configure-api-keys-for-cloudflare-workers-ai/283321 "2023-10-24T20:40:03Z")

</div>

Cloudflare Workers AI 在本示例中，我们使用 Cloudflare Workers AI 来生成密钥。 :information\_source: Cloudflare Workers AI 被用作 Discourse AI 中的嵌入提供商（例如，用于语义搜索等）

---

## [通过 API 授予自定义徽章](https://meta.discourse.org/t/grant-a-custom-badge-through-the-api/103270)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 9\
**Last updated:** [2023年十一月18日 00:58 UTC](https://meta.discourse.org/t/grant-a-custom-badge-through-the-api/103270 "2023-11-18T00:58:34Z")

</div>

您已在论坛上创建的自定义徽章可以通过 API 授予。这是一种无需使用自定义徽章 SQL 即可颁发徽章的绝佳方式。 要通过 API 授予徽章，您需要知道用户名…

---

## [将 FluxBB 论坛迁移到 Discourse](https://meta.discourse.org/t/migrate-a-fluxbb-forum-to-discourse/51322)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 9\
**Last updated:** [2023年十月19日 10:11 UTC](https://meta.discourse.org/t/migrate-a-fluxbb-forum-to-discourse/51322 "2023-10-19T10:11:44Z")

</div>

我创建了一个迁移脚本，用于将 FluxBB 数据库导入 Discourse。接下来，我将通过分步教程解释如何执行导入过程。 我使用 FluxBB v1.5.10 对该迁移脚本进行了测试（该版本是…

---

## [配置组访问、成员资格和可见性](https://meta.discourse.org/t/configuring-group-access-membership-and-visibility/138296)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 6\
**Last updated:** [2023年十月18日 22:43 UTC](https://meta.discourse.org/t/configuring-group-access-membership-and-visibility/138296 "2023-10-18T22:43:03Z")

</div>

:bookmark: 本指南介绍如何设置和管理 Discourse 群组，包括不同的访问级别、成员资格要求和可见性设置。 :person\_raising\_hand: 所需用户级别：管理员 Dis…

---

## [向API添加不可见的用户自定义字段](https://meta.discourse.org/t/adding-non-visible-user-custom-fields-to-the-api/276618)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 2\
**Last updated:** [2023年十月18日 22:06 UTC](https://meta.discourse.org/t/adding-non-visible-user-custom-fields-to-the-api/276618 "2023-10-18T22:06:18Z")

</div>

:bookmark: 本指南介绍如何通过 API 公开用户自定义字段数据，而无需在用户卡片上显示。 :person\_raising\_hand: 所需用户级别：管理员 本指南将引导您完成通过 API 访问用户自定义字段数据的过程，而无需在用户卡片上显示。当您需要以编程方式访问自定义用户数据，同时又希望将其隐藏起来时，这将非常有用。 创建用户自定义字段 首先，创建您的用户自定义字段。有关详细说明，请参阅创建和配置用户自定义字段指…

---

## [Discourse SEO 概览（站点地图 / robots.txt）](https://meta.discourse.org/t/discourse-seo-overview-sitemap-robots-txt/280739)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 0\
**Last updated:** [2023年十月18日 12:56 UTC](https://meta.discourse.org/t/discourse-seo-overview-sitemap-robots-txt/280739 "2023-10-18T12:56:07Z")

</div>

Discourse 拥有许多开箱即用的 SEO 功能。凭借我们合理的默认设置，社区管理者可以专注于培育社区，而无需因优化搜索引擎而分心……

---

## [为特定类别配置匿名发布](https://meta.discourse.org/t/configuring-anonymous-posting-for-specific-categories/271583)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 2\
**Last updated:** [2023年八月28日 20:01 UTC](https://meta.discourse.org/t/configuring-anonymous-posting-for-specific-categories/271583 "2023-08-28T20:01:01Z")

</div>

:bookmark: 本指南介绍如何为匿名用户创建群组，以及如何配置特定分类的匿名发帖权限。 :person\_raising\_hand: 所需用户级别：管理员 在继续本指南之前，请确保您已在站点上启用匿名模式。 为匿名用户创建群组 启用匿名发帖后，新匿名用户将使用虚假电子邮件地址创建。这些用户的电子邮件域名是通过在站点域名前面加上 anon 来形成的。例如，如果您的 Discourse 站点的域名是 discourse.exa…

---

## [搜索特定时间段内创建的帖子](https://meta.discourse.org/t/searching-for-posts-created-within-a-specific-timeframe/41011)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 2\
**Last updated:** [2023年八月14日 06:34 UTC](https://meta.discourse.org/t/searching-for-posts-created-within-a-specific-timeframe/41011 "2023-08-14T06:34:16Z")

</div>

:bookmark: 本指南介绍如何使用 Discourse 的搜索功能查找特定时间段内创建的帖子。 :person\_raising\_hand: 所需用户等级：所有用户 Discourse 的搜索界面允许您…

---

## [设置环境以将另一个论坛迁移到 Discourse](https://meta.discourse.org/t/set-up-an-environment-to-migrate-another-forum-to-discourse/88252)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 0\
**Last updated:** [2018年五月23日 13:53 UTC](https://meta.discourse.org/t/set-up-an-environment-to-migrate-another-forum-to-discourse/88252 "2018-05-23T13:53:40Z")

</div>

想搭建 Discourse 导入环境吗？让我们开始吧！ 在 DigitalOcean 上搭建 Discourse 实例 按照我们的官方指南在 DigitalOcean 上搭建 Discourse 实例。迁移过程无需配置电子邮件……

---

## [如何有效搜索内容](https://meta.discourse.org/t/searching-for-content-effectively/273328)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 0\
**Last updated:** [2023年七月31日 09:36 UTC](https://meta.discourse.org/t/searching-for-content-effectively/273328 "2023-07-31T09:36:11Z")

</div>

:bookmark: 本指南全面概述了 Discourse 的搜索功能，包括过滤器、选项和高级技巧。 :person\_raising\_hand: 所需用户等级：所有用户 Discourse 提供…

---

## [Convert all existing topics in category to wikis](https://meta.discourse.org/t/convert-all-existing-topics-in-category-to-wikis/54493)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 2\
**Last updated:** [2023年六月22日 07:17 UTC](https://meta.discourse.org/t/convert-all-existing-topics-in-category-to-wikis/54493 "2023-06-22T07:17:48Z")

</div>

:bookmark: This guide explains how to convert all existing topics in a Discourse category to wikis. :person\_raising\_hand: Required user level: Server administrator with SSH access Discourse allows categories to have …

---

## [使用 Discourse 替代电子邮件邮件列表](https://meta.discourse.org/t/using-discourse-instead-of-an-email-mailing-list/54298)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 20\
**Last updated:** [2023年六月15日 06:14 UTC](https://meta.discourse.org/t/using-discourse-instead-of-an-email-mailing-list/54298 "2023-06-15T06:14:38Z")

</div>

:bookmark: 本主题阐述了在群组对话和社区管理中，使用 Discourse 相比传统电子邮件邮件列表的优势。 :person\_raising\_hand: 所需用户级别：所有用户 Discourse 是…

---

## [使用内容安全策略缓解 XSS 攻击](https://meta.discourse.org/t/mitigate-xss-attacks-with-content-security-policy/104243)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 30\
**Last updated:** [2023年六月13日 22:50 UTC](https://meta.discourse.org/t/mitigate-xss-attacks-with-content-security-policy/104243 "2023-06-13T22:50:33Z")

</div>

:bookmark: 本指南介绍如何在 Discourse 中使用内容安全策略（CSP）来缓解跨站脚本（XSS）攻击。内容包括 CSP 基础、配置以及最佳实践。 :person\_raising\_hand: 需要…

---

## [在摘要邮件中添加自定义内容](https://meta.discourse.org/t/adding-custom-content-to-summary-emails/49103)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 14\
**Last updated:** [2023年六月6日 16:38 UTC](https://meta.discourse.org/t/adding-custom-content-to-summary-emails/49103 "2023-06-06T16:38:53Z")

</div>

今天我添加了一个功能，允许在摘要邮件中插入自定义的 HTML 和文本。过去，只能自定义配色方案。现在，您可以通过“管理 \> 外观 \> 站点文本”界面插入任意 HTML …

---

## [从传入的电子邮件中删除多余内容](https://meta.discourse.org/t/remove-extraneous-content-from-incoming-emails/266085)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 0\
**Last updated:** [2023年五月24日 21:43 UTC](https://meta.discourse.org/t/remove-extraneous-content-from-incoming-emails/266085 "2023-05-24T21:43:41Z")

</div>

:bookmark: 本指南介绍如何在 Discourse 中移除传入邮件中的多余内容（例如签名）。 :person\_raising\_hand: 所需用户级别：管理员 Discourse 内置了一个用于处理...

---

## [批量将组中的用户添加到其他组](https://meta.discourse.org/t/adding-users-from-groups-to-other-groups-in-bulk/260670)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 2\
**Last updated:** [2023年五月22日 10:33 UTC](https://meta.discourse.org/t/adding-users-from-groups-to-other-groups-in-bulk/260670 "2023-05-22T10:33:19Z")

</div>

:bookmark: 本指南介绍了如何使用数据浏览器和批量邀请相结合的方式，将一个或多个组中的现有用户添加到其他组中。 :person\_raising\_hand: 所需用户级别：管理员 总结……

---

## [使用 discourse-chat-integration 插件设置 Matrix (element.io) 通知](https://meta.discourse.org/t/set-up-matrix-element-io-notifications-using-the-discourse-chat-integration-plugin/66944)

<div class="topic-metadata">

**Author:** [@Discourse](https://meta.discourse.org/u/Discourse)\
**回覆:** 15\
**Last updated:** [2023年五月20日 17:26 UTC](https://meta.discourse.org/t/set-up-matrix-element-io-notifications-using-the-discourse-chat-integration-plugin/66944 "2023-05-20T17:26:20Z")

</div>

本操作指南介绍了如何在 discourse-chat-integration 中设置 Matrix（element.io）提供者。 感谢 @ara4n 以及 #matrix-dev:matrix.org 频道的成员为此集成提供的帮助 …

[上一頁](https://meta.discourse.org/c/documentation/10.md?ascending=false&page=14)

[下一頁](https://meta.discourse.org/c/documentation/10.md?ascending=false&page=16)
