georgemandis / konami-js

Adding the Konami Code easter egg to your projects since 2009! Compatible with gestures on smartphones and tablets as well. Compatible with all front-end frameworks and vanilla JavaScript
http://konamijs.mand.is/
MIT License
957 stars 121 forks source link

Create better examples and tutorials #50

Closed georgemandis closed 2 years ago

georgemandis commented 5 years ago

When version 2.0 (#44) comes out the "Getting Started" instructions for Konami-JS will have to change. I like that the new version will integrate better with modern toolchains and processes, but I don't want to lose the ability for anyone to copy-and-paste a couple lines of code to stick it on their blog.

I'd like new examples to link to CDN-hosted versions of Konami-JS at unpkg.com. The the code will need to be written so that a distribution-ready version of konami.js is accessible via npm. That touches on the discussion of build-tools and bundlers (#48) to some degree.

Here are some example ideas listed under "Coming Soon!" on the current GitHub-hosted site:

DavideCarvalho commented 5 years ago

Since Konami it's a small library, I don't think a documentation with Docusaurus or any other tool like this is necessary. Maybe a Wiki should do the trick.

georgemandis commented 5 years ago

Agreed. A Wiki would do fine, but seeing as lot of beginning developers end up finding and playing with the library I'd like to make more thorough demos for the GitHub page. Copy-and-paste examples for common uses cases and questions I've received over the years. Things like:

That's all beyond the realm of basic API documentation, but I like the idea of providing these sort of examples, especially for newcomers.