Skip to main content

A markdown link validation reporting tool.

Project description

PyPi Documentation Status Downloads

GitHub issues Contributing

markdown-checker is a markdown link validation reporting tool. It provides a couple of functions to validate relative paths and web URLs.

Installation

Install the package:

pip install markdown-checker

Documentation

1, 2, 3 - How To

  1. Run pip install markdown-checker.
  2. Run markdown-checker -d {src} -f {func} -gu {url}. Replace {src} with the directory you want to analyze, {func} with the available functions like check_broken_paths, {gu} with your contribution guidance full URL.
  3. The output will be displayed in the terminal and in a comment.md file.

For more customizations read the docs.

Using markdown-checker in GitHub Actions

You can run this tool within a GitHub workflow using the action-check-markdown GitHub action.

The action will automatically post the output of the tool to your GitHub pull request as a comment.

Usage

The library provides the following functions:

check_broken_paths

This function ensures that any relative path in your files are working.

Example:

markdown-checker -d . -f check_broken_paths -gu https://github.com/john0isaac/markdown-checker/blob/main/CONTRIBUTING.md

check_broken_urls

This function ensures that any web URL in your files is working and returning 200 status code.

Example:

markdown-checker -d . -f check_broken_urls -gu https://github.com/john0isaac/markdown-checker/blob/main/CONTRIBUTING.md

check_urls_locale

This function checks if country specific locale is present in URLs.

Example:

markdown-checker -d . -f check_urls_locale -gu https://github.com/john0isaac/markdown-checker/blob/main/CONTRIBUTING.md

check_paths_tracking

This function ensures that any relative path has tracking in it.

Example:

markdown-checker -d . -f check_paths_tracking -gu https://github.com/john0isaac/markdown-checker/blob/main/CONTRIBUTING.md

check_urls_tracking

This function ensures that any URL has tracking in it.

Example:

markdown-checker -d . -f check_urls_tracking -gu https://github.com/john0isaac/markdown-checker/blob/main/CONTRIBUTING.md

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

markdown_checker-0.2.2.tar.gz (15.2 kB view details)

Uploaded Source

Built Distribution

markdown_checker-0.2.2-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file markdown_checker-0.2.2.tar.gz.

File metadata

  • Download URL: markdown_checker-0.2.2.tar.gz
  • Upload date:
  • Size: 15.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for markdown_checker-0.2.2.tar.gz
Algorithm Hash digest
SHA256 1b35dbe244b74cbc762aec88ada27f70c9b683d4ad4da5c4f129da5da7aee67e
MD5 db44668ead57ea93a697a2a5f89d60b3
BLAKE2b-256 b5ddf3bf0fe814969d453aeecf3df81fcbcced2e1e572d8c058da0787367819e

See more details on using hashes here.

File details

Details for the file markdown_checker-0.2.2-py3-none-any.whl.

File metadata

File hashes

Hashes for markdown_checker-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3e7480ccb6349e8cb346427ef62d6fc5b51f400dac539ab499cd1f233b3355f6
MD5 05a916c437f1cad3948b15105c247000
BLAKE2b-256 c8c139f0c63ff6827155610f09cb6f183636b837371dad0e431f133f5005b0a8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page