Skip to main content

Preprocessor for Foliant to remove excessive Markdown files before build.

Project description

RemoveExcess

RemoveExcess is a preprocessor that removes unnecessary Markdown files that are not mentioned in the project’s chapters, from the temporary working directory.

Installation

$ pip install foliantcontrib.removeexcess

Config

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

preprocessors:
    - removeexcess

The preprocessor has no options.

Usage

By default, all preprocessors are applied to each Markdown source file copied into the temporary working directory.

Often it’s needed not to include some files to the project’s chapters. But anyway, preprocessors will be applied to all source files, that will take extra time and may cause extra errors. Also, extra files may pass to backends that might be undesirable for security reasons.

When RemoveExcess preprocessor is enabled, unnecessary files will be deleted. Decide at your discretion to which place in the preprocessor queue to put it.

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.removeexcess-1.0.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

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

foliantcontrib.removeexcess-1.0.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file foliantcontrib.removeexcess-1.0.0.tar.gz.

File metadata

  • Download URL: foliantcontrib.removeexcess-1.0.0.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.11.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for foliantcontrib.removeexcess-1.0.0.tar.gz
Algorithm Hash digest
SHA256 45c0bafa9fd25d3d6f33f828134f9dd436c76060fcda142cb0cd0324f75d4b23
MD5 f05452406ed07c5ff291a6970b7d12c4
BLAKE2b-256 7917cea1174a15f8216b0ff59ac56a6ae6fcf08443a390328b12955575259c83

See more details on using hashes here.

File details

Details for the file foliantcontrib.removeexcess-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: foliantcontrib.removeexcess-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.11.1 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.8

File hashes

Hashes for foliantcontrib.removeexcess-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bbb8ff1e6527523c5b4d1836add2c41f78cebbe0a7f61a062ed81ef8c897f3f6
MD5 b80f8a480c259fe190b2807ed83b8b35
BLAKE2b-256 d9cf48f8a97dc140026d1c1c03543bc7e60bb901030c7f136e117df32914983e

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