Skip to content

Commit 102f6c9

Browse files
committed
Update astro-paper and use revert vod.
1 parent 5add796 commit 102f6c9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+3341
-6553
lines changed

astro.config.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import react from "@astrojs/react";
44
import remarkToc from "remark-toc";
55
import remarkCollapse from "remark-collapse";
66
import sitemap from "@astrojs/sitemap";
7+
import { SITE } from "./src/config";
78

89
// https://astro.build/config
910
export default defineConfig({
@@ -38,10 +39,11 @@ export default defineConfig({
3839
},
3940
],
4041
],
41-
// shikiConfig: {
42-
// theme: "one-dark-pro",
43-
// wrap: true,
44-
// },
42+
shikiConfig: {
43+
// For more themes, visit https://shiki.style/themes
44+
themes: { light: "min-light", dark: "night-owl" },
45+
wrap: true,
46+
},
4547
},
4648
vite: {
4749
// build: {
@@ -56,6 +58,9 @@ export default defineConfig({
5658
},
5759
},
5860
scopedStyleStrategy: "where",
61+
experimental: {
62+
contentLayer: true,
63+
},
5964
// https://about.gitlab.com/blog/2022/10/24/publishing-an-astro-site-with-pages/
6065
// GitLab Pages requires exposed files to be located in a folder called "public".
6166
// So we're instructing Astro to put the static build output in a folder of that name.

eslint.config.mjs

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import js from "@eslint/js";
2+
import globals from "globals";
3+
import tseslint from "typescript-eslint";
4+
import astroParser from "astro-eslint-parser";
5+
import eslintPluginAstro from "eslint-plugin-astro";
6+
7+
export default [
8+
js.configs.recommended,
9+
...tseslint.configs.recommended,
10+
...eslintPluginAstro.configs.recommended,
11+
{
12+
languageOptions: {
13+
globals: {
14+
...globals.browser,
15+
...globals.node,
16+
},
17+
},
18+
},
19+
{
20+
files: ["*.astro"],
21+
languageOptions: {
22+
parser: astroParser,
23+
parserOptions: {
24+
parser: "@typescript-eslint/parser",
25+
extraFileExtensions: [".astro"],
26+
},
27+
},
28+
},
29+
{
30+
files: ["tailwind.config.cjs", "**/*.d.ts"],
31+
rules: {
32+
"@typescript-eslint/no-require-imports": "off",
33+
"@typescript-eslint/triple-slash-reference": "off",
34+
},
35+
},
36+
{
37+
rules: {
38+
"@typescript-eslint/no-unused-expressions": "off",
39+
},
40+
},
41+
{
42+
ignores: ["dist/**", ".astro"],
43+
},
44+
];

0 commit comments

Comments
 (0)