Skip to main content

Squish multiple Pandoc-flavored Markdown files into one super squished document.

Project description

squishie

pipeline status coverage report pre-commit cici enabled code style: prettier

Squish multiple Pandoc-flavored Markdown files into one super squished document.

Installation

python3 -m pip install squishie

Usage

Create a directory with your Markdown files:

$ tree
.
├── doc1.md
└── doc2.md

0 directories, 2 files

Each Markdown file should have Pandoc-compatible front matter. For example, doc1.md has the following contents:

# doc1.md
---
title: Doc 1
---
This is some text.

Add a squishie document file to the directory:

# config.yaml
title: My squished document
version: "1.2.3"

sections:
  - file: doc1.md
  - file: doc2.md

Your directory should now look like this:

$ tree
.
├── squishie.yaml
├── doc1.md
└── doc2.md

0 directories, 2 files

Run squishie with the -c/--config option to render the final document:

squishie -c squishie.yaml
$ squishie -c squishie.yaml
---
title: My squished document
version: 1.2.3
---

# Doc 1

This is some text.

# Doc 2

This is different text.

Add the -o/--output option to write the output to a file:

squishie -c squishie.yaml -o my-squished-document.md

License

Copyright 2025 UL Research Institutes.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

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

squishie-0.2.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

squishie-0.2.0-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file squishie-0.2.0.tar.gz.

File metadata

  • Download URL: squishie-0.2.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for squishie-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a9d36d65b55d1c60fc1db1d1cbee515f1ca2da1e3cb616906d1d0fd723cd6958
MD5 c7caea54b2c3f41e4c65edd4d27801aa
BLAKE2b-256 6458e6714e54ce9012301ff46ba19c6a69d932dfbe9e54f88a5b6ba8a33e8423

See more details on using hashes here.

File details

Details for the file squishie-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: squishie-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for squishie-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ba344b2a8ef67cbfd98a9be87704a9cfb0fd502caff6204de4ac2880f21d198a
MD5 b2d56392ad9d2343681dc431c6cc23c2
BLAKE2b-256 2d6a650b700757e50b76299264f86038c151c8d783ff48eb6eac82bff06b5512

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