SRGSSR / pillarbox-web

Pillarbox is a versatile media playback ecosystem engineered for the web.
https://srgssr.github.io/pillarbox-web-demo/
MIT License
11 stars 1 forks source link

docs: generate api documentation with jsdoc #195

Closed jboix closed 6 months ago

jboix commented 6 months ago

Description

Resolves https://github.com/SRGSSR/pillarbox-web/issues/186 by introducing API documentation generation process:

The documentation is generated alongside the demo page and deployed under /api.

Changes made

Updated class extension for the player and enhanced documentation by adding missing @class annotations and included additional typedefs in typedef.js file. The added typedefs improve TypeScript type generation for various video.js components, such as AudioTrack, TextTrack, and VideoJsPlayer. These changes aim to enhance code documentation and improve type support for TypeScript.

github-actions[bot] commented 6 months ago

Coverage report

St.:grey_question:
Category Percentage Covered / Total
🟢 Statements
98.39% (-0% 🔻)
489/497
🟢 Branches 93.44% 228/244
🟢 Functions 100% 136/136
🟢 Lines
99.16% (-0% 🔻)
473/477

Test suite run success

153 tests passing in 9 suites.

Report generated by 🧪jest coverage report action from c48b0eca0fcb30650e94a0ce21ee77fb411cb2a6

github-actions[bot] commented 6 months ago

:tada: This PR is included in version 1.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: