Skip to content

Commit b3645b7

Browse files
committed
chore: add semicolons and simplify
1 parent bf28a7a commit b3645b7

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/bin/bash
2+
3+
# Initialize the graph
4+
echo "graph TD" > obsidian_graph.mmd
5+
6+
# Loop through all markdown files in the directory
7+
for file in *.md; do
8+
# Extract the title of the markdown file (assuming it's the first line)
9+
title=$(head -n 1 "$file" | sed 's/# //')
10+
11+
# Extract all markdown links from the file
12+
grep -o '\[.*\](.*\.md)' "$file" | sed -E 's/\[.*\]\((.*)\.md\)/\1/' | while read -r link; do
13+
echo "$file"
14+
# Add the link to the graph
15+
echo "\"$title\" --> \"$link\"" >> obsidian_graph.mmd
16+
done
17+
done
18+
19+
echo "Obsidian-style graph generated in obsidian_graph.mmd"

measuring/use_gqm.md

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@ Use Goals Questions, and Metrics
22
=============================
33

44
{% mermaid %}
5-
graph LR
6-
reduce-duplication[Reduce Duplication] --> who-uses[Who Uses]
7-
8-
click reduce-duplication "./goals/reduce-duplication.md" "We can see how many times an InnerSource project is reused. If there is extra information attached to that usage (like which business unit is the user) then we can see how widely across the company an InnerSource project is used."
9-
10-
who-uses --> usage-count[Usage Count]
11-
usage-count --> reduce-duplication[Reduce Duplication]
5+
graph LR;
6+
reduce-duplication[Reduce Duplication] --> who-uses[Who Uses];
7+
who-uses --> usage-count[Usage Count];
8+
usage-count --> reduce-duplication[Reduce Duplication];
129
{% endmermaid %}

0 commit comments

Comments
 (0)