nathank
(Nathan Kershaw)
2025 年9 月 27 日 07:59
132
刚做了这个——它给出了一个有点奇怪的错误,但似乎运行正常:
root@spokes-web-only:/var/www/discourse# bundle exec rake doc_categories:build_sidebar
fatal: detected dubious ownership in repository at ‘/var/www/discourse’
To add an exception for this directory, call:
git config --global --add safe.directory /var/www/discourse
Processing category #21 - Ask the Candidates
⮑ Created 3 sections and 55 links
Processing category #21 - Ask the Candidates
⮑ Created 3 sections and 55 links
这是否正常?
我们是否必须改变与索引主题的交互方式,还是那一切都没有改变?
4 个赞
nat
(Natalie T)
2025 年9 月 27 日 10:36
133
nathank:
是否应该如此?
是的,这是正确的,而且没有其他事情需要做了
nathank:
是否所有内容都未更改?
是的,再次确认。
在不久的将来( ),我们将致力于改进诸如轻松排序、重新排列、更新等功能,或许还会有一个专门的用户界面。我不认为自托管用户还需要做任何手动操作。
3 个赞
Sailor
2025 年9 月 27 日 10:53
134
nat:
我们最近的更新
您能否澄清这适用于哪个插件版本和/或提交?
我正在运行 Discourse 3.6.0.beta1-dev,并且没有显示 Documentation Categories 的可用插件更新,该插件版本为 0.0.1,提交为 ba90a37 。
1 个赞
nat
(Natalie T)
2025 年9 月 27 日 11:45
135
这些更改大约比您看到的更新 7 个提交。
这些更改来自 Discourse 3.6.0.beta1-dev 的同一版本。理想情况下,下次更新 Discourse 本身时,您也应该会获得这些更改。
一般来说,我不建议仅更新插件,而是通过 UI 或 ./launcher rebuild app 使用典型的升级方法。
2 个赞
cmdntd
(cmdntd)
2025 年9 月 30 日 05:03
136
文档菜单(左侧)在最新版本的 discourse (3.6.0.beta2) 中无法显示
您能再检查一下吗?
cmdntd
(cmdntd)
2025 年9 月 30 日 05:31
138
谢谢,这样就可以了:
sudo -E -u discourse bundle exec rake doc_categories:build_sidebar
1 个赞
nat
(Natalie T)
拆分了此话题
2025 年10 月 2 日 09:01
139
大家好,
我尝试现在安装它,但似乎此插件与我们正在使用的 Discourse 版本 3.5.2 不兼容。
您能确认兼容性吗?我收到此错误:
2025年11月5日 06:55
/var/www/discourse/plugins/discourse-doc-categories/lib/doc_categories/initializers/add_category_extensions.rb:19:in `apply': undefined method `register_category_update_param_with_callback' for an instance of Plugin::Instance (NoMethodError)
discourse
2025年11月5日 06:55
** 不兼容的插件 **
discourse
2025年11月5日 06:55
由于插件错误,您无法启动 Discourse
discourse
2025年11月5日 06:55
/var/www/discourse/plugins/discourse-doc-categories
discourse
2025年11月5日 06:55
请尝试移除此插件并重新构建!
nat
(Natalie T)
2025 年11 月 5 日 10:02
141
您需要先更新 Discourse 实例,因为指示的方法仅在新版本中可用。
discourse/discourse:3.5.2 镜像包含此更新代码吗?我正在使用它,并且看到它在 10 小时前已更新。
nat
(Natalie T)
2025 年11 月 5 日 10:11
143
3.5.2 将不兼容。您至少需要 3.6.0.beta1。
1 个赞
您知道 3.6.0.beta3-latest 有什么问题吗?自我们从 3.6.0.beta1 最近更新以来,该插件就无法工作了。
1 个赞
您是否按照此处所述运行了 rake 任务?
Updates for self-hosters
For self-hosters using this plugin, our most recent update would require a manual rebuild of the index. This would involve running this rake task:
bundle exec rake doc_categories:build_sidebar
# if running the task above fails due to NoDatabaseError,
# run with the following for typical self-hosted setups
sudo -E -u discourse bundle exec rake doc_categories:build_sidebar
If you are not able to run this rake task, you may go to each documentation categor…
如果您无法执行 Rake 任务,还有一个替代方法(在“分类设置”中删除“索引主题”,点击保存,然后重新添加)。
3 个赞
自从以规定的格式向索引添加带有静态名称的链接以来,我每次都需要这样做:
* 链接文本: https://meta.discourse.org/t/an-example-link/
否则,分类侧边栏链接将不会解析为其标题,而是保留为完整的 URL。这发生在最新的 Discourse 版本(截至提交 5817b6c 的 2025.12.0-latest)上。
1 个赞
我也注意到这种情况偶尔会发生。刷新页面似乎可以解决这个问题。
(这与插件完全不工作不同,后者发生在你没有执行 rake 任务或循环主题索引的情况下,我之前忘记做这些操作的论坛上也发生了同样的情况)
1 个赞
pacharanero:
刷新页面似乎可以解决问题。
我这里不行。只有我上面引用的调整 rake 或分类设置才能解决。
1 个赞
nat
(Natalie T)
2025 年12 月 30 日 08:45
151
我们最近进行了一次更新,这可能会解决此问题。请回复我们,让我们知道问题是否仍然存在。
2 个赞