Skip to content

Commit 5c3344a

Browse files
committed
Changed formatting and added latex
1 parent 28486a6 commit 5c3344a

File tree

18 files changed

+297
-135
lines changed

18 files changed

+297
-135
lines changed

astro.config.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { defineConfig } from "astro/config";
2+
import remarkMath from 'remark-math';
3+
import rehypeKatex from 'rehype-katex';
24
import tailwind from "@astrojs/tailwind";
35
import react from "@astrojs/react";
46
import remarkToc from "remark-toc";
@@ -21,13 +23,15 @@ export default defineConfig({
2123
markdown: {
2224
remarkPlugins: [
2325
remarkToc,
26+
remarkMath,
2427
[
2528
remarkCollapse,
2629
{
2730
test: "Table of contents",
2831
},
2932
],
3033
],
34+
rehypePlugins: [rehypeKatex],
3135
shikiConfig: {
3236
// For more themes, visit https://shiki.style/themes
3337
themes: { light: "min-light", dark: "night-owl" },

package-lock.json

Lines changed: 144 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
"astro": "^4.16.18",
2020
"fuse.js": "^7.0.0",
2121
"lodash.kebabcase": "^4.1.1",
22+
"rehype-katex": "^7.0.1",
2223
"remark-collapse": "^0.1.2",
24+
"remark-math": "^6.0.0",
2325
"remark-toc": "^9.0.0",
2426
"satori": "^0.11.0",
2527
"tailwindcss": "^3.4.11",

src/components/Breadcrumbs.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ breadcrumbList[0] === "tags" &&
5555

5656
<style>
5757
.breadcrumb {
58-
@apply mx-auto mb-1 mt-8 w-full max-w-3xl px-4;
58+
@apply mx-auto mb-1 mt-8 w-full max-w-5xl px-4;
5959
}
6060
.breadcrumb ul li {
6161
@apply inline;

src/components/Header.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ const { activeNav } = Astro.props;
161161
@apply absolute -top-full left-16 z-50 bg-skin-accent px-3 py-2 text-skin-inverted transition-all focus:top-4;
162162
}
163163
.nav-container {
164-
@apply mx-auto flex max-w-3xl flex-col items-center justify-between sm:flex-row;
164+
@apply mx-auto flex max-w-5xl flex-col items-center justify-between sm:flex-row;
165165
}
166166
.top-nav-wrap {
167167
@apply relative flex w-full items-start justify-between p-4 sm:items-center sm:py-8;

src/components/Hr.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ export interface Props {
77
const { noPadding = false, ariaHidden = true } = Astro.props;
88
---
99

10-
<div class={`max-w-3xl mx-auto ${noPadding ? "px-0" : "px-4"}`}>
10+
<div class={`max-w-5xl mx-auto ${noPadding ? "px-0" : "px-4"}`}>
1111
<hr class="border-skin-line" aria-hidden={ariaHidden} />
1212
</div>

0 commit comments

Comments
 (0)