-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 📦 ci(formatter.yml): added workflow to lint and format code on push * 📝 docs(readme.md): fixed attributions * 📝 docs(navbar.njk): vavbar now changges flex direction on large screens * 🧹 chore(docs): added more fields to the index.html file and added docsify plugins * 🧹 chore(docs): modified the docs source files and assets added favicons and progressive web app support. added docsify plugins. imporoved folder structure and overall seo * ✨ feat(sortby): refactored the module to have only one function (feat #190) all the smaller functions have been merged into one function which can be switched through specifying the type of factor to use. not yet tested but looks stable enough for a commit BREAKING CHANGE: The against and colorspace parameters are now specified as options. the function takes a string or the factor as the first argument instead of a collection feat #190 * ✨ feat(filterby): merged all the sub functionas into one function (feat #190) all sub functions are now accessible via specifying the factor to use as a filtering criteria BREAKING CHANGE: this function takes a string as the first argument now and factor specific parameters are now accessible as options on the second call which takes the collection feat #190 * ✨ feat(stats): merged all stats functions into one function (feat #191) all previous functions that returned the smallest/largest factor from collections and other similar related functionality are now under one function that simply returns an object with all the stats in a more compact way BREAKING CHANGE: there's no more getFarthestHue or similar functions. all factors about a collection asre now being returned at once instead of redundantly pilling up function calls you can just get the data you need from a single object feat #191 * 📈 perf(helpers): improved collection detection during mapping (feat: #193) feat: #193 * 🧹 chore(src): split all modules into single exports for easier debugging, testing and maintenance * 🧹 chore(wrappers.js): fixed broken imports * 🧹 chore: fixed broken imports,cleaned documentation file structure and updated files in configs * 🧹 chore: fixed types output * 📦 ci: readded build scripts to docs * ✨ feat(achromatic.js): achromatic now checks if a color is gray by comparing rgb channel values * ♻️ refactor(achromatic.js): created small helper for checking falsy cases on l and c channels * 🧹 chore(alpha.js): proofread the documentation and removed the default parameter for color * 🧹 chore(colors.js): updated the documentation * ✨ feat(complimentary.js): removed the colorspace parameter. now uses jch by default * 🧹 chore(lightness.js): refacored darken and brighten by extracting a base function * 🧹 chore(deficiency.js): updated documentation and made the kind parameter case insensitive * 🧹 chore(discover.js): updated the documentation * 🧹 chore(earthtone.js): fixed the documentation * 🧹 chore(family.js): fixed the documentation * 🧹 chore(filterby.js): updated the documentation and made the factor parameter case insensitive * 🧹 chore(get.js): updated the documentation * 🧹 chore(hueshift.js): updated the documentation * 🧹 chore(index.js): updated library exports * ✨ feat: simplified all parameter signatures All functions that can take an overrides or options object now take them as a single object. * 🧹 chore(wrappers.js): fixed class methods by updating docs and related functions * chore: release 3.0.0 release-as: 3.0.0 * 📦 ci(wiki-sync.yml): added workflow for synchronising wiki source docs with direct wiki edits * 🐛 fix(src): removed incorrect incorrect invocation of token() which caused type rrors * ✨ feat(achromatic.js): check for achromatic colors using the rgb colorspace * 🧪 test(spec): refactored tests to match the new api * 🧹 chore(mc.js): found missing else clause making the function return undefined * 🧹 chore: simplified codebase and fixed a lot of bugs * 📝 docs(achromatic.js): fixed documentation
- Loading branch information
Showing
357 changed files
with
16,828 additions
and
49,772 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
on: push | ||
name: Lint and format code | ||
|
||
permissions: | ||
contents: write | ||
|
||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Lint and format | ||
uses: MarvinJWendt/run-node-formatter@stable | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_PAT }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,18 +13,15 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Install and Build | ||
if: github.event.action != 'closed' # skips build step if pr is closed | ||
|
||
run: | | ||
npm install | ||
- run: | | ||
npm i | ||
npm run docs | ||
cd docs/assets && npm install && npm run deploy | ||
- name: Deploy PR Preview | ||
uses: rossjrw/[email protected] | ||
|
||
with: | ||
token: ${{secrets.GH_PAT}} | ||
preview-branch: gh-pages | ||
source-dir: docs/www | ||
source-dir: docs | ||
umbrella-dir: docs/pr-preview | ||
action: auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: Wiki update and sync | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- '.github/wiki/**' | ||
repository_dispatch: | ||
types: [docs] | ||
gollum: | ||
|
||
permissions: | ||
contents: write | ||
|
||
env: | ||
GIT_AUTHOR_NAME: Wikibot | ||
|
||
jobs: | ||
sync-docs-to-wiki: | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'gollum' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Sync docs to wiki | ||
uses: newrelic/wiki-sync-action@main | ||
with: | ||
source: ./github/wiki | ||
destination: wiki | ||
token: ${{secrets.GH_PAT}} | ||
gitAuthorName: ${{env.GIT_AUTHOR_NAME}} | ||
|
||
sync-wiki-to-docs: | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'gollum' | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{secrets.GH_PAT}} | ||
ref: main | ||
- name: Sync wiki to docs | ||
uses: newrelic/wiki-sync-action@main | ||
with: | ||
source: wiki | ||
destination: ./github/wiki | ||
token: ${{secrets.GH_PAT}} | ||
gitAuthorName: ${{env.GIT_AUTHOR_NAME}} | ||
branch: main |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.