Skip to content

Commit 7167f16

Browse files
meaningfoolclaude
andauthored
Add Git submodule content management system (#1)
* Add meaningfool-writing content submodule * Configure site to use content from writing submodule - Updated content collections to include writing collection - Modified pages to use writing collection instead of articles - Updated ArticlesList component for new collection type - Restructured content repository for clean URL structure * Add Playwright test screenshots documenting submodule functionality - Screenshot of homepage showing articles from submodule - Screenshot of individual article page rendering correctly - Confirms submodule content integration is working properly 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> * Add automated submodule workflow and update deployment - Add update-content.yml for automated submodule updates - Update deploy.yml to include recursive submodules - Enables GitHub Pages to properly build with submodule content --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 1d3df3c commit 7167f16

12 files changed

Lines changed: 352 additions & 312 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
steps:
2626
- name: Checkout your repository using git
2727
uses: actions/checkout@v4
28+
with:
29+
submodules: recursive
2830

2931
- name: Install, build, and upload your site
3032
uses: withastro/action@v3
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Update Content Submodule
2+
3+
on:
4+
repository_dispatch:
5+
types: [content-updated]
6+
workflow_dispatch:
7+
8+
jobs:
9+
update-content:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
with:
14+
submodules: recursive
15+
token: ${{ secrets.GITHUB_TOKEN }}
16+
17+
- name: Update submodule
18+
run: |
19+
git submodule update --remote src/content/writing
20+
git add src/content/writing
21+
if git diff --cached --quiet; then
22+
echo "No content changes"
23+
else
24+
git commit -m "Auto-update content submodule"
25+
git push
26+
fi

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "src/content/writing"]
2+
path = src/content/writing
3+
url = https://github.com/meaningfool/meaningfool-writing.git

.playwright-mcp/dev-site-full.png

113 KB
Loading

.playwright-mcp/homepage-test.png

77 KB
Loading
247 KB
Loading

0 commit comments

Comments
 (0)