Skip to content

Comments

Adddocscheck#13

Open
wxyyy0117 wants to merge 11 commits intomasterfrom
adddocscheck
Open

Adddocscheck#13
wxyyy0117 wants to merge 11 commits intomasterfrom
adddocscheck

Conversation

@wxyyy0117
Copy link

@wxyyy0117 wxyyy0117 commented Jul 2, 2025

By creating this pull request you agree to the terms in CONTRIBUTING.md.
https://github.com/Infineon/.github/blob/master/CONTRIBUTING.md
--- DO NOT DELETE ANYTHING ABOVE THIS LINE ---

This pull request introduces documentation generation for the project using Sphinx and updates the documentation configuration files. The changes include adding a GitHub Actions workflow for building documentation, updating project information in conf.py, and creating new files required for Sphinx-based documentation builds.

Documentation Build Setup:

  • .github/workflows/build_docs.yml: Added a GitHub Actions workflow to automatically build documentation on push and pull_request events affecting the docs directory.
  • README.md: Included a badge linking to the documentation build status.

Sphinx Configuration Updates:

  • docs/conf.py: Updated project metadata , added the release version (1.1.0), and refined Sphinx extensions and configurations (e.g., removed deprecated settings, switched to using sphinx_rtd_theme). [1] [2] [3] [4] [5]

Build Support Files:

  • docs/Makefile: Added a minimal makefile for building Sphinx documentation.
  • docs/make.bat: Added a batch file for building Sphinx documentation on Windows systems.

Dependency Management:

  • docs/requirements.txt: Simplified the dependency list by removing version constraints for Sphinx-related packages.

@wxyyy0117 wxyyy0117 requested review from Copilot and ederjc July 2, 2025 09:18
Copy link

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 sets up automated Sphinx documentation generation by adding CI workflows and the necessary configuration and build scripts.

  • Introduce a GitHub Actions workflow to build docs on relevant events
  • Add Sphinx configuration (conf.py) and support files (Makefile, make.bat)
  • Update documentation dependencies and include a status badge in README.md

Reviewed Changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
.github/workflows/build_docs.yml Added workflow for automatic docs builds
docs/requirements.txt Simplified and unpinned Sphinx-related dependencies
docs/conf.py Updated Sphinx project metadata and extensions
docs/Makefile Added minimal makefile for docs build
docs/make.bat Added Windows batch script for docs build
README.md Added documentation build status badge
Comments suppressed due to low confidence (3)

README.md:3

  • The badge references the 'adddocscheck' branch; after merge this will break. Consider pointing the badge to the default branch (e.g., 'main').
[![Build docs](https://github.com/Infineon/high-side-switch/actions/workflows/build_docs.yml/badge.svg?branch=adddocscheck)](https://github.com/Infineon/high-side-switch/actions/workflows/build_docs.yml)

docs/conf.py:25

  • [nitpick] The copyright year is set to 2022; consider updating it to the current year or using a dynamic value to reflect ongoing maintenance.
copyright = '2022 Infineon Technologies AG'

docs/conf.py:77

  • HTML generation has been disabled by setting GENERATE_HTML = NO; this may prevent HTML docs from being built. If unintentional, revert to YES.
        GENERATE_HTML    = NO

Comment on lines 1 to 8
Sphinx
sphinx-rtd-theme
sphinx-sitemap
recommonmark
sphinxemoji
sphinx-tabs
breathe>=4.13.0
breathe
exhale
Copy link

Copilot AI Jul 2, 2025

Choose a reason for hiding this comment

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

[nitpick] Unpinned documentation dependencies may lead to builds that vary over time; consider specifying version constraints to ensure reproducible builds.

Copilot uses AI. Check for mistakes.
@wxyyy0117 wxyyy0117 force-pushed the adddocscheck branch 3 times, most recently from 470a51e to d7dd762 Compare July 4, 2025 12:05
docs/conf.py Outdated

breathe_projects = {
"High-Side Switch": "build/xml/"
"Arduino MOTIX™ BTN99x0": "build/xml/"
Copy link
Member

Choose a reason for hiding this comment

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

@wxyyy0117 this should be high side switch

docs/conf.py Outdated
}
breathe_default_project = "High-Side Switch"
breathe_default_members = ('members', 'undoc-members') No newline at end of file
breathe_default_project = "Arduino MOTIX™ BTN99x0"
Copy link
Member

Choose a reason for hiding this comment

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

and here

sphinx-sitemap>=2.2.0
recommonmark>=0.6.0
sphinxemoji>=0.1.8
Sphinx
Copy link
Member

Choose a reason for hiding this comment

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

why Sphinx instead of sphinx?

docs/conf.py Outdated

breathe_projects = {
"High-Side Switch": "build/xml/"
"HIGH-SIDE-SWITCH": "build/xml/"
Copy link
Member

Choose a reason for hiding this comment

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

why change the name?

docs/conf.py Outdated
}
breathe_default_project = "High-Side Switch"
breathe_default_members = ('members', 'undoc-members') No newline at end of file
breathe_default_project = "HIGH-SIDE-SWITCH"
Copy link
Member

Choose a reason for hiding this comment

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

same: name change?

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