Compare commits

...

4 Commits

5 changed files with 25 additions and 18 deletions

View File

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

View File

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

View File

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

View File

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

View File

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