-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix API Reference header formatting for Intersphinx #211
Comments
@analog-cbarber I haven't seen this before—very cool and thanks for highlighting it! According to the docs you linked, we should be doing this already because of mkdocstrings' default configuration.
It looks like our 0.7.0 release build that published the https://cloudpathlib.drivendata.org/stable/ docs was using mkdocstrings v0.18.0, which should support this feature. I see an |
That file is there, but for some reason lacks entries for some classes such as S3Path. There are entries for the methods but not the class itself. So I cannot link directly to the class using something like: """
See: [cloudpathlib.S3Path][cloudpathlib.s3.s3path.S3Path]
""" So I either need to use something like I wonder if writing FYI, you can use the |
When using |
Should that be the default? |
It's already the default, though maybe it was not at the time the cloudpathlib docs were built. |
@analog-cbarber latest stable docs should have been built and deployed two weeks ago. Does this work now? |
I expect we may still have an issue is that we (probably me) made some formatting choices that don't play nicely with the assumptions of the Intersphinx API publisher. This will require some deliberate changes to fix. |
Nothing has changed. There is still no entry for the classes themselves. |
It would be nice if the documentation published an intersphinx
objects.inv
file so that other projectscan use it for cross linking in their documentation.
This only will require adding
enable_inventory
to themkdocstrings
configuration inmkdocs.yml
:See https://mkdocstrings.github.io/usage/#cross-references-to-other-projects-inventories
The text was updated successfully, but these errors were encountered: