Metadata-Version: 2.1
Name: mkdocs-htmlproofer-plugin
Version: 0.6.0
Summary: A MkDocs plugin that validates URL in rendered HTML files
Home-page: https://github.com/manuzhang/mkdocs-htmlproofer-plugin
Author: Manu Zhang
Author-email: owenzhang1990@gmail.com
License: MIT
Description: # mkdocs-htmlproofer-plugin [![PyPI - Version](https://img.shields.io/pypi/v/mkdocs-htmlproofer-plugin.svg)](https://pypi.org/project/mkdocs-htmlproofer-plugin)
        
        [![GitHub Actions](https://github.com/manuzhang/mkdocs-htmlproofer-plugin/actions/workflows/ci.yml/badge.svg)](https://github.com/manuzhang/mkdocs-htmlproofer-plugin/actions/workflows/ci.yml)
        
        *A [MkDocs](https://www.mkdocs.org/) plugin that validates URLs, including anchors, in rendered html files*.
        
        ## Installation
        
        0. Prerequisites
        
        * Python >= 3.6
        * MkDocs >= 0.17
        
        1. Install the package with pip:
        
        ```bash
        pip install mkdocs-htmlproofer-plugin
        ```
        
        2. Enable the plugin in your `mkdocs.yml`:
        
        ```yaml
        plugins:
            - search
            - htmlproofer
        ```
        
        Optionally, you may raise error and fail the build on bad url status.
        
        ```yaml
        plugins:
            - search
            - htmlproofer:
                raise_error: True
        ```
        
        That can be switched off for combinations of urls (`'*'` means all urls) and status codes with `raise_error_excludes`.
        
        ```yaml
        plugins:
            - search
            - htmlproofer:
                raise_error: True
                raise_error_excludes: 
                  504: ['https://www.mkdocs.org/']
                  404: ['https://github.com/manuzhang/mkdocs-htmlproofer-plugin']
                  400: ['*']
        ```
        
        > **Note:** If you have no `plugins` entry in your config file yet, you'll likely also want to add the `search` plugin. MkDocs enables it by default if there is no `plugins` entry set, but now you have to enable it explicitly.
        
        To enable cross-page anchor validation, you must set `use_directory_urls = False` in `mkdocs.yml`:
        
        ```yaml
        use_directory_urls: False
        ```
        
        More information about plugins in the [MkDocs documentation](http://www.mkdocs.org/user-guide/plugins/)
        
        ## Acknowledgement
        
        This work is based on the [mkdocs-markdownextradata-plugin](https://github.com/rosscdh/mkdocs-markdownextradata-plugin) project and the [Finding and Fixing Website Link Rot with Python, BeautifulSoup and Requests](https://www.twilio.com/blog/2018/07/find-fix-website-link-rot-python-beautifulsoup-requests.html) article. 
        
Keywords: mkdocs python markdown
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Information Technology
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Requires-Python: >=3.6
Description-Content-Type: text/markdown
