diff --git a/.github/workflows/demo.yaml b/.github/workflows/demo.yaml new file mode 100644 index 0000000..305a0e8 --- /dev/null +++ b/.github/workflows/demo.yaml @@ -0,0 +1,52 @@ +name: Deploy Demo to GitHub Pages + +on: + push: + branches: + - master + +jobs: + build-demo: + name: Build Demo + runs-on: ubuntu-22.04 + steps: + - name: Checkout + uses: actions/checkout@v6 + with: + fetch-depth: 0 + - name: Install pnpm + uses: pnpm/action-setup@v6 + with: + version: 11 + run_install: false + - name: Set-up Node + uses: actions/setup-node@v6 + with: + node-version: 24 + cache: 'pnpm' + - name: Install dependencies + run: pnpm install + - name: Build Demo + run: pnpm run docs + - name: Upload Build Artifact + uses: actions/upload-pages-artifact@v5 + with: + path: docs/ + + deploy-demo: + name: Deploy Demo + needs: build-demo + + permissions: + pages: write + id-token: write + + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + + runs-on: ubuntu-22.04 + steps: + - name: Deployment + id: deployment + uses: actions/deploy-pages@v5 \ No newline at end of file diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 2ae1e4e..2985014 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -17,7 +17,7 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v6 with: - version: 10 + version: 11 run_install: false - name: Set-up Node uses: actions/setup-node@v6 diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 72e0b78..3c58c15 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -15,7 +15,7 @@ jobs: - name: Install pnpm uses: pnpm/action-setup@v6 with: - version: 10 + version: 11 run_install: false - name: Set up Node.js uses: actions/setup-node@v6 @@ -26,6 +26,8 @@ jobs: run: pnpm install --ignore-scripts --prefer-offline - name: Linting files run: pnpm lint + - name: Test demo build + run: pnpm run docs - name: Unit tests run: pnpm test --coverage - name: Build coverage diff --git a/.gitignore b/.gitignore index 198fa6f..7ea5206 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ coverage/ /esm/ /web/ /index.d.ts -/index.js \ No newline at end of file +/index.js +/docs \ No newline at end of file diff --git a/docs/favicon.png b/docs/favicon.png deleted file mode 100644 index 1cd5aa1..0000000 Binary files a/docs/favicon.png and /dev/null differ diff --git a/docs/images/color-mixes.svg b/docs/images/color-mixes.svg deleted file mode 100644 index aa4cd36..0000000 --- a/docs/images/color-mixes.svg +++ /dev/null @@ -1,20 +0,0 @@ - \ No newline at end of file diff --git a/docs/images/logo.png b/docs/images/logo.png deleted file mode 100644 index e8c0298..0000000 Binary files a/docs/images/logo.png and /dev/null differ diff --git a/docs/images/logo.svg b/docs/images/logo.svg deleted file mode 100644 index 106516e..0000000 --- a/docs/images/logo.svg +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/docs/images/logo_white.svg b/docs/images/logo_white.svg deleted file mode 100644 index cbff8af..0000000 --- a/docs/images/logo_white.svg +++ /dev/null @@ -1,9 +0,0 @@ - \ No newline at end of file diff --git a/docs/images/wheel-additive.svg b/docs/images/wheel-additive.svg deleted file mode 100644 index 4502783..0000000 --- a/docs/images/wheel-additive.svg +++ /dev/null @@ -1,14 +0,0 @@ - diff --git a/docs/images/wheel-subtractive.svg b/docs/images/wheel-subtractive.svg deleted file mode 100644 index 3d9fa64..0000000 --- a/docs/images/wheel-subtractive.svg +++ /dev/null @@ -1,14 +0,0 @@ - diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index d850ace..0000000 --- a/docs/index.html +++ /dev/null @@ -1 +0,0 @@ -
=0;)b[q.charAt(f)]=m;m=m[1];q=""+m;i.hasOwnProperty(q)||(l.push(m),i[q]=r)}l.push(/[\\S\\s]/);e=j(l)})();var i=d.length;return h}function t(a){var d=[],h=[];a.tripleQuotedStrings?d.push(["str",/^(?:\'\'\'(?:[^\'\\\\]|\\\\[\\S\\s]|\'\'?(?=[^\']))*(?:\'\'\'|$)|"""(?:[^"\\\\]|\\\\[\\S\\s]|""?(?=[^"]))*(?:"""|$)|\'(?:[^\'\\\\]|\\\\[\\S\\s])*(?:\'|$)|"(?:[^"\\\\]|\\\\[\\S\\s])*(?:"|$))/,\nr,"\'\\""]):a.multiLineStrings?d.push(["str",/^(?:\'(?:[^\'\\\\]|\\\\[\\S\\s])*(?:\'|$)|"(?:[^"\\\\]|\\\\[\\S\\s])*(?:"|$)|`(?:[^\\\\`]|\\\\[\\S\\s])*(?:`|$))/,r,"\'\\"`"]):d.push(["str",/^(?:\'(?:[^\\n\\r\'\\\\]|\\\\.)*(?:\'|$)|"(?:[^\\n\\r"\\\\]|\\\\.)*(?:"|$))/,r,"\\"\'"]);a.verbatimStrings&&h.push(["str",/^@"(?:[^"]|"")*(?:"|$)/,r]);var b=a.hashComments;b&&(a.cStyleComments?(b>1?d.push(["com",/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,r,"#"]):d.push(["com",/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\\b|[^\\n\\r]*)/,\nr,"#"]),h.push(["str",/^<(?:(?:(?:\\.\\.\\/)*|\\/?)(?:[\\w-]+(?:\\/[\\w-]+)+)?[\\w-]+\\.h(?:h|pp|\\+\\+)?|[a-z]\\w*)>/,r])):d.push(["com",/^#[^\\n\\r]*/,r,"#"]));a.cStyleComments&&(h.push(["com",/^\\/\\/[^\\n\\r]*/,r]),h.push(["com",/^\\/\\*[\\S\\s]*?(?:\\*\\/|$)/,r]));if(b=a.regexLiterals){var e=(b=b>1?"":"\\n\\r")?".":"[\\\\S\\\\s]";h.push(["lang-regex",RegExp("^(?:^^\\\\.?|[+-]|[!=]=?=?|\\\\#|%=?|&&?=?|\\\\(|\\\\*=?|[+\\\\-]=|->|\\\\/=?|::?|<=?|>>?>?=?|,|;|\\\\?|@|\\\\[|~|{|\\\\^\\\\^?=?|\\\\|\\\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\\\s*("+\n("/(?=[^/*"+b+"])(?:[^/\\\\x5B\\\\x5C"+b+"]|\\\\x5C"+e+"|\\\\x5B(?:[^\\\\x5C\\\\x5D"+b+"]|\\\\x5C"+e+")*(?:\\\\x5D|$))+/")+")")])}(b=a.types)&&h.push(["typ",b]);b=(""+a.keywords).replace(/^ | $/g,"");b.length&&h.push(["kwd",RegExp("^(?:"+b.replace(/[\\s,]+/g,"|")+")\\\\b"),r]);d.push(["pln",/^\\s+/,r," \\r\\n\\t\\u00a0"]);b="^.[^\\\\s\\\\w.$@\'\\"`/\\\\\\\\]*";a.regexLiterals&&(b+="(?!s*/)");h.push(["lit",/^@[$_a-z][\\w$@]*/i,r],["typ",/^(?:[@_]?[A-Z]+[a-z][\\w$@]*|\\w+_t\\b)/,r],["pln",/^[$_a-z][\\w$@]*/i,r],["lit",/^(?:0x[\\da-f]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+-]?\\d+)?)[a-z]*/i,\nr,"0123456789"],["pln",/^\\\\[\\S\\s]?/,r],["pun",RegExp(b),r]);return C(d,h)}function z(a,d,h){function b(a){var c=a.nodeType;if(c==1&&!j.test(a.className))if("br"===a.nodeName)e(a),a.parentNode&&a.parentNode.removeChild(a);else for(a=a.firstChild;a;a=a.nextSibling)b(a);else if((c==3||c==4)&&h){var d=a.nodeValue,i=d.match(m);if(i)c=d.substring(0,i.index),a.nodeValue=c,(d=d.substring(i.index+i[0].length))&&a.parentNode.insertBefore(l.createTextNode(d),a.nextSibling),e(a),c||a.parentNode.removeChild(a)}}\nfunction e(a){function b(a,c){var d=c?a.cloneNode(!1):a,f=a.parentNode;if(f){var f=b(f,1),h=a.nextSibling;f.appendChild(d);for(var e=h;e;e=h)h=e.nextSibling,f.appendChild(e)}return d}for(;!a.nextSibling;)if(a=a.parentNode,!a)return;for(var a=b(a.nextSibling,0),d;(d=a.parentNode)&&d.nodeType===1;)a=d;c.push(a)}for(var j=/(?:^|\\s)nocode(?:\\s|$)/,m=/\\r\\n?|\\n/,l=a.ownerDocument,i=l.createElement("li");a.firstChild;)i.appendChild(a.firstChild);for(var c=[i],p=0;p