Comments (6)
Do we know the list of allowed filetypes on MDN ?
Subsidiary question: Shouldn't we only use ressources inside of MDN to avoid 404 when the ressource provider doesn't provide the ressources anymore ?
from doc-linter-rules.
I think basically you need to check whether the URLs of resources use HTTPS and not HTTP. This isn't about file types or internal vs. external resources.
I.e. you just need to check the URL string, not do the request yourself (which would slow down the test suite, anyway).
Sebastian
from doc-linter-rules.
Do we know the list of allowed filetypes on MDN ?
After a night on it, it is unecessary, I agree.
Subsidiary question: Shouldn't we only use ressources inside of MDN to avoid 404 when the ressource provider doesn't provide the ressources anymore ?
Still stands, if we should be using internal ressources, I won't implement it the same way.
from doc-linter-rules.
And should this return an ERROR
, a WARNING
or an INFO
?
from doc-linter-rules.
I'm not sure whether there are cases where mixed content should be allowed. If so, it should be WARNING
, but I rather tend to ERROR
.
Sebastian
from doc-linter-rules.
I did a first attempt at a rule, it only checks images, I don't know if they are other sources of mixed content ?.
It triggers an ERROR
but this can be changed easily if needed.
from doc-linter-rules.
Related Issues (15)
- Remove compat macros from whitelist HOT 1
- Make rules l10n aware HOT 8
- New rule: Test if large images are in the content HOT 1
- New rule: Test on-site links to sections to see if they exist HOT 3
- New rule: language style HOT 3
- Rule fix: Summary even marked as error when it's not at the top of the page
- New rule: Add test for <pre> with class 'eval'
- New rule: Check whether two spaces are used as indentation in code samples
- Add count link to avoid duplicates URL HOT 4
- Pre without class: child elements are matched
- Document properly and check with Travis the process to add a rule
- CODE_OF_CONDUCT.md file missing
- Add a README HOT 1
- Change "lib" directory name to "rules"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doc-linter-rules.