#!/bin/bash

for file in doc/api/*.yaml
do
  if [[ -f $file ]]; then
    swagger-markdown -i "$file"
  fi
done

for file in doc/api/*.md
do
  if [[ -f $file ]]; then
    doctoc "$file" --maxlevel 4 --title '**Table of Contents**'
  fi
done
