Skip to content

Commit a5b6d36

Browse files
docs: expand CSS Core answers
1 parent ccc2ab5 commit a5b6d36

3 files changed

Lines changed: 811 additions & 1154 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
workflow_dispatch:
66

77
permissions:
8-
contents: write
8+
contents: read
99

1010
concurrency:
1111
group: build-${{ github.ref }}
@@ -18,9 +18,6 @@ jobs:
1818
steps:
1919
- name: Checkout
2020
uses: actions/checkout@v4
21-
with:
22-
ref: ${{ github.head_ref }}
23-
fetch-depth: 0
2421

2522
- name: Setup Node.js
2623
uses: actions/setup-node@v4
@@ -31,27 +28,6 @@ jobs:
3128
- name: Install dependencies
3229
run: npm ci
3330

34-
- name: Apply CSS Core expansion
35-
run: |
36-
python3 <<'PY'
37-
from pathlib import Path
38-
39-
path = Path('src/pages/css/index.md')
40-
text = path.read_text()
41-
replacement = Path('.tmp-css-core-section.md').read_text().rstrip()
42-
start = text.index('### CSS Core')
43-
end = text.index('### CSS Layout')
44-
path.write_text(text[:start] + replacement + '\n\n' + text[end:])
45-
PY
46-
npx prettier src/pages/css/index.md --write
47-
rm .tmp-css-core-section.md
48-
git checkout origin/main -- .github/workflows/build.yml
49-
git config user.name "github-actions[bot]"
50-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
51-
git add src/pages/css/index.md .tmp-css-core-section.md .github/workflows/build.yml
52-
git commit -m "docs: expand CSS Core answers"
53-
git push origin HEAD:${{ github.head_ref }}
54-
5531
- name: Check formatting
5632
run: npm run format:check
5733

0 commit comments

Comments
 (0)