fix: use npm in Dockerfile.docs for better resolution
This commit is contained in:
@@ -1,12 +1,12 @@
|
|||||||
FROM oven/bun:1.1-alpine AS builder
|
FROM node:20-alpine AS builder
|
||||||
|
|
||||||
WORKDIR /app/docs
|
WORKDIR /app/docs
|
||||||
|
|
||||||
COPY docs/package.json ./
|
COPY docs/package*.json ./
|
||||||
RUN bun install
|
RUN npm install
|
||||||
|
|
||||||
COPY docs ./
|
COPY docs ./
|
||||||
RUN bun run build
|
RUN npm run build
|
||||||
|
|
||||||
FROM nginx:alpine
|
FROM nginx:alpine
|
||||||
|
|
||||||
|
|||||||
@@ -11,28 +11,49 @@ export default defineConfig({
|
|||||||
dark: './src/assets/logo-dark.svg',
|
dark: './src/assets/logo-dark.svg',
|
||||||
replacesTitle: true,
|
replacesTitle: true,
|
||||||
},
|
},
|
||||||
social: [
|
social: {
|
||||||
{ icon: 'github', label: 'GitHub', href: 'https://github.com/lotherk/deardiary' },
|
github: 'https://github.com/anomalyco/totalrecall',
|
||||||
],
|
},
|
||||||
editLink: {
|
editLink: {
|
||||||
baseUrl: 'https://github.com/lotherk/deardiary/edit/main/',
|
baseUrl: 'https://github.com/anomalyco/totalrecall/edit/main/',
|
||||||
},
|
},
|
||||||
sidebar: [
|
sidebar: [
|
||||||
{
|
{
|
||||||
label: 'Getting Started',
|
label: 'Getting Started',
|
||||||
autogenerate: { directory: 'getting-started' },
|
items: [
|
||||||
|
{ label: 'Introduction', slug: 'index' },
|
||||||
|
{ label: 'Installation', slug: 'getting-started/installation' },
|
||||||
|
{ label: 'Quick Start', slug: 'getting-started/quick-start' },
|
||||||
|
{ label: 'Configuration', slug: 'getting-started/configuration' },
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Features',
|
label: 'Features',
|
||||||
autogenerate: { directory: 'features' },
|
items: [
|
||||||
|
{ label: 'Events', slug: 'features/events' },
|
||||||
|
{ label: 'Diary Pages', slug: 'features/diary-pages' },
|
||||||
|
{ label: 'AI Providers', slug: 'features/ai-providers' },
|
||||||
|
{ label: 'Search', slug: 'features/search' },
|
||||||
|
{ label: 'Calendar', slug: 'features/calendar' },
|
||||||
|
{ label: 'Export & Import', slug: 'features/export-import' },
|
||||||
|
{ label: 'Media Uploads', slug: 'features/media' },
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'API Reference',
|
label: 'API Reference',
|
||||||
autogenerate: { directory: 'api' },
|
items: [
|
||||||
|
{ label: 'Authentication', slug: 'api/authentication' },
|
||||||
|
{ label: 'Events', slug: 'api/events' },
|
||||||
|
{ label: 'Journals', slug: 'api/journals' },
|
||||||
|
{ label: 'Settings', slug: 'api/settings' },
|
||||||
|
],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Deployment',
|
label: 'Deployment',
|
||||||
autogenerate: { directory: 'deployment' },
|
items: [
|
||||||
|
{ label: 'Docker', slug: 'deployment/docker' },
|
||||||
|
{ label: 'Environment Variables', slug: 'deployment/environment' },
|
||||||
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
customCss: ['./src/styles/custom.css'],
|
customCss: ['./src/styles/custom.css'],
|
||||||
|
|||||||
7311
docs/package-lock.json
generated
Normal file
7311
docs/package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -9,8 +9,8 @@
|
|||||||
"preview": "astro preview"
|
"preview": "astro preview"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/starlight": "0.29.0",
|
"@astrojs/starlight": "^0.34.2",
|
||||||
"astro": "5.0.0",
|
"astro": "^5.6.1",
|
||||||
"sharp": "0.33.5"
|
"sharp": "^0.33.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100">
|
||||||
<defs>
|
<defs>
|
||||||
<linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%">
|
<linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="100%">
|
||||||
<stop offset="0%" style="stop-color:#6d28d9;stop-opacity:1" />
|
<stop offset="0%" style="stop-color:#8b5cf6;stop-opacity:1" />
|
||||||
<stop offset="100%" style="stop-color:#4c1d95;stop-opacity:1" />
|
<stop offset="100%" style="stop-color:#6366f1;stop-opacity:1" />
|
||||||
</linearGradient>
|
</linearGradient>
|
||||||
</defs>
|
</defs>
|
||||||
<rect width="100" height="100" rx="20" fill="url(#grad)"/>
|
<rect width="100" height="100" rx="20" fill="url(#grad)"/>
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 897 B After Width: | Height: | Size: 897 B |
@@ -13,7 +13,7 @@ hero:
|
|||||||
link: /getting-started/installation/
|
link: /getting-started/installation/
|
||||||
- theme: alt
|
- theme: alt
|
||||||
text: View on GitHub
|
text: View on GitHub
|
||||||
link: https://github.com/lotherk/deardiary
|
link: https://github.com/anomalyco/totalrecall
|
||||||
---
|
---
|
||||||
|
|
||||||
import { Card, CardGrid } from '@astrojs/starlight/components';
|
import { Card, CardGrid } from '@astrojs/starlight/components';
|
||||||
|
|||||||
@@ -1,23 +1,17 @@
|
|||||||
/* Custom DearDiary styling */
|
/* Custom DearDiary styling */
|
||||||
:root[data-theme='light'] {
|
:root[data-theme='light'] {
|
||||||
--sl-color-accent-low: #ddd6fe;
|
--sl-color-accent-low: #e9e3ff;
|
||||||
--sl-color-accent: #6d28d9;
|
--sl-color-accent: #7c3aed;
|
||||||
--sl-color-accent-high: #4c1d95;
|
--sl-color-accent-high: #4c1d95;
|
||||||
--sl-color-white: #1e293b;
|
--sl-color-white: #1e1b4b;
|
||||||
--sl-color-gray-1: #334155;
|
--sl-color-gray-1: #3730a3;
|
||||||
--sl-color-gray-2: #475569;
|
--sl-color-gray-2: #4338ca;
|
||||||
--sl-color-gray-3: #64748b;
|
--sl-color-gray-3: #4f46e5;
|
||||||
--sl-color-gray-4: #94a3b8;
|
--sl-color-gray-4: #6366f1;
|
||||||
--sl-color-gray-5: #cbd5e1;
|
--sl-color-gray-5: #818cf8;
|
||||||
--sl-color-gray-6: #e2e8f0;
|
--sl-color-gray-6: #a5b4fc;
|
||||||
--sl-color-gray-7: #f1f5f9;
|
--sl-color-gray-7: #c7d2fe;
|
||||||
--sl-color-black: #ffffff;
|
--sl-color-black: #e0e7ff;
|
||||||
--sl-color-bg: #ffffff;
|
|
||||||
--sl-color-bg-nav: #f8fafc;
|
|
||||||
--sl-color-hairline: #e2e8f0;
|
|
||||||
--sl-color-hairline-light: #f1f5f9;
|
|
||||||
--sl-color-hairline-shade: #cbd5e1;
|
|
||||||
--sl-color-bg-slash: #f1f5f9;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
:root[data-theme='dark'] {
|
:root[data-theme='dark'] {
|
||||||
|
|||||||
Reference in New Issue
Block a user