Skip to content

Conversation

pranavrth
Copy link
Member

No description provided.

@confluent-cla-assistant
Copy link

🎉 All Contributor License Agreements have been signed. Ready to merge.
Please push an empty commit if you would like to re-run the checks to verify CLA status for all contributors.

@pranavrth pranavrth marked this pull request as ready for review October 9, 2025 23:30
@pranavrth pranavrth requested review from a team and MSeal as code owners October 9, 2025 23:31
@Copilot Copilot AI review requested due to automatic review settings October 9, 2025 23:31
@pranavrth pranavrth requested a review from a team as a code owner October 9, 2025 23:31
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR configures Sphinx documentation generation to treat warnings as errors by adding the -W flag to the SPHINXOPTS variable. This ensures that documentation builds fail when warnings are present, helping maintain documentation quality and catch issues early in the development process.

  • Added the -W flag to SPHINXOPTS to enable strict warning handling

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@sonarqube-confluent

This comment has been minimized.

@airlock-confluentinc airlock-confluentinc bot force-pushed the dev_doc-generation-failure-scenario branch from d491557 to 60ff184 Compare October 13, 2025 13:43
@sonarqube-confluent

This comment has been minimized.

@airlock-confluentinc airlock-confluentinc bot force-pushed the dev_doc-generation-failure-scenario branch from 60ff184 to 2104da8 Compare October 13, 2025 14:00
@pranavrth pranavrth changed the title Treating warnings as error in doc generation Treat warnings as error in doc generation Oct 13, 2025
@sonarqube-confluent

This comment has been minimized.

1 similar comment
@sonarqube-confluent

This comment has been minimized.

docs/conf.py Outdated
# further. For a list of options available for each theme, see the
# documentation.
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm assuming the theme still loads from line 131 and this plus import becomes unnecessary. Did you double check the rendering is preserving the theme? If so I'd just delete rather than comment these lines

Copy link
Member Author

Choose a reason for hiding this comment

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

I built the documentation before and after the removal and compared both versions visually and using vimdiff. Only a minor difference was observed: the character used to represent links after section headers had changed. This is not a significant issue, so we can proceed with removing that part.

@sonarqube-confluent
Copy link

Passed

Analysis Details

0 Issues

  • Bug 0 Bugs
  • Vulnerability 0 Vulnerabilities
  • Code Smell 0 Code Smells

Coverage and Duplications

  • Coverage No coverage information (66.70% Estimated after merge)
  • Duplications No duplication information (4.90% Estimated after merge)

Project ID: confluent-kafka-python

View in SonarQube

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants