Comments (6)
I think that this shouldn't really be part of the linter. 🤔 Especially as the linter runs every time a new page is added (or a PR is merged), we might be spamming a lot of sites. 😬
from tldr-lint.
This issue may be closed by tldr-pages/tldr#12506
from tldr-lint.
Can you explain a bit about how we could implement it in Linter?
Would you ping the page's links to check if it is reachable? Or is there something we can use natively?
from tldr-lint.
We could use wget to do something like this:
LINK_OF_INTEREST=$(awk 'NR==3{print $3}' file.md)
TOTAL_TIME=$(wget --page-requisites --output-document /dev/null "$LINK_OF_INTEREST" 2>&1 | grep -oE 'Total wall clock time: [0-9.]+s' | grep -oE '[0-9.]+')
if [ "$(echo "$TOTAL_TIME < 1" | bc -l)" -eq 1 ]; then
echo "Total time is below 1 second"
else
echo "Total time is 1 second or more"
fi
from tldr-lint.
I get that! Maybe we can create a script that run's once a month to report any broken links?
from tldr-lint.
I think that this shouldn't really be part of the linter. 🤔 Especially as the linter runs every time a new page is added (or a PR is merged), we might be spamming a lot of sites. 😬
This is exactly what I thought too as we document lesser-known tools too, we might be stressing their servers by sending multiple requests at a time if it got included in the linter.
from tldr-lint.
Related Issues (20)
- fenced code blocks are incorrectly treated as inline code HOT 6
- Add Windows to the CI testing matrix
- Add test for warning for description line that ends with colon or comma HOT 1
- Warn when several adjecent placeholders with different suffix numbers are used HOT 1
- Suggestion: Rewrite all JS code to TypeScript HOT 1
- Incorrect line number reported HOT 1
- Change license to GNU GPL to be able publish Emacs extension HOT 4
- Reconfigure stale-bot GitHub action HOT 6
- New linter error if you reference a non-existing TLDR-page HOT 5
- New linter error if the page isn’t in one of the supported platforms HOT 1
- New linter error if the page in a different language doesn’t exist in English HOT 5
- New linter error if the filename doesn’t match the command on line 1 HOT 7
- New linter error if the more information URL ends in '/' HOT 3
- New linter error if, in the command example, there is a leading or trailing space HOT 3
- New linter error if there is a command example with no text inside it HOT 2
- New linter error if "Note" in description has different capitalization like "NOTE" or "note"
- Example descriptions are incorrectly linted as being in non-infinitive form
- New linter error if there is a hyphen character (‐, code point U+2010) HOT 2
- New linter error if stdin, stderr or stdout are not surrounded by backticks
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 tldr-lint.