#!/usr/bin/env bash #------------------------------------------------------------------------------ # @file # Verifies heading structure across the site. # # Every Markdown file under content/en must not contain a level 1, level 5, # or level 6 heading. In addition, every Markdown file within the # directories listed in the sections array in the main function below, # excluding _index.md files and the paths listed in the exclusions array, # must contain exactly two level 2 headings, in this order: "Usage" and # "Examples". Reports one error message per file per check that does not # comply. #------------------------------------------------------------------------------ #------------------------------------------------------------------------------ # @function # Displays usage message. # # @return string $msg # The usage message. #------------------------------------------------------------------------------ usage() { declare msg msg=$(cat <