-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
DataObjStr permits to set invalid priority #147
Comments
Thanks for submitting this -- I did actually think about adding this sort of validation to the However, I don't think Sphinx uses But: Are you seeing a particular bug as a result of this? If there is a functional reason why |
Thank you for your feedback! I indeed see a bug since the |
Ahh, indeed, I've restricted it to integers, haven't I! Can you supply me with your Needs:
Thank you for reporting this! |
Yes sure! I'll upload it here for now, but it might be available online quite soon Here is a plain text version of it |
Ah, that's a working version of the mdn inventory... would it be possible for you to generate a version that |
Yes sorry about that |
For documentation purposes: Sphinx does only use the However, these uses are only relevant to HTML documentation built by Sphinx— |
Also add custom MDN inventory with non-integer priority values. Fixes #147
I'll try to get a prerelease of this fix up onto PyPI sometime today (US Eastern). |
Done. Give it a shot with |
Per #181 (comment), the relaxation of accepted I'm going to have to revert the |
While generating a objects.inv from Mozilla MDN reference, I reused their "priority" settings to generate
DataObjStr
objects (usually0.5
), which is invalid as per https://sphobjinv.readthedocs.io/en/latest/syntax.html?highlight=priority#sphinx-objects-inv-v2-syntaxThere is no such validation in the data model, and that could be a nice addition :)
The text was updated successfully, but these errors were encountered: