Skip to content

Docs: Fix Sphinx build warnings and treat warnings as errors - #7958

Open
Growl1234 wants to merge 1 commit into
deepmodeling:developfrom
Growl1234:docs
Open

Growl1234 wants to merge 1 commit into
deepmodeling:developfrom
Growl1234:docs

Conversation

@Growl1234

@Growl1234 Growl1234 commented Sep 13, 2026

Copy link
Copy Markdown

@Growl1234
Growl1234 force-pushed the docs branch 7 times, most recently from 2de1135 to 8e9c178 Compare September 17, 2026 18:04
@Growl1234
Growl1234 marked this pull request as ready for review September 17, 2026 18:06
Copilot AI lite review requested due to automatic review settings September 17, 2026 18:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Growl1234

Copy link
Copy Markdown
Author

@mohanchen Please check it when convenient, thanks!

@mohanchen

Copy link
Copy Markdown
Collaborator

@mohanchen Please check it when convenient, thanks!

Hi there, CUDA tests failed.

@Growl1234

Growl1234 commented Sep 18, 2026

Copy link
Copy Markdown
Author

Please re-trigger it. I believe it's false-positive here, or at least unrelated to this PR.

Update: Oh there's merge conflict now, can wait for me rebasing.


```json
{
"init_fp_style": "ABACUS", # abacus interface

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why delete these comments?

@Growl1234 Growl1234 Sep 19, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #7915 (comment); these comments have caused Sphinx syntax warnings.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just change format json to text'?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if you really want to change the "format"; on the one hand the highlight will disappear, on the other hand the json code would still cannot be directly copied to use anyways as json does not support commenting syntax.

@mohanchen What is your opinion? I asked about this in #7915 (comment) but didn't get reply.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The main reason we touch code is the users. So when you ask whether this line should stay or go, honestly, I'm not a mind-reader — I can't give you a definitive answer. What I do care about is that a change makes life easier for the people who actually use this code, rather than merely tidying things up for whoever wrote it.

As for this particular dpgen line: I haven't seen anyone actually use it or report any feedback on it. If you want to delete it, I have no reason to stop you, and I'm fine with that.

All I'd ask is this — if one day a user runs into a problem with this code, please make sure you're in a position to help that person out. That's it.

@Growl1234 Growl1234 Sep 20, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case you didn't see it, for relevant notes here I've already put as an "important" box below. So hopefully this keeps the negative impact to a minimum. If feedback shows that many users are genuinely unhappy with it, we can add it to the suppression list - maybe at the cost of potentially hiding relevant errors. Still, with comments JSON code is not valid and cannot be directly used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Compile & CICD & Docs & Dependencies Issues related to compiling ABACUS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: Handle sphinx build warnings and treat warnings as error

4 participants