Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

25%
+0 −4
Q&A Sphinx: API documentation: How to turn off creating links to Parameter/Argument link creation

To control the inclusion of links to parameter/argument types in Sphinx-generated API documentation, you can adjust the autodoc_typehints setting in your conf.py file. Set autodoc_typehints to 'non...

posted 16d ago by scopegranites‭

Answer
#1: Initial revision by user avatar scopegranites‭ · 2024-12-02T14:28:26Z (16 days ago)
To control the inclusion of links to parameter/argument types in Sphinx-generated API documentation, you can adjust the autodoc_typehints setting in your conf.py file. Set autodoc_typehints to 'none' to turn off the links or 'description' to turn them on. You can also use the autodoc_typehints_format setting to fine-tune how types are displayed. For more control over type linking, ensure the sphinx.ext.autodoc extension is enabled in your project.