Skip to content

Commit 0aa02a8

Browse files
committed
2 parents 4a27598 + 9b6242c commit 0aa02a8

622 files changed

Lines changed: 3696 additions & 41804 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/ISSUE_TEMPLATE/bug-report.yml

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

.github/ISSUE_TEMPLATE/feature-request.yml

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

.github/workflows/ci.yml

Lines changed: 27 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,103 +1,50 @@
1-
name: CI
1+
name: Deploy Static Site to GitHub Pages
22

33
on:
44
push:
55
branches:
6-
- main
7-
6+
- release
87
pull_request:
98
branches:
10-
- main
9+
- release
1110

1211
jobs:
13-
lint:
12+
# This single job handles installing dependencies, generating the static site, and deploying it.
13+
deploy_pages:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- name: Checkout Repository
17+
uses: actions/checkout@v4
1718

1819
- name: Install pnpm
1920
uses: pnpm/action-setup@v4
2021
with:
21-
run_install: false
22+
run_install: false # Skip initial install here
2223

23-
- uses: actions/setup-node@v4
24+
- name: Setup Node.js
25+
uses: actions/setup-node@v4
2426
with:
2527
node-version: lts/*
2628
cache: pnpm
2729

28-
- name: Install dependencies
30+
- name: Install Dependencies
31+
# Using --frozen-lockfile ensures reproducible builds
2932
run: pnpm install --frozen-lockfile
3033

31-
- name: Lint
32-
run: pnpm run lint
33-
34-
typecheck:
35-
runs-on: ubuntu-latest
36-
steps:
37-
- uses: actions/checkout@v4
38-
39-
- name: Install pnpm
40-
uses: pnpm/action-setup@v4
41-
with:
42-
run_install: false
43-
44-
- uses: actions/setup-node@v4
45-
with:
46-
node-version: lts/*
47-
cache: pnpm
48-
49-
- name: Install dependencies
50-
run: pnpm install --frozen-lockfile
51-
52-
- name: Typecheck
53-
run: pnpm run typecheck
54-
55-
build:
56-
strategy:
57-
fail-fast: false
58-
matrix:
59-
os: [ubuntu-latest, windows-latest, macos-latest]
60-
runs-on: ${{ matrix.os }}
61-
steps:
62-
- uses: actions/checkout@v4
63-
64-
- name: Install pnpm
65-
uses: pnpm/action-setup@v4
66-
with:
67-
run_install: false
68-
69-
- uses: actions/setup-node@v4
70-
with:
71-
node-version: lts/*
72-
cache: pnpm
73-
74-
- name: Install dependencies
75-
run: pnpm install --frozen-lockfile
76-
77-
- name: Build
78-
run: pnpm run build
79-
80-
generate:
81-
strategy:
82-
fail-fast: false
83-
matrix:
84-
os: [ubuntu-latest, windows-latest, macos-latest]
85-
runs-on: ${{ matrix.os }}
86-
steps:
87-
- uses: actions/checkout@v4
88-
89-
- name: Install pnpm
90-
uses: pnpm/action-setup@v4
91-
with:
92-
run_install: false
34+
- name: Generate Static Site
35+
# This step runs your "generate" script: "nuxt prepare && nuxt generate www"
36+
# This command is responsible for generating files into 'www/.output/public'
37+
env:
38+
NUXT_APP_BASE_URL: /comforterpdocs/ # Setting the BASE_URL environment variable for Nuxt
39+
run: pnpm run generate
9340

94-
- uses: actions/setup-node@v4
41+
- name: Deploy to GitHub Pages
42+
# This action pushes the generated content to the 'gh-pages' branch
43+
uses: peaceiris/actions-gh-pages@v3
9544
with:
96-
node-version: lts/*
97-
cache: pnpm
98-
99-
- name: Install dependencies
100-
run: pnpm install --frozen-lockfile
101-
102-
- name: Generate
103-
run: pnpm run generate
45+
github_token: ${{ secrets.GITHUB_TOKEN }}
46+
# Ensure this path matches the output of 'nuxt generate www'
47+
publish_dir: www/.output/public
48+
publish_branch: gh-pages
49+
# Optional: Add a custom commit message
50+
commit_message: Deploying static Nuxt site to gh-pages

.github/workflows/pkg.pr.new.yml

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

app.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
(config.aside.useLevel && config.aside.levelStyle === 'aside') ? 'h-[calc(100vh-3.5rem)] md:top-[61px]' : 'h-[calc(100vh-6rem)] md:top-[101px]',
2222
]"
2323
>
24-
<LayoutAside :is-mobile="false" />
24+
<!-- <LayoutAside :is-mobile="false" /> -->
25+
<LayoutCustomAside :is-mobile="false" /> <!-- this custom aside works with sidebar array -->
2526
</aside>
2627
<NuxtPage />
2728
</div>

assets/css/custom.css

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
@import url(https://fonts.googleapis.com/css?family=Space+Mono:regular,italic,700,700italic);
2+
@import url(https://fonts.googleapis.com/css?family=Space+Grotesk:regular,italic,700,700italic);
3+
4+
:root {
5+
--vp-c-brand: #ff7340;
6+
--vp-c-brand-light: #ff5719;
7+
--vp-c-brand-lighter: #ff7340;
8+
--vp-c-brand-lighter: rgba(255, 135, 23, 0.25);
9+
--vp-c-brand-dark: #ff622d;
10+
--vp-c-brand-darker: #e23c00;
11+
12+
--vp-c-sponsor: #fd1d7c;
13+
14+
/* Typography */
15+
--vp-font-family-base: "Space Grotesk", "Inter var experimental", "Inter var",
16+
-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
17+
Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
18+
19+
/* Code Snippet font */
20+
--vp-font-family-mono: "Space Mono", Menlo, Monaco, Consolas, "Courier New",
21+
monospace;
22+
}
23+
24+
/* Custom Stlye */
25+
.custom-layout {
26+
background-color: var(--vp-c-bg-soft);
27+
color: var(--vp-c-text-1);
28+
padding: 1.5rem;
29+
display: flex;
30+
flex-direction: column;
31+
align-items: center;
32+
justify-content: center;
33+
text-align: center;
34+
gap: 1rem;
35+
min-height: 400px;
36+
max-width: 1152px;
37+
margin: 0 auto 0;
38+
border-radius: 10px;
39+
}
40+
41+
.custom-layout h1 {
42+
font-size: 2.2rem;
43+
font-weight: 600;
44+
}
45+
46+
.custom-layout .btn {
47+
background-color: var(--vp-button-brand-bg);
48+
color: var(--vp-button-brand-text);
49+
border-radius: 20px;
50+
padding: 0.5rem 1.4rem;
51+
}
52+
53+
/* Logo theme switching */
54+
.feature-icon img {
55+
transition: opacity 0.3s ease;
56+
}
57+
58+
.feature-icon .light-logo {
59+
display: block;
60+
}
61+
62+
.feature-icon .dark-logo {
63+
display: none;
64+
}
65+
66+
.dark .feature-icon .light-logo {
67+
display: none;
68+
}
69+
70+
.dark .feature-icon .dark-logo {
71+
display: block;
72+
}
73+
74+
.custom-hero-alt-heading-1 {
75+
color: #3451b2;
76+
}

components/OgImage/ShadcnDocs.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
:style="`background-size: 120px 120px; background-image: linear-gradient(to right, ${colorMode === 'light' ? '#e5e7eb' : '#27272a'} 1px, transparent 1px), linear-gradient(to bottom, ${colorMode === 'light' ? '#e5e7eb' : '#27272a'} 1px, transparent 1px);`"
66
>
77
<div class="mb-4 flex">
8-
<img v-if="colorMode === 'light'" :src="logo.light" height="65">
9-
<img v-else :src="logo.dark" height="65">
8+
<NuxtImg v-if="colorMode === 'light'" :src="logo.light" height="65" />
9+
<NuxtImg v-else :src="logo.dark" height="65" />
1010
<span
1111
v-if="showTitle && siteTitle"
1212
class="ml-4 self-center text-4xl font-bold"

components/content/Card.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636
<SmartIcon v-if="to && showLinkIcon" name="lucide:arrow-up-right" class="absolute right-4 top-4" />
3737
</UiCard>
3838
</UseTemplate>
39-
4039
<div class="group-has-[div]:!mt-0 [&:not(:first-child)]:mt-5">
4140
<NuxtLinkLocale v-if="to" :to :target>
4241
<CardInner />

0 commit comments

Comments
 (0)