#!/usr/bin/env bash

mkdir -p dist

# Concatenate all files (enforce newline between files)
cut -b 1- docs/_* docs/{1..5}_* docs/Detailinformationen/*.md > dist/docs.bundled.md
# Add additional newlines before each heading (to avoid issues when, e.g., a table is followed by a heading)
sed -i 's/^#/\n\n#/g' dist/docs.bundled.md
