mkdocstrings / mkdocstrings

:blue_book: Automatic documentation from sources, for MkDocs.
https://mkdocstrings.github.io/
ISC License
1.71k stars 106 forks source link

Intersphinx inventory file always sets version to 0.0.0 #439

Open jayqi opened 2 years ago

jayqi commented 2 years ago

Currently, the created Intersphinx inventory file always sets the "Version" attribute to 0.0.0. This is because the handler does not pass through the project version to the Inventory object on instantiation, so it ends up using the default value.

https://github.com/mkdocstrings/mkdocstrings/blob/5c0e4d1290e4b54d3098281405b680291fc3639e/src/mkdocstrings/handlers/base.py#L494

https://github.com/mkdocstrings/mkdocstrings/blob/5c0e4d1290e4b54d3098281405b680291fc3639e/src/mkdocstrings/inventory.py#L65-L75

Expected behavior The Intersphinx inventory file should reflect the project's version number. (Preferably automatically, but manual would be acceptable if it's the only way to address this.)

Information (please complete the following information):

Boost priority

Fund with Polar

pawamoy commented 2 years ago

Thanks, marking this as a feature request :slightly_smiling_face: