Skip to content

Commit d183b8e

Browse files
TC-MOhonzajavorek
authored andcommitted
fixes for vale
Fixed specific Apify rules & simplified them changes to .vale.ini, removed unnecessary regex patterns run vale sync to sync up with current version of packages
1 parent 394bd40 commit d183b8e

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

.github/styles/Apify/H1.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
extends: existence
22
message: 'Do not use H1 headings (#). The main title is generated automatically. Please use H2 (##) or lower.'
33
level: error
4-
scope: heading.h1
4+
scope: heading.h1
5+
tokens:
6+
- '.+'

.vale.ini

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ mdx = md
1212
[*.md]
1313
BasedOnStyles = Vale, Apify, write-good, Microsoft
1414
# Ignore URLs, HTML/XML tags, lines with =, emails, curly braces, inline code
15-
TokenIgnores = (<\/?[A-Z][^>]*>), ([^\n]+=[^\n]*), ([^\n]+@[^\n]+\.[^\n]), ({[^}]*}), `[^`]+`
15+
TokenIgnores = (<\/?[A-Z][^>]*>), ([^\n]+=[^\n]*), ([^\n]+@[^\n]+\.[^\n]), ({[^}]*})
1616
# Ignore HTML comments and Markdown code blocks
1717
BlockIgnores = (?s) (<!--.*?-->)|(```.*?```)
18-
Apify.H1 = error
19-
Apify.Apify = warning
20-
Apify.Capitalization = error
21-
Apify.Languages = warning
18+
19+
# Enable Apify specific rules
20+
Apify.H1 = YES
21+
Apify.Apify = YES
22+
Apify.Capitalization = YES
23+
Apify.Languages = YES
2224

2325
# Disabling rules (NO)
2426
Vale.Spelling = NO

sources/academy/webscraping/scraping_basics_javascript/crawling/finding_links.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ slug: /web-scraping-for-beginners/crawling/finding-links
77

88
import Example from '!!raw-loader!roa-loader!./finding_links.js';
99

10-
# Finding links {#finding-links}
11-
1210
**Learn what a link looks like in HTML and how to find and extract their URLs when web scraping using both DevTools and Node.js.**
1311

1412
---

sources/academy/webscraping/scraping_basics_javascript/crawling/index.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ category: courses
66
slug: /web-scraping-for-beginners/crawling
77
---
88

9-
# Basics of crawling {#basics}
10-
119
**Learn how to crawl the web with your scraper. How to extract links and URLs from web pages and how to manage the collected links to visit new pages.**
1210

1311
---

0 commit comments

Comments
 (0)