您无需将 Docs 插件指向分类 - 此插件将替换 Docs 插件。这可能是影响您的问题的原因,因为它会导致一个覆盖另一个的冲突。
您需要做的就是确保选中 doc categories enabled,然后在分类中创建索引主题,并将其添加到索引主题字段中的分类设置中。如果您仍在旧的 Docs 插件设置中设置了分类,则应将其从中删除。
您无需将 Docs 插件指向分类 - 此插件将替换 Docs 插件。这可能是影响您的问题的原因,因为它会导致一个覆盖另一个的冲突。
您需要做的就是确保选中 doc categories enabled,然后在分类中创建索引主题,并将其添加到索引主题字段中的分类设置中。如果您仍在旧的 Docs 插件设置中设置了分类,则应将其从中删除。
嘿 Hugh,感谢您的快速回复!如果我说的是 Docs 插件,我很抱歉。我这里只安装了 Doc Categories 插件。
所以,这是查找未索引主题的有用报告。我目前只有 2 个测试主题。
然后这是设置屏幕。我知道我快成功了,但还是漏掉了一两个步骤!谢谢!
您设置了类别设置吗?
另外,您的索引是什么样的?它是像这样组织的吗?
这链接到 Meta 上的 Documentation 的索引。你需要指定的帖子看起来要像那样,索引才能生成。从你的截图来看,我认为你误解/读错了什么。请从这里阅读。
另外,有点离题——但也许是晚上的。我需要侧边栏主题插件才能在右侧显示索引吗?或者这也是自动的?谢谢!
我不确定你的意思,据我所知,侧边栏是默认/核心的,而不是插件。
明白了,您是指标题/副标题部分吗?我在编辑器里找了,但(至少对我来说)并不明显是否需要像 HTML <h1> 标题之类的东西。再次感谢您的快速回复!
标题是 h1,链接是项目符号。如果你遇到困难,可以直接复制粘贴元索引,它会给你一个示例来开始。
像这样:
## 有用的东西
* 这是那个:https://forum.example.tld/t/777
* 那是另一个:https://forum.example.tld/t/666
等等
我很懒,所以没有手动完成,但我使用了论坛的AI。
谢谢。所以,我上面复制了 @MarcP 提供的一部分文档索引,只是看不到侧边栏索引,这很奇怪,除非我又错过了什么……
该截图并未显示结构。您确定使用的是\n\n* description: url\n\n格式,并且在分类设置中指明了该主题的名称、URL 或 ID 吗?
是的。如果您在 composer 中看到类似以下内容的示例(请忽略非常奇怪的语言,但想法应该很清楚):
Tätä käytetään hampurilaisvalikossa esittelemään 20 eniten reaktioita saanutta ketjua kategoriassa #koiramaailma . Eräänlainen mainosikkuna siis.
## Top-20 eniten reagoitua ketjua
* Mitä helvettiä eläinlääkinnässä tapahtuu 🤬: https://foorumi.katiska.eu/t/mita-helvettia-elainlaakinnassa-tapahtuu/6772
* Kuivamuonamainokset: Hassut aidot tapaukset: https://foorumi.katiska.eu/t/kuivamuonamainokset-hassut-aidot-tapaukset/479
这些描述并未显示在侧边栏中。
右侧没有任何内容,正如您所见 ![]()
如果对您有帮助,这是我安装的插件列表…
cmd:
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/discourse/discourse-solved.git
- git clone https://github.com/discourse/discourse-user-notes.git
- git clone https://github.com/discourse/discourse-openid-connect.git
- git clone https://github.com/discourse/discourse-ai.git
- git clone https://github.com/discourse/discourse-yearly-review.git
- git clone https://github.com/paviliondev/discourse-custom-wizard.git
- git clone https://github.com/discourse/discourse-doc-categories.git
- git clone https://github.com/discourse/discourse-reactions.git
- git clone https://github.com/discourse/discourse-akismet.git
- git clone https://github.com/discourse/discourse-data-explorer.git
- git clone https://github.com/discourse/discourse-oauth2-basic.git
- git clone https://github.com/discourse/discourse-assign.git
- git clone https://github.com/discourse/discourse-templates.git
- git clone https://github.com/discourse/discourse-policy.git
- git clone https://github.com/discourse/discourse-gamification.git
- git clone https://github.com/discourse/discourse-category-experts.git
- git clone https://github.com/merefield/discourse-ai-topic-summary.git
- git clone https://github.com/MonDiscourse/discourse-formatting-toolbar.git
- git clone https://github.com/discourse/discourse-custom-topic-lists.git
- git clone https://github.com/thoka/discourse-send-pdf-inline.git
- git clone https://github.com/discourse/discourse-prometheus.git
- git clone https://github.com/communiteq/discourse-user-response-times.git
- git clone https://github.com/discourse/discourse-fingerprint.git
- git clone https://github.com/discourse/discourse-bcc.git
- git clone https://github.com/featheredtoast/discourse-pushover-notifications.git
- git clone https://github.com/discourse/discourse-saved-searches.git
通常侧边栏在左侧(红色),文档侧边栏只是替换了默认内容。在右侧(紫色),您看到的是由 DiscoTOC - automatic table of contents 主题组件添加的目录。
是的,DiscoTOC也是一个已安装的主题组件。我也无法启用它。有些东西不对劲……
不确定,但你的截图不清楚。你是截了图但根本没有显示侧边栏?是文档侧边栏没有显示?还是根本没有显示侧边栏(它不是仅仅隐藏了,试试按 =)
编辑;想到这一点,你应该清楚你遇到的问题是 discoTOC(OP 的目录)还是 doc-categories(文档索引侧边栏)
嘿 Marc–
DiscoTOC 可以正常工作。我回去仔细检查了一下,按照说明操作,在进入“齿轮”并插入 TOC 后,它确实会创建一个侧边栏 TOC。
我的所有屏幕截图都包含侧边栏,所以我展示的是没有显示任何侧边栏的开放式视图。
我总有种预感,这会是一个非常简单的修复,但我还没找到 ![]()
在您的截图中我没有看到任何侧边栏——它们都只显示帖子内容。您能否在您正在查看的应该显示索引的分类页面时,发布一张完整 Discourse 界面的截图?