Skip to content

Commit 84a8e7c

Browse files
committed
lint: some fixes
1 parent f41eab6 commit 84a8e7c

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

.github/scripts/docs/create-jekyll-config.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,13 @@ table {
141141
width: 100%;
142142
margin-bottom: 1rem;
143143
border-collapse: collapse;
144-
144+
145145
th, td {
146146
padding: 0.75rem;
147147
vertical-align: top;
148148
border: 1px solid #e3e3e3;
149149
}
150-
150+
151151
th {
152152
background-color: #f5f5f5;
153153
}
@@ -162,4 +162,4 @@ table {
162162
}
163163
EOF
164164

165-
echo "✅ Jekyll configuration files created successfully!"
165+
echo "✅ Jekyll configuration files created successfully!"

.github/scripts/docs/fix-schema-links.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ find "$BASE_DIR" -type f -name "*.md" | while read file; do
2424
# === Fix all .md links to match Jekyll's pretty permalinks ===
2525
sed "${SED_INPLACE[@]}" -E 's|\[([^]]+)\]\(([^)]+)\.md(#[^)]+)?\)|\[\1\]\(/forms-engine-plugin/\2\3\)|g' "$file"
2626
sed "${SED_INPLACE[@]}" -E 's|\[([^]]+)\]\(([^)]+)\.md\)|\[\1\]\(/forms-engine-plugin/\2\)|g' "$file"
27-
27+
2828
# === Specific handling for schema files ===
2929
if [[ "$file" == *"/schemas/"* ]]; then
3030
if grep -q "^---" "$file" && ! grep -q "parent:" "$file" && [[ "$file" != *"/schemas/index.md" ]]; then
@@ -36,7 +36,7 @@ parent: SCHEMA REFERENCE' "$file"
3636
if grep -q "parent: Schema Reference" "$file"; then
3737
sed "${SED_INPLACE[@]}" 's/parent: Schema Reference/parent: SCHEMA REFERENCE/g' "$file"
3838
fi
39-
39+
4040
# Fix common schema reference patterns
4141
sed "${SED_INPLACE[@]}" -E 's/\[([^\]]+)\]\(([a-zA-Z0-9_-]+-schema[a-zA-Z0-9_-]*)(\.md)?\)/[\1](\2)/g' "$file"
4242
sed "${SED_INPLACE[@]}" -E 's/\[([^\]]+)\]\(([a-zA-Z0-9_-]+-schema-[a-zA-Z0-9_-]*)(\.md)?\)/[\1](\2)/g' "$file"
@@ -98,11 +98,11 @@ echo "🔧 Special handling for files with code examples..."
9898
for special_file in "./features/configuration-based/PAGE_TEMPLATES.md" "./CONTRIBUTING.md"; do
9999
if [ -f "$special_file" ]; then
100100
echo " Processing special file: $special_file"
101-
101+
102102
# Create a temporary file
103103
temp_file="${special_file}.tmp"
104104
> "$temp_file" # Create empty temporary file
105-
105+
106106
# Process the file line-by-line, tracking if we're in a code block
107107
in_code_block=false
108108
while IFS= read -r line; do
@@ -124,7 +124,7 @@ for special_file in "./features/configuration-based/PAGE_TEMPLATES.md" "./CONTRI
124124
echo "$fixed_line" >> "$temp_file"
125125
fi
126126
done < "$special_file"
127-
127+
128128
# Replace original with fixed version
129129
mv "$temp_file" "$special_file"
130130
fi
@@ -172,14 +172,14 @@ done
172172
if [ -f "./schemas/README.md" ] && [ ! -f "./schemas/index.md" ]; then
173173
echo "📝 Creating schemas/index.md from README.md..."
174174
cp "./schemas/README.md" "./schemas/index.md"
175-
175+
176176
sed "${SED_INPLACE[@]}" '/^---/,/^---/d' "./schemas/index.md"
177177

178178
# Add new front matter
179179
front_matter="---\nlayout: default\ntitle: SCHEMA REFERENCE\nnav_order: 5\nhas_children: true\npermalink: /schemas/\n---\n\n"
180180
sed "${SED_INPLACE[@]}" "1s/^/$front_matter/" "./schemas/index.md"
181-
181+
182182
echo "✅ Created schemas/index.md with proper front matter"
183183
fi
184184

185-
echo "✅ All schema links fixed and documentation prepared!"
185+
echo "✅ All schema links fixed and documentation prepared!"

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ jobs:
196196
uses: actions/upload-pages-artifact@v3
197197
with:
198198
path: './docs-site'
199-
199+
200200
- name: Deploy to GitHub Pages
201201
id: deployment
202202
uses: actions/deploy-pages@v4

.github/workflows/test-docs-generation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,4 +224,4 @@ jobs:
224224
echo "✅ Updated baseurl in _config.yml"
225225
else
226226
echo "✅ baseurl already correctly configured"
227-
fi
227+
fi

0 commit comments

Comments
 (0)