Skip to content

Commit 995aed7

Browse files
committed
ci: only publish docs on 2027 branch
Signed-off-by: Jonah Snider <jonah@jonahsnider.com>
1 parent 78bb420 commit 995aed7

4 files changed

Lines changed: 25 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ jobs:
108108

109109
runs-on: ubuntu-latest
110110

111-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
111+
if: github.event_name == 'push' && github.ref == 'refs/heads/2027'
112112

113113
needs: [assemble, validation]
114114

web/astro.config.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export default defineConfig({
5252
],
5353
customCss: ['/src/styles/custom.css'],
5454
components: {
55+
Banner: './src/components/Banner.astro',
5556
Head: './src/components/PwaHead.astro',
5657
},
5758
}),
@@ -62,7 +63,7 @@ export default defineConfig({
6263
registerType: 'autoUpdate',
6364
workbox: {
6465
cleanupOutdatedCaches: true,
65-
cacheId: 'doglog-docs',
66+
cacheId: 'doglog-docs-2027',
6667
globPatterns: ['**/*'],
6768
},
6869
manifest: {
@@ -73,7 +74,7 @@ export default defineConfig({
7374
theme_color: '#460b05',
7475
lang: 'en',
7576
display: 'minimal-ui',
76-
id: 'doglog.dev',
77+
id: '2027.doglog.dev',
7778
start_url: '/',
7879
orientation: 'any',
7980
},

web/src/components/Banner.astro

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<div class="sl-banner">You are viewing documentation for the 2027 version of DogLog.</div>
2+
3+
<style>
4+
@layer starlight.core {
5+
.sl-banner {
6+
--__sl-banner-text: var(--sl-color-banner-text, var(--sl-color-text-invert));
7+
padding: var(--sl-nav-pad-y) var(--sl-nav-pad-x);
8+
background-color: var(--sl-color-banner-bg, var(--sl-color-bg-accent));
9+
color: var(--__sl-banner-text);
10+
line-height: var(--sl-line-height-headings);
11+
text-align: center;
12+
text-wrap: balance;
13+
box-shadow: var(--sl-shadow-sm);
14+
}
15+
.sl-banner :global(a) {
16+
color: var(--__sl-banner-text);
17+
}
18+
}
19+
</style>

web/wrangler.jsonc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
"not_found_handling": "404-page",
66
},
77
"compatibility_date": "2025-07-17",
8-
"name": "doglog",
8+
"name": "doglog-2027",
99
"route": {
1010
"custom_domain": true,
11-
"pattern": "doglog.dev",
11+
"pattern": "2027.doglog.dev",
1212
},
1313
"workers_dev": false,
1414
"$schema": "../node_modules/wrangler/config-schema.json",

0 commit comments

Comments
 (0)