Improve API documentation; add autotests for it #31

Manually merged
jabber.developer merged 9 commits from build/add-api-docs-gen-tests into master 2025-09-15 14:54:44 +00:00

Introduce separate jobs to test C (Doxygen) and Python (Sphinx) API documentation generation. Ensures build failures are caught early, as API changes often produce warnings that developers miss without automated checks.

Introduce separate jobs to test C (Doxygen) and Python (Sphinx) API documentation generation. Ensures build failures are caught early, as API changes often produce warnings that developers miss without automated checks.
jabber.developer added 1 commit 2025-09-10 15:25:30 +00:00
ci: add GitHub Actions workflow to test C and Python API doc generation
Some checks failed
CI / Check coding style (pull_request) Successful in 38s
CI / Check spelling (pull_request) Successful in 19s
CI / Test C API Documentation Generation (pull_request) Failing after 27s
CI / Test Python API Documentation Generation (pull_request) Failing after 27s
CI / Linux (arch) (pull_request) Successful in 15m0s
CI / Linux (ubuntu) (pull_request) Successful in 15m8s
CI / Linux (debian) (pull_request) Successful in 15m16s
a21dd9de5b
Introduce separate jobs to test C (Doxygen) and Python (Sphinx) API documentation generation. Ensures build failures are caught early, as API changes often produce warnings that developers miss without automated checks.
Author
Owner

At this point, the jobs are expected to fail, since API contains numerous issues.

At this point, the jobs are expected to fail, since API contains numerous issues.
admin added 1 commit 2025-09-10 16:10:41 +00:00
docs(prof.py): overhaul documentation to align with Google Python Style Guide
Some checks failed
CI / Check spelling (pull_request) Successful in 20s
CI / Test C API Documentation Generation (pull_request) Failing after 26s
CI / Check coding style (pull_request) Successful in 32s
CI / Test Python API Documentation Generation (pull_request) Failing after 24s
CI / Linux (arch) (pull_request) Has been cancelled
CI / Linux (debian) (pull_request) Has been cancelled
CI / Linux (ubuntu) (pull_request) Has been cancelled
692c9513c0
- Updated project references from Profanity to CProof.
- Removed Python 2 and unicode references.
- Added type hints for all parameters and return types.
- Organized functions into logical sections with RST comments for Sphinx.
- Improved wording for clarity and precision based on source code analysis.
- Ensured compliance with Google Python Style Guide for readable docstrings.

