Skip to content
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

objects.inv contains only modules #35298

Closed
1 task done
saraedum opened this issue Mar 16, 2023 · 3 comments
Closed
1 task done

objects.inv contains only modules #35298

saraedum opened this issue Mar 16, 2023 · 3 comments

Comments

@saraedum
Copy link
Member

saraedum commented Mar 16, 2023

Is there an existing issue for this?

  • I have searched the existing issues for a bug report that matches the one I want to file, without success. (There's a meta ticket. Not sure if these are updated still: Meta-ticket: Sage docbuild #20080)

Problem Description

Currently, the objects.inv deployed at https://doc.sagemath.org/html/en/reference/objects.inv only exposes modules and documents but not classes and functions. This makes it hard to link to SageMath's documentation from other projects with intersphinx.

Here's an example that shows that the class DiscreteValuation is missing. Only it's module is around. (Same for all other classes.)

$ python -m sphinx.ext.intersphinx https://doc.sagemath.org/html/en/reference/objects.inv | grep DiscreteValuation
$ python -m sphinx.ext.intersphinx https://doc.sagemath.org/html/en/reference/objects.inv | grep discrete_valuation
	sage.categories.complete_discrete_valuation categories/sage/categories/complete_discrete_valuation.html#module-sage.categories.complete_discrete_valuation
	sage.categories.discrete_valuation       categories/sage/categories/discrete_valuation.html#module-sage.categories.discrete_valuation
	categories/sage/categories/complete_discrete_valuation Complete Discrete Valuation Rings (CDVR) and Fields (CDVF): categories/sage/categories/complete_discrete_valuation.html
	categories/sage/categories/discrete_valuation Discrete Valuation Rings (DVR) and Fields (DVF): categories/sage/categories/discrete_valuation.html

Proposed Solution

I don't understand why the objects.inv of SageMath is so short. Other projects I am working on (e.g. sage-flatsurf) produce a proper objects.inv without any special sphinx configuration.

@saraedum
Copy link
Member Author

cc @videlec I tried to link to SageMath from sage-flatsurf without success because of this.

@mkoeppe mkoeppe added this to the sage-10.5 milestone Aug 5, 2024
@mkoeppe
Copy link
Contributor

mkoeppe commented Aug 5, 2024

I don't understand why the objects.inv of SageMath is so short.

Because the reference manual is split into many separate Sphinx documents, each of which has its own objects.inv, for example https://doc.sagemath.org/html/en/reference/numerical/objects.inv

https://github.com/sagemath/sage-package/blob/master/sage_package/sphinx.py has code for intersphinxing to it.

@saraedum
Copy link
Member Author

saraedum commented Aug 7, 2024

Thanks, I'll try that then.

@mkoeppe mkoeppe removed this from the sage-10.5 milestone Aug 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants