alpha
Login
or
Join now
flo-bit.dev
/
tiny-docs
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
[READ-ONLY] Mirror of https://github.com/flo-bit/tiny-docs. quick setup, simple, minimalistic docs for your github project
flo-bit.dev/tiny-docs/
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
test-17
author
Florian
date
9 months ago
(Oct 26, 2025, 9:30 PM +0100)
commit
0d6fce64
0d6fce64daa6c0003697191aab215c962b5605a2
parent
c166ba35
c166ba35fb533a65962b28bae8e5c266cfa9431f
+16
-15
1 changed file
Expand all
Collapse all
Unified
Split
.github
workflows
tiny-docs.yml
+16
-15
.github/workflows/tiny-docs.yml
View file
Reviewed
···
71
71
- name: Create docs/config.json if missing
72
72
shell: bash
73
73
run: |
74
74
-
set -euo pipefail
75
75
-
mkdir -p docs
76
76
-
if [ ! -f docs/config.json ]; then
77
77
-
cat > docs/config.json <<'JSON'
78
78
-
{
79
79
-
"site": "__SITE__",
80
80
-
"base": "__BASE__",
81
81
-
"name": "__NAME__"
82
82
-
}
83
83
-
JSON
84
84
-
sed -i "s|__SITE__|${{ steps.derive.outputs.site }}|g" docs/config.json
85
85
-
sed -i "s|__BASE__|${{ steps.derive.outputs.base }}|g" docs/config.json
86
86
-
sed -i "s|__NAME__|${{ steps.derive.outputs.name }}|g" docs/config.json
74
74
+
set -euo pipefail
75
75
+
mkdir -p docs
76
76
+
if [ ! -f docs/config.json ]; then
77
77
+
SITE='${{ steps.derive.outputs.site }}'
78
78
+
BASE='${{ steps.derive.outputs.base }}'
79
79
+
NAME='${{ steps.derive.outputs.name }}'
80
80
+
81
81
+
if command -v jq >/dev/null 2>&1; then
82
82
+
jq -n --arg site "$SITE" --arg base "$BASE" --arg name "$NAME" \
83
83
+
'{site:$site, base:$base, name:$name}' > docs/config.json
84
84
+
else
85
85
+
printf '{\n "site": "%s",\n "base": "%s",\n "name": "%s"\n}\n' \
86
86
+
"$SITE" "$BASE" "$NAME" > docs/config.json
87
87
+
fi
87
88
echo "Created docs/config.json"
88
88
-
else
89
89
+
else
89
90
echo "docs/config.json already exists; leaving it unchanged."
90
90
-
fi
91
91
+
fi
91
92
92
93
- name: Install, build, and upload the site artifact
93
94
uses: withastro/action@v3