Related to #30
jabber.developer changed title from ci: add GitHub Actions workflow to test C and Python API doc generation to Improve API documentation; add autotests for it 2025-09-10 16:11:44 +00:00
admin force-pushed build/add-api-docs-gen-tests from 692c9513c0 to 59b7c31554 2025-09-10 16:13:54 +00:00 Compare
admin force-pushed build/add-api-docs-gen-tests from 59b7c31554 to 399abce836 2025-09-10 16:59:36 +00:00 Compare
admin force-pushed build/add-api-docs-gen-tests from 399abce836 to 052e168e9b 2025-09-10 17:05:40 +00:00 Compare
admin added 1 commit 2025-09-10 17:30:28 +00:00
ci: Update doxygen config file via doxygen -u
Some checks failed
CI / Check spelling (pull_request) Successful in 22s
CI / Test C API Documentation Generation (pull_request) Successful in 28s
CI / Check coding style (pull_request) Successful in 37s
CI / Test Python API Documentation Generation (pull_request) Failing after 28s
CI / Linux (ubuntu) (pull_request) Has been cancelled
CI / Linux (debian) (pull_request) Has been cancelled
CI / Linux (arch) (pull_request) Has been cancelled
a4cead7fe8
admin added 1 commit 2025-09-10 17:32:38 +00:00
ci: Disable Doxygen HTML generation
Some checks failed
CI / Check spelling (pull_request) Successful in 48s
CI / Test C API Documentation Generation (pull_request) Successful in 1m5s
CI / Check coding style (pull_request) Successful in 1m35s
CI / Test Python API Documentation Generation (pull_request) Failing after 1m17s
CI / Linux (debian) (pull_request) Has been cancelled
CI / Linux (ubuntu) (pull_request) Has been cancelled
CI / Linux (arch) (pull_request) Has been cancelled
3ffeda1531
Since only XML is being used during website build process, generation of HTML involves unnecessary computations.
admin added 1 commit 2025-09-10 17:35:25 +00:00
docs: fix C API documentation
Some checks failed
CI / Check spelling (pull_request) Successful in 45s
CI / Test C API Documentation Generation (pull_request) Successful in 1m20s
CI / Check coding style (pull_request) Successful in 1m29s
CI / Test Python API Documentation Generation (pull_request) Failing after 1m24s
CI / Linux (ubuntu) (pull_request) Has been cancelled
CI / Linux (debian) (pull_request) Has been cancelled
CI / Linux (arch) (pull_request) Has been cancelled
e998d5e7ef
`barejid` parameter was used instead of the intended `roomjid`, leading to warnings during compilation.
admin added 1 commit 2025-09-10 17:38:29 +00:00
ci(Doxygen): Enable warning as error
Some checks failed
CI / Check spelling (pull_request) Successful in 25s
CI / Test C API Documentation Generation (pull_request) Successful in 1m21s
CI / Check coding style (pull_request) Successful in 1m59s
CI / Test Python API Documentation Generation (pull_request) Failing after 1m30s
CI / Linux (debian) (pull_request) Successful in 13m58s
CI / Linux (ubuntu) (pull_request) Successful in 14m18s
CI / Linux (arch) (pull_request) Successful in 19m30s
7e4c60e2c3
To ensure that CI builds fails to reflect issues within the documentations
admin added 2 commits 2025-09-15 12:33:43 +00:00
- Replace Profanity with CProof in all docstrings and examples.
- Remove Python 2 and unicode references, using Python 3 str types.
- Add type hints for all parameters and return types.
- Use :: for code blocks with blank lines to fix Sphinx errors.
- Improve wording for clarity and integrated examples into docstrings.
- Organize functions into logical sections with RST comments.
- Use double backticks for inline literals to resolve Sphinx warnings.
docs(prof.py): add CommandCallback, TimedCallback, WindowCallback protocols
Some checks failed
CI / Check spelling (pull_request) Successful in 19s
CI / Test C API Documentation Generation (pull_request) Successful in 23s
CI / Check coding style (pull_request) Successful in 35s
CI / Test Python API Documentation Generation (pull_request) Failing after 26s
CI / Linux (arch) (pull_request) Has been cancelled
CI / Linux (debian) (pull_request) Has been cancelled
CI / Linux (ubuntu) (pull_request) Has been cancelled
a421ef8473
- Defined callback protocols for register_command, register_timed, win_create.
- Fixed Sphinx callable warnings with proper type hints.
admin force-pushed build/add-api-docs-gen-tests from a421ef8473 to aa0522acf8 2025-09-15 12:38:35 +00:00 Compare
admin force-pushed build/add-api-docs-gen-tests from aa0522acf8 to cb6f302208 2025-09-15 13:48:02 +00:00 Compare
admin added 1 commit 2025-09-15 13:55:56 +00:00
docs(sphinx): fix conf.py and index.rst to resolve warnings
Some checks failed
CI / Check spelling (pull_request) Successful in 51s
CI / Test C API Documentation Generation (pull_request) Successful in 52s
CI / Check coding style (pull_request) Successful in 1m22s
CI / Test Python API Documentation Generation (pull_request) Failing after 1m1s
CI / Linux (debian) (pull_request) Successful in 12m49s
CI / Linux (ubuntu) (pull_request) Successful in 13m12s
CI / Linux (arch) (pull_request) Successful in 16m22s
2dc99ca745
- Removed unnecessary list item (*) from :ref:`genindex`.
- Added blank line after :ref:`genindex` to terminate markup block.
- Rebranded configs
admin force-pushed build/add-api-docs-gen-tests from 2dc99ca745 to 105c496ab1 2025-09-15 14:12:55 +00:00 Compare
jabber.developer manually merged commit 353b6bdb11 into master 2025-09-15 14:54:44 +00:00
Sign in to join this conversation.
No description provided.