Skip to content

Commit

Permalink
Update astro-paper and use revert vod.
Browse files Browse the repository at this point in the history
  • Loading branch information
emeraldjava committed Sep 28, 2024
1 parent 5add796 commit 102f6c9
Show file tree
Hide file tree
Showing 49 changed files with 3,341 additions and 6,553 deletions.
13 changes: 9 additions & 4 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import react from "@astrojs/react";
import remarkToc from "remark-toc";
import remarkCollapse from "remark-collapse";
import sitemap from "@astrojs/sitemap";
import { SITE } from "./src/config";

// https://astro.build/config
export default defineConfig({
Expand Down Expand Up @@ -38,10 +39,11 @@ export default defineConfig({
},
],
],
// shikiConfig: {
// theme: "one-dark-pro",
// wrap: true,
// },
shikiConfig: {
// For more themes, visit https://shiki.style/themes
themes: { light: "min-light", dark: "night-owl" },
wrap: true,
},
},
vite: {
// build: {
Expand All @@ -56,6 +58,9 @@ export default defineConfig({
},
},
scopedStyleStrategy: "where",
experimental: {
contentLayer: true,
},
// https://about.gitlab.com/blog/2022/10/24/publishing-an-astro-site-with-pages/
// GitLab Pages requires exposed files to be located in a folder called "public".
// So we're instructing Astro to put the static build output in a folder of that name.
Expand Down
44 changes: 44 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import astroParser from "astro-eslint-parser";
import eslintPluginAstro from "eslint-plugin-astro";

export default [
js.configs.recommended,
...tseslint.configs.recommended,
...eslintPluginAstro.configs.recommended,
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
},
{
files: ["*.astro"],
languageOptions: {
parser: astroParser,
parserOptions: {
parser: "@typescript-eslint/parser",
extraFileExtensions: [".astro"],
},
},
},
{
files: ["tailwind.config.cjs", "**/*.d.ts"],
rules: {
"@typescript-eslint/no-require-imports": "off",
"@typescript-eslint/triple-slash-reference": "off",
},
},
{
rules: {
"@typescript-eslint/no-unused-expressions": "off",
},
},
{
ignores: ["dist/**", ".astro"],
},
];
Loading

0 comments on commit 102f6c9

Please sign in to comment.