Discourse 文档类别

刚做了这个——它给出了一个有点奇怪的错误,但似乎运行正常:

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 个赞

是的,这是正确的,而且没有其他事情需要做了 :ok_hand:t2:

是的,再次确认。

在不久的将来(:crossed_fingers:t2:),我们将致力于改进诸如轻松排序、重新排列、更新等功能,或许还会有一个专门的用户界面。我不认为自托管用户还需要做任何手动操作。

3 个赞

您能否澄清这适用于哪个插件版本和/或提交?

我正在运行 Discourse 3.6.0.beta1-dev,并且没有显示 Documentation Categories 的可用插件更新,该插件版本为 0.0.1,提交为 ba90a37

1 个赞

这些更改大约比您看到的更新 7 个提交。

这些更改来自 Discourse 3.6.0.beta1-dev 的同一版本。理想情况下,下次更新 Discourse 本身时,您也应该会获得这些更改。

一般来说,我不建议仅更新插件,而是通过 UI 或 ./launcher rebuild app 使用典型的升级方法。

2 个赞

文档菜单(左侧)在最新版本的 discourse (3.6.0.beta2) 中无法显示

您能再检查一下吗?

在 Meta 上对我来说仍然有效。

您是否按照此处的说明重建了索引?

2 个赞

谢谢,这样就可以了:

sudo -E -u discourse bundle exec rake doc_categories:build_sidebar

1 个赞

帖子已拆分为新主题:关于改进文档类别插件的各种建议

大家好,

我尝试现在安装它,但似乎此插件与我们正在使用的 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
请尝试移除此插件并重新构建!

您需要先更新 Discourse 实例,因为指示的方法仅在新版本中可用。

discourse/discourse:3.5.2 镜像包含此更新代码吗?我正在使用它,并且看到它在 10 小时前已更新。

3.5.2 将不兼容。您至少需要 3.6.0.beta1。

1 个赞