The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/scripts/build_api_docs.sh

27 lines
729 B

#!/usr/bin/env bash
# abort if we get any error
set -e
# always make sure we have a clean workspace
if ! git diff-index --quiet HEAD --; then
echo -e "\033[91mgit workspace is dirty and contains changes\033[0"
echo -e "\033[91mmake sure you have a clean workspace before running this script\033[0m"
exit 1
fi
# building grafana packages
echo "bulding grafana packages..."
yarn packages:build
# extract packages api documentation json
echo "extracting packages documentation data..."
yarn packages:docsExtract
# generating api documentation markdown
echo "generating markdown from documentation data..."
yarn packages:docsToMarkdown
# cleaning packages
echo "cleaning up packages build files..."
lerna run clean