Skip to content

Commit d102e83

Browse files
authored
Merge pull request #1 from processing/master
merge master
2 parents 311b651 + eb2ddd6 commit d102e83

File tree

266 files changed

+17193
-14387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

266 files changed

+17193
-14387
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ node_modules
2424
.idea/
2525

2626
src/templates/pages/examples/*
27+
src/templates/pages/learn/index.hbs
28+
src/templates/pages/libraries/index.hbs
2729
src/offline-reference
2830
!src/templates/pages/examples/.gitkeep
2931
dist/*

Gruntfile.js

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ module.exports = function(grunt) {
2323
dist: 'dist'
2424
},
2525
exec: {
26-
build_examples: 'node <%= config.src %>/data/examples/build_examples/build.js <%= config.src %>/templates/pages/examples/'
26+
build_examples: 'node <%= config.src %>/data/examples/build_examples/build.js <%= config.src %>/templates/pages/examples/',
27+
build_libraries: 'node <%= config.src %>/data/libraries/build.js <%= config.src %>/templates/pages/libraries/',
28+
build_learn: 'node <%= config.src %>/data/learn/build.js <%= config.src %>/templates/pages/learn/'
2729
},
2830
watch: {
2931
assemble: {
@@ -316,6 +318,23 @@ module.exports = function(grunt) {
316318
src: ['**/*'],
317319
dest: 'p5-reference/'
318320
}
321+
},
322+
htmllint: {
323+
all: {
324+
src: ['<%= config.dist %>/**/*.html',
325+
'!<%= config.dist %>/es/**/*.html',
326+
'!<%= config.dist %>/zh-Hans/**/*.html',
327+
'!<%= config.dist %>/**/CHANGES.html',
328+
'!<%= config.dist %>/**/README.html',
329+
'!<%= config.dist %>/**/p5_featured/**/*.html',
330+
'!<%= config.dist %>/**/learn/*.html',
331+
'!<%= config.dist %>/**/examples/*.html'],
332+
options: {
333+
ignore: [/^This document appears to be written in English/,
334+
/^Bad value https:/,
335+
/^Consider adding a lang attribute to the html/]
336+
}
337+
}
319338
}
320339
});
321340

@@ -341,6 +360,7 @@ module.exports = function(grunt) {
341360
grunt.loadNpmTasks('grunt-file-append');
342361
grunt.loadNpmTasks('grunt-contrib-compress');
343362
grunt.loadNpmTasks('grunt-contrib-requirejs');
363+
grunt.loadNpmTasks('grunt-html');
344364

345365
// multi-tasks: collections of other tasks
346366
grunt.registerTask('server', [
@@ -368,7 +388,7 @@ module.exports = function(grunt) {
368388
require("./i18n.js")(done);
369389
});
370390

371-
// runs three tasks in order
391+
// runs tasks in order
372392
grunt.registerTask('build', [
373393
'update-version',
374394
'exec',
@@ -379,7 +399,8 @@ module.exports = function(grunt) {
379399
'optimize',
380400
'file_append',
381401
'compress',
382-
'i18n'
402+
'i18n',
403+
'htmllint'
383404
]);
384405

385406
// runs with just grunt command

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ We recognize all types of contributions. This project follows the [all-contribut
1212

1313
## Setup
1414

15-
0. Install [node.js](https://nodejs.org/en/download/).
16-
1. Download this repo as a [zip file](https://github.com/processing/p5.js-website/archive/master.zip) or [clone this repository](https://help.github.com/articles/cloning-a-repository/).
17-
2. Navigate to the `p5.js-website` directory in the terminal and type `npm install`.
15+
0. Ensure Java is installed. Not installed? Head over to https://java.oracle.com
16+
1. Install [node.js](https://nodejs.org/en/download/).
17+
2. Download this repo as a [zip file](https://github.com/processing/p5.js-website/archive/master.zip) or [clone this repository](https://help.github.com/articles/cloning-a-repository/).
18+
3. Navigate to the `p5.js-website` directory in the terminal and type `npm install`.
1819

1920
## Running
2021

0 commit comments

Comments
 (0)