-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Linter and htmlproofer #41
Conversation
@@ -1,21 +0,0 @@ | |||
import os | |||
import sys |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please keep this file.
This script check images paths.
- Validate HTML5 | ||
|
||
```bash | ||
pip install html5validator |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add this into yarn as new target. Since we have yarn better we use it.
"prettier:setup": "yarn add prettier prettier-plugin-go-template --dev", | ||
"prettier": "prettier --write \"content/**/*.md\" \"layouts/**/*.html\"", | ||
"lint:md:setup": "gem install mdl", | ||
"lint:md": "mdl --style=.mdlrc.rb ./content", | ||
"lint:yml:setup": "pip install --upgrade yamllint", | ||
"lint:yml": "yamllint ./data ./content", | ||
"exif": "for i in $(find ./ -name node_modules -prune *.png -o -name *.gif -o -name *.jpg -o -name *.jpeg); do echo \"Processing $i\"; exiftool -all= \"$i\"; done" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better we keep this target
"htmlproofer:setup": "gem install html-proofer", | ||
"htmlproofer": "htmlproofer --swap-urls 'http\\://localhost\\:1313:' --ignore-status-codes 999,429 --enforce-https false --ignore-urls /cdn./,/discord.gg/,/t.me/,/x.com/,/github.com/,/ietf.org/ ./public", | ||
"htmlproofer:setup": "gem install html-proofer -v 4.3", | ||
"htmlproofer": "htmlproofer --swap-urls 'http://localhost:1313' --ignore-status-codes '999,429,403,0' --ignore-urls=/github.com/,/cdn./,/discord.gg/,/t.me/,/tools.ietf.org/,/www.googletagmanager.com/,/googletagmanager.com/ ./public", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why did you remove --enforce-https false
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's better to have all links HTTPS to prevent browser HTTP insecure error from our website.
Closing the PR, it is replace by #52 |
This PR aims to fix linter and htmlproofer