Start testing for documentation building#217
Conversation
7fef25b to
6e20dfb
Compare
6e20dfb to
2bc5bf6
Compare
dd64342 to
9f1c898
Compare
The accessors framework is no longer present, so we don't need an absolute_temperature accessor
22605bb to
7fefdbe
Compare
Lines aren't supposed to have unexpected indentation
7fefdbe to
f88becd
Compare
93b105e to
31a849d
Compare
8190bc2 to
a615e6c
Compare
a615e6c to
5675193
Compare
5675193 to
91c6c87
Compare
9b9bbec to
5720f2f
Compare
5720f2f to
0d9daae
Compare
0d9daae to
c4aed59
Compare
c4aed59 to
8369373
Compare
8369373 to
a3a018f
Compare
a3a018f to
2f77521
Compare
96cee25 to
a87faa4
Compare
a87faa4 to
7893d70
Compare
There was a problem hiding this comment.
Our agent can fix these. Install it.
No quality gates enabled for this code.
Quality Gate Profile: Custom Configuration
Install CodeScene MCP: safeguard and uplift AI-generated code. Catch issues early with our IDE extension and CLI tool.
llimeht
left a comment
There was a problem hiding this comment.
Huge thanks for this work!
A couple of queries - I guess the one about using a dollar-math extension is probably worth fixing within this PR for completeness.
| difference between consecutive edges which have been first converted | ||
| to $u$. Only $u_j \in [0, \Delta q_\perp]$ are used, which corresponds | ||
| to $q_j \in \left[q, \sqrt{q^2 + \Delta q_\perp}\right]$, so | ||
| to $u$. Only $u_j \in [0, \Delta q\_\perp]$ are used, which corresponds |
There was a problem hiding this comment.
I spot checked these ones and found:
(screenshot from downloading the artifact from CI and unzipping the whl)
Looking at the sphinx config, it's not actually loading any sort of dollar-math or mathjax sphinx extension - presumably this has actually been broken in the docs since they separated from sasview (which has its own private dollar-math sphinx extension).
Perhaps also time to add that?
https://github.com/matthew-brett/texext (packaged for Debian and used by a few packages)
https://github.com/sympy/sphinx-math-dollar/ (not packaged for Debian)
https://github.com/SasView/sasview/blob/main/docs/sphinx-docs/source/_extensions/dollarmath.py (sasview version)
| [[tool.hatch.build.targets.wheel.hooks.sphinx.tools]] | ||
| tool = "build" | ||
| format = "html" | ||
| warnings = true |
There was a problem hiding this comment.
(Please let me know if any additional hatch-sphinx features are needed for this work!)
The goal for this PR is to resolve #214 and both fix the warnings with the building of the docs and ensure via the CI that the warnings do not return.
The following changes are included in this PR:
absolute_temperature.pywas removed, as it is part of the deprecated Accessor infrastructure and was not used anywhere.si.pyandunits.pymetadata.py,manipulations.py,binning.py,averaging.pyandmodel_requirements.py. Specifically, sphinx use pipes for keyword substitution while LaTeX uses it for absolute value. Similarly, sphinx uses underscores for hyperlinking while LaTeX uses it for subscripts. I escaped the control characters for sphinx and they should be passed cleanly on to LaTeX, but this is the part of this PR that I'm the least happy withconf.pyexplicitly ignore error messages when these cannot be found.type, Sphinx seems to have trouble figuring out which class to reference (or whether to reference the builtin functiontype). Lines 48-54 ofconf.pysimplify sphinx's resolver so that it doesn't get confused about references totype. I'm also particularly happy about this solution, but it was the only method I could find short of renaming every class member and breaking the readers in SasView.