Compare commits

..

No commits in common. "3e32df57613669bc7018d4a386e10c9353905963" and "b529e96a6b76bb235a733d6b87626a5f3bcc8e88" have entirely different histories.

5 changed files with 18 additions and 25 deletions

View File

@ -1,24 +1,19 @@
# For Build # For Build
FROM node:22-slim AS base FROM node:22-slim as builder
ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN corepack enable
WORKDIR /app WORKDIR /app
COPY package.json ./ COPY package.json ./
COPY pnpm-lock.yaml ./ COPY package-lock.json ./
COPY tsconfig.json ./ COPY tsconfig.json ./
RUN npm ci
FROM base AS builder
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
COPY . . COPY . .
RUN pnpm run build
RUN npm run build
FROM base # For Run
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile FROM node:22-slim
WORKDIR /app WORKDIR /app

View File

@ -7,16 +7,15 @@
color: var(--color-text); color: var(--color-text);
padding-left: 0rem; padding-left: 2rem;
box-sizing: border-box; box-sizing: border-box;
h1 { h1 {
position: relative; position: relative;
width: auto; width: auto;
font-size: 1.8rem; font-size: 1.8rem;
padding: 1.5rem 0 0.25rem 0; margin-bottom: 0.5rem;
margin: 0 0 0.75rem 0rem; margin-left: -1rem;
border-bottom: 1px solid var(--color-outline);
} }
hr { hr {
@ -28,7 +27,6 @@
} }
h2 { h2 {
padding: 1rem 0 0.25rem 0;
font-size: 1.5rem; font-size: 1.5rem;
position: relative; position: relative;

View File

@ -44,7 +44,6 @@
margin-left: 0.5em; margin-left: 0.5em;
padding-left: 0.25em; padding-left: 0.25em;
border-left: 1px solid var(--line-primary); border-left: 1px solid var(--line-primary);
box-sizing: border-box;
} }
ul { ul {
border-left: none; border-left: none;

View File

@ -121,8 +121,9 @@
border-top: none; border-top: none;
border-bottom: none; border-bottom: none;
min-height: 100%; min-height: 100%;
padding: 100px 100px 0 100px; padding: 20px;
max-width: 900px; padding-top: 100px;
max-width: 800px;
margin: 0; margin: 0;
} }
} }
@ -130,15 +131,15 @@
.card-container { .card-container {
position: sticky; position: sticky;
top: 0; top: 0;
overflow-y: auto;
background-color: var(--background-primary); background-color: var(--background-primary);
box-sizing: border-box; box-sizing: border-box;
padding: 20px; padding: 20px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-between; justify-content: space-between;
overflow: visible;
.card { .card {
width: 100px; width: 300px;
padding: 0.5em 0; padding: 0.5em 0;
overflow: visible; overflow: visible;
} }
@ -148,7 +149,7 @@
h1 { h1 {
font-size: 2rem; font-size: 2rem;
text-align: center; text-align: center;
margin: 0 -30px 0 -30px; margin: 0;
padding: 12px; padding: 12px;
border-bottom: 1px solid rgba(255, 255, 255, 0.3); border-bottom: 1px solid rgba(255, 255, 255, 0.3);
box-sizing: border-box; box-sizing: border-box;

View File

@ -20,6 +20,6 @@ export default async function compileArticle(code: string) {
return html; return html;
}, },
}, },
rehypePlugins: [rehypeAutolinkHeadings, rehypeSlug], rehypePlugins: [rehypeSlug],
}); });
} }