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 hashes)

Uploaded Source

Built Distribution

Supported by

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