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

WS-6311 Added markdown link check action #51

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/documentation-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,28 @@ jobs:
with:
args: '**/*.md'
fix: true
- name: Create markdown-link-check config file
run: |
cat > .mlc_config.json << EOF
{
"ignorePatterns": [
{
"pattern": "^Parser.md"
},
{
"pattern": "^Selectors/Link%20Selector.md"
},
{
"pattern": "^https://regexr.com/"
}
]
}
EOF
- name: Markdown link check
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: '.mlc_config.json'
folder-path: '.'
max-depth: -1
6 changes: 3 additions & 3 deletions docs/CSS selector.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ For example: `.shadow-root-parent-element:shadow-root .selector-within-shadow-ro
* [How to select elements that don’t contain specific text]
* [How to select elements that don’t have a specific element]

[css-selectors-wikipedia]: http://en.wikipedia.org/wiki/Cascading_Style_Sheets#Selector
[css-selectors-jquery]: http://api.jquery.com/category/selectors/
[w3schools-css-selector-reference]: http://www.w3schools.com/cssref/css_selectors.asp
[css-selectors-wikipedia]: https://en.wikipedia.org/wiki/Cascading_Style_Sheets#Selector
[css-selectors-jquery]: https://api.jquery.com/category/selectors/
[w3schools-css-selector-reference]: https://www.w3schools.com/cssref/css_selectors.asp
[How to select elements that contain specific text]: https://www.webscraper.io/how-to-video/jquery-contains-selector
[How to select elements that have a specific element]: https://www.webscraper.io/how-to-video/jquery-has-selector
[How to select elements that don’t contain specific text]: https://www.webscraper.io/how-to-video/jquery-not-contains-selector
Expand Down
24 changes: 12 additions & 12 deletions docs/Scraping a site.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,25 @@ definition - `[1-100]`. If the site uses zero padding in urls then add zero
padding to the range definition - `[001-100]`. If you want to skip some urls
then you can also specify incremental like this `[0-100:10]`.

Use range url like this `http://example.com/page/[1-3]` for links like these:
Use range url like this `https://example.com/page/[1-3]` for links like these:

* `http://example.com/page/1`
* `http://example.com/page/2`
* `http://example.com/page/3`
* `https://example.com/page/1`
* `https://example.com/page/2`
* `https://example.com/page/3`

Use range url with zero padding like this `http://example.com/page/[001-100]`
Use range url with zero padding like this `https://example.com/page/[001-100]`
for links like these:

* `http://example.com/page/001`
* `http://example.com/page/002`
* `http://example.com/page/003`
* `https://example.com/page/001`
* `https://example.com/page/002`
* `https://example.com/page/003`

Use range url with increment like this `http://example.com/page/[0-100:10]` for
Use range url with increment like this `https://example.com/page/[0-100:10]` for
links like these:

* `http://example.com/page/0`
* `http://example.com/page/10`
* `http://example.com/page/20`
* `https://example.com/page/0`
* `https://example.com/page/10`
* `https://example.com/page/20`

## Create selectors

Expand Down
2 changes: 1 addition & 1 deletion docs/Selectors/Text selector.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ attribute should be checked because you will be extracting multiple records.

* [How to scrape multiple items within a listings page]

[regex-site]: http://www.regexr.com/
[regex-site]: https://www.regexr.com/
[text-selector-multiple-single-text-selectors-in-one-page]: ../images/selectors/text/text-selector-multiple-single-text-selectors-in-one-page.png?raw=true
[text-selector-multiple-elements-with-text-selectors]: ../images/selectors/text/text-selector-multiple-elements-with-text-selectors.png?raw=true
[text-selector-multiple-per-page]: ../images/selectors/text/text-selector-multiple-per-page.png?raw=true
Expand Down
2 changes: 1 addition & 1 deletion docs/Webhooks/example-handler.code.PHP on the fly.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// continue working on it. This speeds up notification delivery on web scraper
// part and the script won't be stopped after web scraper closes connection.
// More information here:
// http://stackoverflow.com/questions/15273570/continue-processing-php-after-sending-http-response
// https://stackoverflow.com/questions/15273570/continue-processing-php-after-sending-http-response
ignore_user_abort(true);
header('Connection: close');
header('Content-Length: '.ob_get_length());
Expand Down
2 changes: 1 addition & 1 deletion docs/images/cloud/sitemap-sync/not-synced.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/images/cloud/sitemap-sync/sync-cloud.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/images/cloud/sitemap-sync/sync-extension.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/images/cloud/sitemap-sync/synced.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions docs/images/store-logo-sources.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
http://jsfiddle.net/t8Sgq/
http://jsfiddle.net/qpVkY/
https://jsfiddle.net/t8Sgq/
https://jsfiddle.net/qpVkY/
Loading