Documenter.jl:忽略DocString

发布于 2025-02-07 20:20:15 字数 780 浏览 0 评论 0原文

使用 docormenter.jl ,我一直收到这些警告:

┌ Warning: 60 docstrings not included in the manual:
│ 
│     ProtoSyn.Calculators.TorchANI.r_xml_travel! :: Union{Tuple{T}, Tuple{Union{LightXML.XMLDocument, LightXML.XMLElement}, String, Vector{T}}} where T<:AbstractFloat
│     ProtoSyn.Clustering.dunn_index :: Union{Tuple{T}, Tuple{Vector{T}, Matrix{T}}} where T<:AbstractFloat
│     ProtoSyn.Calculators.get_available_energy_function_components :: Tuple{Module}
│     Base.resize! :: Tuple{ProtoSyn.Calculators.VerletList, Int64}
│     ProtoSyn.Common
(...)

我想忽略一些(我想忽略一些(大多数)这些docstring(它们存在于代码库中,但我不想将它们导出到最终文档网站)。我如何忽略单个docstrings?

Using Documenter.jl, I keep getting these warnings:

┌ Warning: 60 docstrings not included in the manual:
│ 
│     ProtoSyn.Calculators.TorchANI.r_xml_travel! :: Union{Tuple{T}, Tuple{Union{LightXML.XMLDocument, LightXML.XMLElement}, String, Vector{T}}} where T<:AbstractFloat
│     ProtoSyn.Clustering.dunn_index :: Union{Tuple{T}, Tuple{Vector{T}, Matrix{T}}} where T<:AbstractFloat
│     ProtoSyn.Calculators.get_available_energy_function_components :: Tuple{Module}
│     Base.resize! :: Tuple{ProtoSyn.Calculators.VerletList, Int64}
│     ProtoSyn.Common
(...)

I want to ignore some (most) of these docstrings (they exist in the code base but I do not want to export them to the final documentation website). How can I ignore individual docstrings?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一袭水袖舞倾城 2025-02-14 20:20:15

您应该尝试通过指定checkDocs关键字选项来抑制此类警告。使用CheckDocs =:Exports仅当导出未使用的DocString功能时才抱怨。如果您在makedoc中使用checkDocs =:无,应导致makedocs忽略未使用的Docstrings。不过,您可能会对畸形的Docstrings失去一些错误警告。

You should try suppressing such warnings by specifying the checkdocs keyword option when calling makedocs(). Using checkdocs=:exports complains only if the unused docstring's function is exported. If you use checkdocs=:none in makedocs that should cause makedocs to ignore the unused docstrings. You might lose some error warnings for malformed docstrings though.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文