Compare commits
4 Commits
c7a982e508
...
e0543f2a58
Author | SHA1 | Date | |
---|---|---|---|
|
e0543f2a58 | ||
|
3d78b9e56c | ||
|
84e56f2668 | ||
|
8af8db0714 |
15
.github/workflows/default.yaml
vendored
15
.github/workflows/default.yaml
vendored
@ -51,10 +51,21 @@ jobs:
|
|||||||
- name: 🔄 Pull Git LFS files
|
- name: 🔄 Pull Git LFS files
|
||||||
run: git lfs pull
|
run: git lfs pull
|
||||||
|
|
||||||
|
- name: 🔧 Increase file descriptor limits
|
||||||
|
run: |
|
||||||
|
echo "Current file descriptor limits:"
|
||||||
|
ulimit -n
|
||||||
|
echo "Increasing file descriptor limits..."
|
||||||
|
ulimit -n 65536
|
||||||
|
echo "New file descriptor limits:"
|
||||||
|
ulimit -n
|
||||||
|
|
||||||
- name: 🏗️ Build site
|
- name: 🏗️ Build site
|
||||||
run: |
|
run: |
|
||||||
# Install dependencies, build, and generate site output
|
# Build with NODE_OPTIONS to increase memory limits and avoid watching files
|
||||||
pnpm i && pnpm build
|
export NODE_OPTIONS="--max-old-space-size=4096 --no-warnings"
|
||||||
|
# Astro-specific optimizations to avoid file watching
|
||||||
|
pnpm i && NODE_ENV=production ASTRO_DISABLE_HMR=true pnpm build
|
||||||
|
|
||||||
- name: 🔑 Configure rclone
|
- name: 🔑 Configure rclone
|
||||||
run: |
|
run: |
|
||||||
|
@ -38,6 +38,13 @@ export default defineConfig({
|
|||||||
compiler: 'svelte',
|
compiler: 'svelte',
|
||||||
}),
|
}),
|
||||||
],
|
],
|
||||||
|
server: {
|
||||||
|
watch: {
|
||||||
|
// Customize watch behavior to reduce file watchers
|
||||||
|
ignored: ['**/node_modules/**', '**/dist/**', '**/.git/**'],
|
||||||
|
usePolling: process.env.NODE_ENV === 'production',
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
markdown: {
|
markdown: {
|
||||||
remarkPlugins: [setDefaultLayout]
|
remarkPlugins: [setDefaultLayout]
|
||||||
|
@ -31,7 +31,14 @@ const link = translatePath(`/${collection}/${id.split("/")[0]}`);
|
|||||||
classes={`grid gradient border-1 border-neutral overflow-hidden ${cover ? "grid-rows-[200px_1fr] xs:grid-rows-none xs:grid-cols-[1fr_200px]" : ""}`}>
|
classes={`grid gradient border-1 border-neutral overflow-hidden ${cover ? "grid-rows-[200px_1fr] xs:grid-rows-none xs:grid-cols-[1fr_200px]" : ""}`}>
|
||||||
<Card.Content classes="px-8 py-7 order-last xs:order-first">
|
<Card.Content classes="px-8 py-7 order-last xs:order-first">
|
||||||
<Card.Title classes="text-4xl flex items-center gap-2">
|
<Card.Title classes="text-4xl flex items-center gap-2">
|
||||||
{icon && <img src={icon} class="h-6 w-6" />}
|
{
|
||||||
|
icon &&
|
||||||
|
(
|
||||||
|
icon?.length > 5
|
||||||
|
? <img class="h-6 w-6" src={icon} />
|
||||||
|
: <span class="p-r-4 text-md">{icon}</span>
|
||||||
|
)
|
||||||
|
}
|
||||||
{title}
|
{title}
|
||||||
</Card.Title>
|
</Card.Title>
|
||||||
<Card.Description>
|
<Card.Description>
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
// uno.config.ts
|
// uno.config.ts
|
||||||
import { defineConfig, presetUno } from 'unocss'
|
import { defineConfig, presetWind3 } from 'unocss'
|
||||||
import presetIcons from '@unocss/preset-icons'
|
import presetIcons from '@unocss/preset-icons'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
presets: [
|
presets: [
|
||||||
presetUno(),
|
presetWind3(),
|
||||||
presetIcons(),
|
presetIcons(),
|
||||||
],
|
],
|
||||||
shortcuts: {
|
shortcuts: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user