Reputation: 1423
I want to use Sphinx to generate html documents, and although I can generate them successfully, Sphinx does not recognize elements like :param content:
.
Here you can see the specific code file, using . \make.bat html
to generate the documentation: Shared/sphinx-document-generation at master - Andy-AO/Shared
After checking the documentation of the autodoc
extension, I still can't find the relevant settings, maybe I'm missing something important.
Why is this happening? How can I get Sphinx to recognize these elements?
Upvotes: 2
Views: 721
Reputation: 1423
Thank @mzjn, the problem has been solved, it is the format of reStructuredText is wrong.
There should be a blank line between other content and Field lists
×
"""
describe
:param child_node: this is child_node
√
"""
describe
:param child_node: this is child_node
There should be spaces between the Field and the content of the Field
:param content:the object to be added
:param content: the object to be added
Upvotes: 1