gpt4 book ai didi

javascript - 狮身人面像严重 : unexpected section title -- arbitrary headings in function docstring

转载 作者:太空狗 更新时间:2023-10-29 19:30:03 24 4
gpt4 key购买 nike

使用 autodoc和类似的工具允许人们从源 docstrings 编译文档。然而,它似乎不允许函数或类文档字符串中的任意 ReST 部分标题,并产生错误:

严重:意外的章节标题。

我尝试在没有 numpydoc 的情况下遵循 numpy 样式指南进行记录时遇到了类似的问题:unexpected section title with sphinx is numpy the issuehow does numpy process docstrings into sphinx documentation for parameters

然而,在这里,我实际上是在编写 JavaScript 文档,并且只想在 docstring 中包含任意部分标题和 ReST。

Javascript 文档字符串 API:sphinx jsapidoc

最佳答案

是的,在文档字符串中添加任意章节标题和 ReST 的要求可能会带来挑战; sphinx-jsapidoc对此要求有效。

关于javascript - 狮身人面像严重 : unexpected section title -- arbitrary headings in function docstring,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30220007/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com