This repository includes a GitHub Action that automatically updates the index.html
file whenever new HTML tools are added to the repository.
- Trigger: The action runs when you push HTML files (except
index.html
) to the main/master branch - Detection: It scans for new HTML files that aren't already listed in
index.html
- Metadata Extraction: For each new file, it extracts:
- Title (from
<title>
tag or<h1>
) - Description (from meta description or first
<p>
tag) - Filename for the link
- Title (from
- Auto-Update: Creates a new tool card and adds it to the tools container in
index.html
- Commit: Automatically commits the updated
index.html
back to the repository
- Create your HTML tool file (e.g.,
my-awesome-tool.html
) - Make sure it has a proper
<title>
tag and description - Push to the main/master branch
- The GitHub Action will automatically add it to the index page!
├── .github/
│ └── workflows/
│ ├── update-index.yml # GitHub Action workflow
│ └── update-index.js # Script that handles the logic
├── index.html # Main landing page
├── tool1.html # Individual tool files
├── tool2.html
└── ...