Docs: Fix additional typos

This commit is contained in:
Mykola Grymalyuk
2022-07-16 15:21:59 -06:00
parent 11bd7a4083
commit 3296a4a9da
8 changed files with 25 additions and 25 deletions

View File

@@ -2,8 +2,8 @@ from pathlib import Path
import subprocess
for i in [i for i in list(Path().resolve().glob("**/*.md")) if "node_modules" not in str(i.parent) and "_book" not in str(i.parent)]:
#bert = subprocess.run(['npx', 'markdown-link-check', '"' + str(i) + '"', '-c', '.markdownlinkcheck.json'], capture_output=True, shell=True, cwd=Path().resolve())
#bert = subprocess.run(['npx', 'markdown-link-check', '"' + str(i) + '"', '-c', '.markdownlinkcheck.json'], capture_output=True, shell=True, cwd=Path().resolve())
bert = subprocess.run('npx markdown-link-check "' + str(i) + '"', stdout=subprocess.PIPE, stderr=subprocess.STDOUT, shell=True, cwd=Path().resolve())
outpot = bert.stdout.decode().replace("\r", "").split("\n")
outpot = [i for i in outpot if ("FILE: " in i or " → Status: " in i) and " → Status: 429" not in i]
[print(i) for i in outpot]
output = bert.stdout.decode().replace("\r", "").split("\n")
output = [i for i in output if ("FILE: " in i or " → Status: " in i) and " → Status: 429" not in i]
[print(i) for i in output]