diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 13ac765..230dac2 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,5 +1,19 @@ -This project uses [JavaScript Standard Style](https://standardjs.com/). You can run `npm run lint` to check for errors. +# Contributing to licensezero.com + +## Licensing If you would like to submit a pull request, please be prepared to license your contributions under [Charity](https://licensezero.com/licenses/charity) terms, a modern evolution of licenses like MIT and the two-clause BSD license. +## Where do I...? + +Add a project to showcase: [`./content/showcase.json`](./content/showcse.json) + +Update a mention on `/thanks`: [`./content/thanks.json`](./content/thanks.json) + +## Style + +This project uses [JavaScript Standard Style](https://standardjs.com/). You can run `npm run lint` to check for errors. + +## Big Proposals + Before starting work on a potentially large or significant patch, please consider [opening an issue](https://github.com/licensezero/licensezero.com/issues/new) to discuss work you would like to do. Your input and contributions are _very_ welcome. I want to make sure you have the latest information on plans for development, before you spend significant time. diff --git a/content/showcase.json b/content/showcase.json new file mode 100644 index 0000000..7866269 --- /dev/null +++ b/content/showcase.json @@ -0,0 +1,16 @@ +[ + { + "name": "Caravaggio", + "url": "https://ramiel.gitlab.io/caravaggio/", + "image": "/caravaggio.jpg" + }, + { + "name": "Statiq", + "url": "https://github.com/statiqdev/Framework", + "image": "/statiq.png" + }, + { + "minimize": "diffs", + "note": "to add a new project, put it right above this object" + } +] diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index b857b80..af9a589 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -365,6 +365,11 @@ "es-abstract": "^1.7.0" } }, + "array-shuffle": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/array-shuffle/-/array-shuffle-1.0.1.tgz", + "integrity": "sha1-fqSIKjVrS8pfVF4LblLq9tlxVXo=" + }, "array-union": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/array-union/-/array-union-1.0.2.tgz", diff --git a/package.json b/package.json index 15bc079..5b1dd13 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,7 @@ "dependencies": { "ajv": "^6.10.2", "argon2": "^0.24.0", + "array-shuffle": "^1.0.1", "busboy": "^0.3.1", "commonform-commonmark": "^5.2.0", "commonform-html": "^3.2.0", diff --git a/routes/homepage.js b/routes/homepage.js index 871aeb9..66aa83c 100644 --- a/routes/homepage.js +++ b/routes/homepage.js @@ -1,10 +1,12 @@ var INSTALL = require('../content/one-line-install.json') +var arrayShuffle = require('array-shuffle') var escape = require('./escape') var footer = require('./partials/footer') var head = require('./partials/head') var header = require('./partials/header') var html = require('./html') var nav = require('./partials/nav') +var showcase = require('../content/showcase').reverse().slice(1) var LICENSOR = [ '# Set up for Anna, a developer in Texas.', @@ -82,6 +84,9 @@ ${head(false, {
License Zero is a new way to support open software developers.
+Contributors can choose from two new licenses, Parity and @@ -140,3 +145,16 @@ function formatSession (lines) { }) .join('\n') } + +function renderShowcase (entry) { + return ` +