Skip to content

Commit f2d47fd

Browse files
fix(ci): replace deprecated pages-action with wrangler-action
cloudflare/pages-action@v1 uses wrangler v2 which is EOL and returns 502 from the Cloudflare API. Switch to cloudflare/wrangler-action@v3 which uses current wrangler versions. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 17389f7 commit f2d47fd

3 files changed

Lines changed: 18 additions & 10 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,11 @@ jobs:
4040
run: hugo --minify
4141

4242
- name: Deploy to Cloudflare Pages
43-
uses: cloudflare/pages-action@v1
43+
uses: cloudflare/wrangler-action@v3
4444
with:
4545
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4646
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
47-
projectName: devrail-dev
48-
directory: public
47+
command: pages deploy public --project-name=devrail-dev
4948

5049
# Required secrets (configure in GitHub repository settings):
5150
# CLOUDFLARE_API_TOKEN - Cloudflare API token with Pages edit permission

assets/scss/_styles_project.scss

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,22 +110,31 @@ pre {
110110
}
111111

112112
code {
113-
color: #00e5a0;
114-
background-color: rgba(0, 229, 160, 0.1);
113+
color: #00cc8a;
114+
background-color: transparent;
115+
border: 1px solid rgba(0, 229, 160, 0.2);
115116
padding: 0.15em 0.35em;
116117
border-radius: 3px;
117118
}
118119

119-
// Win specificity over Docsy/Bootstrap in content areas
120+
// Override Docsy's .td-content p code / li>code / table code
121+
// which sets color:inherit and background-color:var(--td-pre-bg)
122+
.td-content p code,
123+
.td-content li > code,
124+
.td-content table code,
120125
.td-content code {
121-
color: #00e5a0;
122-
background-color: rgba(0, 229, 160, 0.1);
126+
color: #00cc8a;
127+
background-color: transparent;
128+
border: 1px solid rgba(0, 229, 160, 0.2);
123129
}
124130

125131
pre code,
126-
.td-content pre code {
132+
.td-content pre code,
133+
.td-content p pre code {
127134
background-color: transparent;
135+
border: none;
128136
padding: 0;
137+
color: #c8d6e5;
129138
}
130139

131140
// --- Blockquotes (used for agent prompts) ---

assets/scss/_variables_project.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ $danger: #ff3e3e; // Red
1111
$light: #1e1e2e; // Dark surface
1212
$dark: #0d0d1a; // Near-black
1313

14-
$code-color: #00e5a0;
14+
$code-color: #00cc8a;
1515
$link-color: #00e5a0;
1616
$link-shade-percentage: 20%;
1717

0 commit comments

Comments
 (0)