Skip to content

Commit 4affab5

Browse files
committed
Clean up
1 parent e438c7c commit 4affab5

8 files changed

Lines changed: 44 additions & 49 deletions

File tree

.frontmatter/content/mediaDb.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

.markdownlint.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

astro.config.mjs

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ import markdoc from '@astrojs/markdoc'
1717
// https://astro.build/config
1818
export default defineConfig({
1919
vite: {
20-
plugins: [tailwindcss()],
21-
ssr: {
22-
external: ['svgo'],
23-
noExternal: ['swiper']
24-
},
25-
optimizeDeps: { include: ['leaflet'] }
20+
plugins: [tailwindcss()]
2621
},
2722
site: 'https://hellotham.github.io',
2823
base: '/hello-astro/',
@@ -39,7 +34,15 @@ export default defineConfig({
3934
markdown: {
4035
extendDefaultPlugins: true,
4136
remarkPlugins: [remarkReadingTime, remarkMath, remarkDiagram, remarkEmoji],
42-
rehypePlugins: [rehypeKatex]
37+
rehypePlugins: [rehypeKatex],
38+
shikiConfig: {
39+
themes: {
40+
light: 'github-light',
41+
dark: 'github-dark'
42+
},
43+
// Enable word wrap to prevent horizontal scrolling
44+
wrap: true
45+
}
4346
},
4447
scopedStyleStrategy: 'where'
4548
})

eslint.config.mjs

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import js from '@eslint/js'
44
import tseslint from 'typescript-eslint'
55
import astro from 'eslint-plugin-astro'
66
import prettier from 'eslint-plugin-prettier'
7-
// import markdown from '@eslint/markdown'
7+
import markdown from '@eslint/markdown'
88
import * as mdx from 'eslint-plugin-mdx'
99

1010
// parsers
@@ -57,18 +57,18 @@ export default defineConfig([
5757
'@typescript-eslint/no-explicit-any': 'off' // you may want this as it can get annoying
5858
}
5959
},
60-
// {
61-
// files: ['**/*.md'],
62-
// plugins: {
63-
// markdown
64-
// },
65-
// language: 'markdown/gfm',
66-
// processor: 'markdown/markdown',
67-
// rules: {
68-
// // Minimal rules for markdown to avoid conflicts
69-
// 'no-html': 'off'
70-
// }
71-
// },
60+
{
61+
files: ['**/*.md'],
62+
plugins: {
63+
markdown
64+
},
65+
language: 'markdown/gfm',
66+
processor: 'markdown/markdown',
67+
rules: {
68+
// Minimal rules for markdown to avoid conflicts
69+
'no-html': 'off'
70+
}
71+
},
7272
{
7373
...mdx.flat,
7474
rules: {

frontmatter.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "hello-astro",
33
"description": "Hello Astro is a full featured Astro corporate/marketing/blog starter theme written in Typescript and TailwindCSS. It supports Markdown and MDX based pages and blog posts.",
4-
"version": "5.1.0",
4+
"version": "5.2.0",
55
"scripts": {
66
"dev": "astro dev",
77
"clean": "rm -rf node_modules .astro dist",
@@ -16,15 +16,17 @@
1616
"astro": "astro"
1717
},
1818
"devDependencies": {
19-
"@astrojs/alpinejs": "0.4.9",
20-
"@astrojs/mdx": "4.3.6",
21-
"@astrojs/sitemap": "3.6.0",
19+
"@astrojs/alpinejs": "^0.4.9",
20+
"@astrojs/check": "^0.9.4",
21+
"@astrojs/mdx": "^4.3.6",
22+
"@astrojs/sitemap": "^3.6.0",
23+
"@eslint/markdown": "^7.3.0",
2224
"@tailwindcss/forms": "^0.5.10",
2325
"@tailwindcss/typography": "^0.5.19",
2426
"@types/alpinejs": "^3.13.11",
2527
"@typescript-eslint/parser": "^8.45.0",
2628
"alpinejs": "^3.15.0",
27-
"astro": "5.14.1",
29+
"astro": "^5.14.1",
2830
"astro-robots-txt": "^1.0.0",
2931
"eslint": "^9.37.0",
3032
"eslint-plugin-astro": "^1.3.1",
@@ -42,15 +44,13 @@
4244
"remark-emoji": "^5.0.2",
4345
"remark-math": "^6.0.0",
4446
"schema-dts": "^1.1.5",
45-
"typescript": "~5.9.3",
47+
"typescript": "^5.9.3",
4648
"typescript-eslint": "^8.45.0",
4749
"unist-util-visit": "^5.0.0"
4850
},
4951
"dependencies": {
50-
"@astrojs/check": "^0.9.4",
5152
"@astrojs/markdoc": "^0.15.7",
52-
"@astrojs/rss": "4.0.12",
53-
"@eslint/markdown": "^7.3.0",
53+
"@astrojs/rss": "^4.0.12",
5454
"@iconify-json/bi": "^1.2.6",
5555
"@iconify-json/heroicons": "^1.2.3",
5656
"@tailwindcss/vite": "^4.1.14",

pnpm-lock.yaml

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

src/env.d.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,3 @@
33
declare module 'hero-patterns'
44
declare module 'lunr'
55
declare module 'photoswipe-dynamic-caption-plugin'
6-
declare module '@akebifiky/remark-simple-plantuml'

0 commit comments

Comments
 (0)