mirror of
https://github.com/SigNoz/signoz.git
synced 2026-03-16 01:42:45 +00:00
Some checks failed
build-staging / staging (push) Has been cancelled
build-staging / prepare (push) Has been cancelled
build-staging / js-build (push) Has been cancelled
build-staging / go-build (push) Has been cancelled
Release Drafter / update_release_draft (push) Has been cancelled
14 lines
393 B
Bash
Executable File
14 lines
393 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Extracts unique fenced code block language identifiers from all .md files under frontend/src/
|
|
# Usage: bash frontend/scripts/extract-md-languages.sh
|
|
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
SRC_DIR="$SCRIPT_DIR/../src"
|
|
|
|
grep -roh '```[a-zA-Z0-9_+-]*' "$SRC_DIR" --include='*.md' \
|
|
| sed 's/^```//' \
|
|
| grep -v '^$' \
|
|
| sort -u
|