Welcome to MLink Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
301 views
in Technique[技术] by (71.8m points)

python sphinx - Can I show only specific sections of a docstring?

I'm running Sphinx 3.1.2 and building documentation with NumPy style docstrings. Currently, I have examples for each function that exist in separate .rst files but I would like to transfer them to the docstrings so that it will be easier for newcomers to my project to document additions. Is there a way that I can retain the separation in the final HTML output of the examples and other documentation for each function without keeping the separate example files?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to MLink Developer Q&A Community for programmer and developer-Open, Learning and Share

1.2m questions

2.1m answers

5 comments

56.5k users

...