Skip to content

Commit 3bed3f4

Browse files
committed
Remove generation of AI files
1 parent 177eae2 commit 3bed3f4

File tree

13 files changed

+8
-563
lines changed

13 files changed

+8
-563
lines changed

.github/workflows/update-latest.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Update 'ai/liquid.mdc' and 'data/latest.json' files
1+
name: Update the 'data/latest.json' file
22

33
on:
44
workflow_dispatch:
@@ -23,9 +23,6 @@ jobs:
2323
- name: Install dependencies
2424
run: yarn install --frozen-lockfile
2525

26-
- name: Generate AI file
27-
run: yarn generate:ai
28-
2926
- name: Create Pull Request
3027
env:
3128
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -34,25 +31,23 @@ jobs:
3431
# Configure git
3532
git config user.name "github-actions[bot]"
3633
git config user.email "github-actions[bot]@users.noreply.github.com"
37-
34+
3835
# Create and switch to new branch
3936
BRANCH_NAME="update-ai-docs-$(date +%Y%m%d-%H%M%S)"
4037
git checkout -b "$BRANCH_NAME"
41-
38+
4239
# Commit changes
43-
git add ai/liquid.mdc
4440
git add data/latest.json
45-
git commit -m "Update 'ai/liquid.mdc' and 'data/latest.json' files"
46-
41+
git commit -m "Update the 'data/latest.json' file"
42+
4743
# Push branch
4844
git push origin "$BRANCH_NAME"
49-
45+
5046
# Create pull request using GitHub CLI
5147
gh pr create \
52-
--title "Update 'ai/liquid.mdc' and 'data/latest.json' files" \
53-
--body "Automated update of AI documentation and latest revision data.
48+
--title "Update the 'data/latest.json' file" \
49+
--body "Automated update of latest revision data.
5450
55-
- Updated \`ai/liquid.mdc\` with latest documentation
5651
- Updated \`data/latest.json\` with current revision SHA" \
5752
--base main \
5853
--head "$BRANCH_NAME"

README.md

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -18,44 +18,6 @@ yarn install
1818
- **`tests/`** — Test suite ensuring documentation accuracy
1919
- **`scripts/`** — Automation scripts for docs generation
2020

21-
## Working with AI files
22-
23-
The AI sources generates comprehensive Liquid guidelines from modular rules files.
24-
25-
### How it works
26-
27-
The main AI file is `ai/liquid.mdc`, generated from `ai/sources/index.liquid`. This entry point pulls together:
28-
29-
- Context from `ai/sources/*.md` files
30-
- Dynamic content from `ai/sources/*.liquid` templates
31-
32-
Choose `.md` for static content, `.liquid` for dynamic generation.
33-
34-
### Adding new rules
35-
36-
1. **Create your rule file:**
37-
```bash
38-
# Static content
39-
touch ai/sources/my-new-rule.md
40-
41-
# Or dynamic content
42-
touch ai/sources/my-new-rule.liquid
43-
```
44-
45-
2. **Add your content:**
46-
```liquid
47-
<!-- ai/sources/my-new-rule.liquid -->
48-
{% for filter in filters %}
49-
- `{{ filter.name }}` — {{ filter.description }}
50-
{% endfor %}
51-
```
52-
53-
3. **(Optional) Regenerate the rules:**
54-
The `ai/liquid.mdc` file updates automatically via GitHub Actions, but you can generate it locally anytime.
55-
```bash
56-
yarn generate:ai
57-
```
58-
5921
### Available data
6022

6123
In `.liquid` templates, you have access to:

ai/sources/.theme-check.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

ai/sources/_css.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

ai/sources/_html.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

ai/sources/_javascript.md

Lines changed: 0 additions & 95 deletions
This file was deleted.

ai/sources/_liquid-rules.liquid

Lines changed: 0 additions & 51 deletions
This file was deleted.

ai/sources/_theme-architecture.md

Lines changed: 0 additions & 91 deletions
This file was deleted.

0 commit comments

Comments
 (0)