Skip to content

Commit 25a922c

Browse files
authored
Merge pull request #334 from cs169/merge-golden-repo
Merge golden repo
2 parents c7b5809 + 42b3714 commit 25a922c

28 files changed

Lines changed: 532 additions & 264 deletions

.github/dependabot.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ updates:
33
- package-ecosystem: bundler
44
directory: "/"
55
schedule:
6-
interval: daily
7-
open-pull-requests-limit: 10
6+
interval: weekly
7+
open-pull-requests-limit: 5

.github/workflows/docs.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Docs Build
2+
3+
on:
4+
push:
5+
paths:
6+
- 'docs/**'
7+
pull_request:
8+
paths:
9+
- 'docs/**'
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
defaults:
16+
run:
17+
working-directory: docs
18+
steps:
19+
- uses: actions/checkout@v4
20+
21+
- name: Set up Ruby
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: '3.3'
25+
bundler-cache: true
26+
working-directory: docs
27+
28+
- name: Build Jekyll site
29+
run: bundle exec jekyll build --baseurl /flextensions
30+
env:
31+
JEKYLL_ENV: production
32+
PAGES_REPO_NWO: berkeley-cds/flextensions
33+
34+
- name: Check for broken internal links
35+
run: |
36+
# Verify all internal .html files were generated
37+
echo "Generated site files:"
38+
find _site -name '*.html' | sort
39+
echo ""
40+
echo "Checking for broken internal links..."
41+
# Extract internal href links and verify they resolve
42+
broken=0
43+
for file in $(find _site -name '*.html'); do
44+
# Extract href values pointing to /flextensions/ paths
45+
grep -oP 'href="(/flextensions/[^"]*)"' "$file" 2>/dev/null | while read -r match; do
46+
path=$(echo "$match" | grep -oP '"/flextensions/[^"]*"' | tr -d '"')
47+
# Convert URL path to file path
48+
local_path="_site${path#/flextensions}"
49+
# Check if it's a directory (index.html) or file
50+
if [ -d "$local_path" ] && [ -f "$local_path/index.html" ]; then
51+
continue
52+
elif [ -f "$local_path" ]; then
53+
continue
54+
elif [ -f "${local_path}.html" ]; then
55+
continue
56+
elif [ -f "${local_path%/}/index.html" ]; then
57+
continue
58+
else
59+
echo "::warning file=$file::Broken link: $path (resolved to $local_path)"
60+
broken=1
61+
fi
62+
done
63+
done
64+
if [ "$broken" -eq 1 ]; then
65+
echo "::warning::Some internal links may be broken. Check warnings above."
66+
fi

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,9 @@ yarn-debug.log*
8181
/config/credentials/production.key
8282

8383
.DS_Store
84+
85+
# Jekyll docs
86+
docs/_site/
87+
docs/.jekyll-cache/
88+
docs/.jekyll-metadata
89+
docs/Gemfile.lock

0 commit comments

Comments
 (0)