Closed 12rambau closed 9 months ago
I have a bit mixed feelings about this approach.
Pros:
Cons:
I don't think the drawbacks are severe, but I wanted to bring them up for consideration.
I also thought about it but I didn't find efficient ways to parse doctree nodes as a json tree which would have allowed me to continue testing the document object.
That being said, the final result is the html output and changes from sphinx needs to be captured very early by the tests to avoid breaking custom css and themes so I think it brings lots of advantages as well. It is still possible to use other builders if the html output is not sufficient or if issues are identified in pdf or epub.
At the moment the PR is not ready for review as the pre-commit hooks are conflicting with the generated files.
@akhmerov do you have any last though on this one before I merge it ? I would like to have it merged before I merge other PR to avoid the tests misalignment.
Sorry for not being clear. I think this is a perfectly fine solution that removes a lot of boilerplate.
Fix #122