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, usestrict_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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file foliantcontrib_checksources-1.0.2.tar.gz.
File metadata
- Download URL: foliantcontrib_checksources-1.0.2.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d6139881ecf7dd361f5c53a6e48f4e896560123b4a1095eae728df831d95e07
|
|
| MD5 |
d0348d54ed94537edd4926369bb77565
|
|
| BLAKE2b-256 |
cbc52933161badb74affcafed13c9fa2d010240162a260da3e551a21a9d8ce0f
|
File details
Details for the file foliantcontrib.checksources-1.0.2-py3-none-any.whl.
File metadata
- Download URL: foliantcontrib.checksources-1.0.2-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
948a7dc7a3cc2f37d3e8a87f5aba2aece34d1878a3039bcaecec7bc27e43ea0d
|
|
| MD5 |
6148a36e8820468881ce63b6823a2624
|
|
| BLAKE2b-256 |
7767ee54431e329a064e01f5c723997fda14c3e400faf15429ee8497ce2f3b5b
|