Skip to main content

Foliant preprocessor that checks the project for missing and unmentioned files.

Project description

CheckSources

CheckSources is a preprocessor that checks the project’s chapters for missing and unmentioned files in the sources directory.

Installation

$ pip install foliantcontrib.checksources

Usage

To enable the preprocessor, add checksources to preprocessors section in the project config:

preprocessors:
    - checksources

Options

  • not_in_chapters – a list of files not mentioned in the the chapters. No warnings will be displayed for the specified files. This option is useful if you don't need to add some files to the table of contents.

  • strict_check – if a critical error is detected, the build will be failed after applying the preprocessor. Several checks are supported:

    • not_exist – checking the existence of the file. Checks if the file specified in chapters exists (enabled by default);
    • duplicate – checking for duplicate in the chapters.

    To disable strict check, use strict_check: false. And in order to enable all available checks, use strict_check: true.

  • disable_warnings – disabling the output of warnings, just like strict_check supports: not_exist and duplicate.

Example of options:

preprocessors:
    - checksources:
        not_in_chapters:
          - tags.md
        strict_check:
          - not_exist
        disable_warnings:
          - duplicate

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

foliantcontrib_checksources-1.0.3.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

foliantcontrib_checksources-1.0.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file foliantcontrib_checksources-1.0.3.tar.gz.

File metadata

File hashes

Hashes for foliantcontrib_checksources-1.0.3.tar.gz
Algorithm Hash digest
SHA256 e771eb3f4ce1c26fce128acbdf2a81902c73da455ba7e59f5340aa67176cddc2
MD5 bfedce3562c01f251462b2d8aeaae625
BLAKE2b-256 3458049b0a67ac76d536e17fd34b47b6a67ceffabb1722f46500ac8207f7559e

See more details on using hashes here.

File details

Details for the file foliantcontrib_checksources-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for foliantcontrib_checksources-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c8a7b83f931af1b62f6a3a80a9479d796851520fa5d601a730b43f3ad4b0a8e5
MD5 1c59844d84f3b4791ee7a606aa631fe9
BLAKE2b-256 90b6bf04bd35d35e040e288a1e3a53d976b35d236a9e5e7d927eea748d949b28

See more details on using hashes here.

Supported by

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