Skip to content

Commit b12b595

Browse files
committed
chore: wip
1 parent 120a818 commit b12b595

File tree

30 files changed

+797
-187
lines changed

30 files changed

+797
-187
lines changed

bun.lockb

16.3 KB
Binary file not shown.

docs/_data/team.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export const core = [
88
desc: 'Independent open source developer, builder in the Stacks ecosystem.',
99
links: [
1010
{ icon: 'github', link: 'https://github.com/chrisbbreuer' },
11+
{ icon: 'bluesky', link: 'https://bsky.app/profile/chrisbreuer.dev' },
1112
{ icon: 'twitter', link: 'https://twitter.com/chrisbbreuer' },
1213
],
1314
sponsor: 'https://github.com/sponsors/chrisbbreuer',

docs/config.ts

Lines changed: 68 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,54 @@
1+
import type { HeadConfig } from 'vitepress'
12
import type { DocsConfig } from '@stacksjs/types'
23
import { SocialLinkIcon } from '@stacksjs/types'
4+
import analytics from '../config/analytics'
5+
6+
export const faviconHead: HeadConfig[] = [
7+
[
8+
'link',
9+
{
10+
rel: 'icon',
11+
href: 'https://raw.githubusercontent.com/stacksjs/stacks/main/public/logo-transparent.svg?https://raw.githubusercontent.com/stacksjs/stacks/main/public/logo-transparent.svg?asdas',
12+
},
13+
],
14+
]
15+
16+
export const googleAnalyticsHead: HeadConfig[] = [
17+
[
18+
'script',
19+
{
20+
async: '',
21+
src: `https://www.googletagmanager.com/gtag/js?id=${analytics.drivers?.googleAnalytics?.trackingId}`,
22+
},
23+
],
24+
[
25+
'script',
26+
{},
27+
`window.dataLayer = window.dataLayer || [];
28+
function gtag(){dataLayer.push(arguments);}
29+
gtag('js', new Date());
30+
gtag('config', 'TAG_ID');`,
31+
],
32+
]
33+
34+
export const fathomAnalyticsHead: HeadConfig[] = [
35+
[
36+
'script',
37+
{
38+
'src': 'https://cdn.usefathom.com/script.js',
39+
'data-site': analytics.drivers?.fathom?.siteId || '',
40+
'defer': '',
41+
},
42+
],
43+
]
44+
45+
export const analyticsHead
46+
= analytics.driver === 'fathom'
47+
? fathomAnalyticsHead
48+
: analytics.driver === 'google-analytics'
49+
? googleAnalyticsHead
50+
: []
51+
352

453
const nav = [
554
{
@@ -576,8 +625,24 @@ export default {
576625
deploy: true,
577626
base: '/',
578627

628+
metaChunk: true,
629+
630+
head: [
631+
['link', { rel: 'icon', type: 'image/svg+xml', href: '/images/logos/logo-mini.svg' }],
632+
['link', { rel: 'icon', type: 'image/png', href: '/images/logos/logo.png' }],
633+
['meta', { name: 'theme-color', content: '#1e40af' }],
634+
['meta', { property: 'og:type', content: 'website' }],
635+
['meta', { property: 'og:locale', content: 'en' }],
636+
['meta', { property: 'og:title', content: 'Stacks | A better developer environment.' }],
637+
['meta', { property: 'og:site_name', content: 'Stacks' }],
638+
['meta', { property: 'og:image', content: 'https://stacksjs.org/images/og-image.png' }],
639+
['meta', { property: 'og:url', content: 'https://stacksjs.org/' }],
640+
// ['script', { 'src': 'https://cdn.usefathom.com/script.js', 'data-site': '', 'data-spa': 'auto', 'defer': '' }],
641+
...analyticsHead
642+
],
643+
579644
themeConfig: {
580-
logo: 'https://raw.githubusercontent.com/stacksjs/stacks/main/public/logo-transparent.svg?https://raw.githubusercontent.com/stacksjs/stacks/main/public/logo-transparent.svg?asdas',
645+
logo: '/images/logos/logo-transparent.svg',
581646

582647
nav,
583648
sidebar,
@@ -594,10 +659,8 @@ export default {
594659

595660
socialLinks: [
596661
{ icon: SocialLinkIcon.Twitter, link: 'https://twitter.com/stacksjs' },
597-
{
598-
icon: SocialLinkIcon.GitHub,
599-
link: 'https://github.com/stacksjs/stacks',
600-
},
662+
{ icon: SocialLinkIcon.Bluesky, link: 'https://bsky.app/profile/chrisbreuer.dev' },
663+
{ icon: SocialLinkIcon.GitHub, link: 'https://github.com/stacksjs/stacks' },
601664
{ icon: SocialLinkIcon.Discord, link: 'https://discord.gg/stacksjs' },
602665
],
603666

docs/index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ hero:
88
name: Stacks.js
99
text: Build. Ship. Faster.
1010
tagline: Rapid application, cloud & library development framework. For the best full-stack teams.
11+
image: /images/logos/logo-white.png
1112
actions:
1213
- theme: brand
1314
text: Coming Soon
@@ -67,3 +68,5 @@ features:
6768
icon: 🧪
6869
details: A fast built-in testing framework. Enjoyable support for both unit & feature tests.
6970
---
71+
72+
<Home />

pkgx.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
dependencies:
1212
aws.amazon.com/cli: ^2.17.13
13-
bun.sh: ^1.1.37
13+
bun.sh: ^1.1.38
1414
dns.lookup.dog: ^0.1.0
1515
httpie.io: ^3.2.2
1616
info-zip.org/zip: ^3.0

public/images/logos/logo-mini.svg

Lines changed: 4 additions & 0 deletions
Loading

public/images/logos/logo-white.png

7.05 KB
Loading

public/images/og-image.png

124 KB
Loading

resources/assets/styles/docs.css

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

resources/assets/styles/docs/main.css

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
html.dark {
2+
color-scheme: dark;
3+
}
4+
5+
.vp-doc h2 {
6+
border-top: 0;
7+
margin-top: 10px;
8+
}
9+
10+
.VPMenuLink .link {
11+
line-height: 28px !important;
12+
}
13+
14+
.VPSidebarGroup .link {
15+
padding: 3px 0 !important;
16+
}
17+
18+
.vp-doc a:has(> code) {
19+
text-decoration: none;
20+
color: var(--vp-c-brand-1);
21+
}
22+
23+
.vp-doc a:has(> code):hover {
24+
text-decoration: underline;
25+
}
26+
27+
#app a:focus-visible,
28+
#app button:focus-visible,
29+
#app input[type='checkbox']:focus-visible {
30+
--at-apply: outline-1 outline-primary ring-2 ring-primary;
31+
}

0 commit comments

Comments
 (0)