Skip to content
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

Closed
wants to merge 4 commits into from
Closed

Conversation

alidevjimmy
Copy link
Contributor

This PR aims to fix linter and htmlproofer

@alidevjimmy alidevjimmy requested a review from b00f October 18, 2024 06:23
@@ -1,21 +0,0 @@
import os
import sys
Copy link
Contributor

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
Copy link
Contributor

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"
Copy link
Contributor

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",
Copy link
Contributor

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 ?

Copy link
Contributor Author

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.

@b00f
Copy link
Contributor

b00f commented Oct 21, 2024

Closing the PR, it is replace by #52

@b00f b00f closed this Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants