autocompile documentation on each commit

only tested this once by the way

minor formatting changes in icon.js
This commit is contained in:
yellows111 2023-11-29 23:11:05 +00:00
parent bf646d10ba
commit 837dffc4dc
2 changed files with 25 additions and 3 deletions

22
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: "[icondumper2] autobuild"
on: [push]
jobs:
documentation:
name: Compile documentation via JSDoc
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@main
with:
fetch-depth: 0
- name: Install node.js
uses: actions/setup-node@main
- name: Compile documentation with JSDoc
run: npx jsdoc ./icon.js -d ./documentation -R ./README.md
- name: Upload Artifacts
uses: 'actions/upload-artifact@main'
with:
name: JSDoc-compiled Documentation
path: './documentation/*'

View File

@ -15,7 +15,7 @@ const ICONJS_VERSION = "0.6.0";
* @augments DataView * @augments DataView
* @constructor * @constructor
* @param {ArrayBuffer} buffer ArrayBuffer to base DataView from. * @param {ArrayBuffer} buffer ArrayBuffer to base DataView from.
* @returns {Object.<string, function>} * @returns {Object.<string, function(number): number>}
* @access protected * @access protected
*/ */
class yellowDataReader extends DataView { class yellowDataReader extends DataView {
@ -87,7 +87,7 @@ function setStrictness(value) {
/** /**
* Converts a texture format to a generalized texture type character. * Converts a texture format to a generalized texture type character.
* @param {number} input - texture format * @param {number} i - texture format
* @returns {string} U: uncompressed, N: none, C: compressed * @returns {string} U: uncompressed, N: none, C: compressed
* @access protected * @access protected
*/ */