#!/bin/bash set -o errexit -o nounset -o pipefail command -v shellcheck >/dev/null && shellcheck "$0" version="latest" out_dir="./docs_deployment" assets_dir="$out_dir/assets" index="$out_dir/index.html" [ -d "$out_dir" ] && rm -r "$out_dir" mkdir -p "$out_dir" # assets mkdir -p "$assets_dir" cp docs/cosmjs-tree.png "$assets_dir" { echo '

CosmJS documentation

' echo '

CosmJS is a modular library consisting of multiple packages that are organized like this:

' echo '

CosmJS dependency graph

' echo '

Package documentation

' echo '

The following packages can be used as libraries.

' echo '' echo '
' echo '' } >>"$index"