From fdbdfff68f8e4feb53f2e0416c69095ecbe8b39e Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 5 Feb 2026 20:07:53 +0000 Subject: [PATCH] Data-driven suggested tools with markdown source and GitHub Action - Add suggested-tools.md as the single source of truth for external tool links - Add build script (scripts/build-suggested-tools.js) that parses the markdown and injects generated HTML between marker comments in each page - Add GitHub Action that runs the build on push to suggested-tools.md - Add Image Alt Writer 2 to all pages - Replace previously hardcoded suggested tool links with generated output To add/remove tools, just edit suggested-tools.md and push. https://claude.ai/code/session_01WWn5ELi3qsukgwyTnUNby9 --- .github/workflows/build-suggested-tools.yml | 28 ++++ formatter/index.html | 5 +- index.html | 3 + og-image/index.html | 5 +- scripts/build-suggested-tools.js | 136 ++++++++++++++++++++ suggested-tools.md | 27 ++++ 6 files changed, 202 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build-suggested-tools.yml create mode 100644 scripts/build-suggested-tools.js create mode 100644 suggested-tools.md diff --git a/.github/workflows/build-suggested-tools.yml b/.github/workflows/build-suggested-tools.yml new file mode 100644 index 0000000..629f8ad --- /dev/null +++ b/.github/workflows/build-suggested-tools.yml @@ -0,0 +1,28 @@ +name: Build suggested tools + +on: + push: + paths: + - 'suggested-tools.md' + workflow_dispatch: + +permissions: + contents: write + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Build suggested tools HTML + run: node scripts/build-suggested-tools.js + + - name: Commit changes (if any) + run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git diff --quiet && exit 0 + git add index.html formatter/index.html og-image/index.html + git commit -m "Rebuild suggested tools from suggested-tools.md" + git push diff --git a/formatter/index.html b/formatter/index.html index 8529551..d1a9b77 100644 --- a/formatter/index.html +++ b/formatter/index.html @@ -265,9 +265,12 @@

Live Preview

All Tools · W3C Validator · Can I Use · + W3C Feed Validator · Cast Feed Validator · - Embed Responsively + Embed Responsively · + Image Alt Writer 2 +

HTML Formatter & Tidy

+

Suggested Tools

+