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;
    • 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.

Example of options:

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

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.2.tar.gz (4.0 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.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for foliantcontrib_checksources-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8d6139881ecf7dd361f5c53a6e48f4e896560123b4a1095eae728df831d95e07
MD5 d0348d54ed94537edd4926369bb77565
BLAKE2b-256 cbc52933161badb74affcafed13c9fa2d010240162a260da3e551a21a9d8ce0f

See more details on using hashes here.

File details

Details for the file foliantcontrib.checksources-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for foliantcontrib.checksources-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 948a7dc7a3cc2f37d3e8a87f5aba2aece34d1878a3039bcaecec7bc27e43ea0d
MD5 6148a36e8820468881ce63b6823a2624
BLAKE2b-256 7767ee54431e329a064e01f5c723997fda14c3e400faf15429ee8497ce2f3b5b

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