You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ms...@apache.org on 2020/06/09 13:56:10 UTC
[pdfbox-docs] 02/02: PDFBOX-4848: add check HTML validation
This is an automated email from the ASF dual-hosted git repository.
msahyoun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pdfbox-docs.git
commit 0289a66495f6d434f8d9ea3875329c2460a3ae1a
Author: Maruan Sahyoun <sa...@fileaffairs.de>
AuthorDate: Tue Jun 9 15:55:11 2020 +0200
PDFBOX-4848: add check HTML validation
---
.htmlvalidate.json | 9 +++++++++
package.json | 19 +++++++++++++++++++
2 files changed, 28 insertions(+)
diff --git a/.htmlvalidate.json b/.htmlvalidate.json
new file mode 100644
index 0000000..dc475d9
--- /dev/null
+++ b/.htmlvalidate.json
@@ -0,0 +1,9 @@
+{
+ "extends": [
+ "htmlvalidate:recommended"
+ ],
+ "rules": {
+ "no-inline-style": "off",
+ "no-trailing-whitespace": "off"
+ }
+ }
\ No newline at end of file
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..a3fb94c
--- /dev/null
+++ b/package.json
@@ -0,0 +1,19 @@
+{
+ "name": "pdfbox-docs",
+ "version": "1.0.0-SNAPSHOT",
+ "license": "Apache-2.0",
+ "repository": {
+ "type": "git",
+ "url": "https://gitbox.apache.org/repos/asf/pdfbox-docs.git"
+ },
+ "scripts": {
+ "build:noop": "echo \"Error: no test specified\" && exit 1",
+ "build": "run-s build:*",
+ "check:html": "html-validate 'staging/content/*/**/*.html'",
+ "checks": "run-s check:*"
+ },
+ "devDependencies": {
+ "html-validate": "^2.23.0",
+ "npm-run-all": "^4.1.5"
+ }
+}