Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
258507b7
Commit
258507b7
authored
7 years ago
by
Bardi Harborow
Committed by
XhmikosR
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Move from htmllint to Travis-only vnu.jar.
parent
5e7a9afe
8 merge requests
!28721
Hot test
,
!27561
Adds font-weight-medium to font weight classes
,
!25494
web pack
,
!25326
Adjust examples
,
!24514
V4 dev xmr eslint
,
!24390
1
,
!23207
#22402 : modal: new autofocus & keyboardBtnNav options
,
!17021
v4
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.travis.yml
+1
-0
.travis.yml
build/.htmllintrc
+0
-19
build/.htmllintrc
build/htmllint.js
+23
-0
build/htmllint.js
package.json
+1
-1
package.json
with
25 additions
and
20 deletions
+25
-20
.travis.yml
+
1
-
0
View file @
258507b7
...
...
@@ -11,6 +11,7 @@ before_install:
install
:
-
bundle install --deployment --jobs=3 --retry=3
-
npm install
-
curl -L https://github.com/validator/validator/releases/download/17.9.0/vnu.jar_17.9.0.zip | jar -x dist/vnu.jar && mv dist/vnu.jar vnu.jar
after_success
:
-
if [ "$TRAVIS_REPO_SLUG" = twbs-savage/bootstrap ]; then npm run docs-upload-preview; fi
stages
:
...
...
This diff is collapsed.
Click to expand it.
build/.htmllintrc
deleted
100644 → 0
+
0
-
19
View file @
5e7a9afe
{
"attr-bans": ["align", "background", "bgcolor", "border", "frameborder", "longdesc", "marginwidth", "marginheight", "scrolling"],
"attr-name-style": false,
"attr-no-unsafe-char": false,
"class-style": "dash",
"doctype-first": true,
"doctype-html5": true,
"fig-req-figcaption": false,
"html-valid-content-model": false,
"id-class-ignore-regex": "(onclick|content|[a-z]+([A-Z][a-z])+)",
"id-class-style": "dash",
"img-req-src": false,
"img-req-alt": false,
"indent-style": "spaces",
"indent-width": 2,
"spec-char-escape": false,
"tag-bans": ["b", "i"],
"title-max-len": false
}
This diff is collapsed.
Click to expand it.
build/htmllint.js
0 → 100644
+
23
-
0
View file @
258507b7
'
use strict
'
const
childProcess
=
require
(
'
child_process
'
)
const
fs
=
require
(
'
fs
'
)
if
(
fs
.
existsSync
(
'
vnu.jar
'
))
{
childProcess
.
exec
(
'
java -version
'
,
function
(
error
)
{
if
(
error
)
{
console
.
error
(
'
skipping HTML lint test. java missing.
'
)
return
}
const
vnu
=
childProcess
.
spawn
(
'
java
'
,
[
'
-jar
'
,
'
vnu.jar
'
,
'
--skip-non-html
'
,
'
_gh_pages/
'
],
{
stdio
:
'
inherit
'
}
)
vnu
.
on
(
'
exit
'
,
process
.
exit
)
})
}
else
{
console
.
error
(
'
skipping HTML lint test. vnu.jar missing.
'
)
}
This diff is collapsed.
Click to expand it.
package.json
+
1
-
1
View file @
258507b7
...
...
@@ -49,7 +49,7 @@
"docs-compile"
:
"bundle exec jekyll build"
,
"postdocs-compile"
:
"npm run docs-workbox-precache"
,
"docs-github"
:
"shx echo
\"
github: true
\"
> twbsconfig.yml && npm run docs-compile -- --config _config.yml,twbsconfig.yml && shx rm ./twbsconfig.yml"
,
"docs-lint"
:
"
htmllint --rc
build/
.
htmllint
rc
\"
_gh_pages/**/*.html
\"
\"
js/tests/**/*.html
\"
"
,
"docs-lint"
:
"
node
build/htmllint
.js
"
,
"docs-serve"
:
"bundle exec jekyll serve"
,
"docs-upload-preview"
:
"build/upload-preview.sh"
,
"docs-workbox-precache"
:
"node build/workbox.js"
,
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets