Skip to content

Commit 6556756

Browse files
committed
v5.1.0
1 parent ccb70a2 commit 6556756

File tree

10 files changed

+338
-551
lines changed

10 files changed

+338
-551
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@ jobs:
2020
steps:
2121
- name: Checkout your repository using git
2222
uses: actions/checkout@v4
23-
- name: Install Playwright Browsers
24-
run: npx playwright install --with-deps
2523
- name: Install, build, and upload your site
26-
uses: withastro/action@v2
24+
uses: withastro/action@v4
2725
# with:
28-
# package-manager: pnpm
29-
# node-version: 18
30-
# path: . # The root location of your Astro project inside the repository. (optional)
26+
# package-manager: pnpm@latest
27+
# node-version: 22
28+
# path: . # The root location of your Astro project inside the repository. (optional)
3129

3230
deploy:
3331
needs: build

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,3 +256,7 @@ All commands are run from the root of the project, from a terminal:
256256
- Updated prettier and eslint config
257257
- Fixed dark mode with Tailwind CSS 4
258258
- Used img-svg in rehype-mermaid
259+
- 5.1.0: Major changes:
260+
- Migrated to astro-mermaid, astro-plantuml
261+
- Fixed Tailwind 4 plugin support
262+
- Updated Katex CSS to 0.16.22

astro.config.mjs

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,16 @@ import mdx from '@astrojs/mdx'
44
import tailwindcss from '@tailwindcss/vite'
55
import alpinejs from '@astrojs/alpinejs'
66
import robotsTxt from 'astro-robots-txt'
7+
import plantuml from 'astro-plantuml'
8+
import mermaid from 'astro-mermaid'
79
import remarkMath from 'remark-math'
810
import remarkEmoji from 'remark-emoji'
911
import rehypeKatex from 'rehype-katex'
10-
import rehypeMermaid from 'rehype-mermaid'
11-
import remarkPlantUML from '@akebifiky/remark-simple-plantuml'
1212
import { remarkReadingTime } from './remark-plugins/remark-reading-time.mjs'
1313
import { remarkDiagram } from './remark-plugins/remark-diagram.mjs'
1414
import icon from 'astro-icon'
15-
1615
import markdoc from '@astrojs/markdoc'
1716

18-
import expressiveCode from 'astro-expressive-code'
19-
2017
// https://astro.build/config
2118
export default defineConfig({
2219
vite: {
@@ -29,19 +26,20 @@ export default defineConfig({
2926
},
3027
site: 'https://hellotham.github.io',
3128
base: '/hello-astro/',
32-
integrations: [icon(), sitemap(), alpinejs(), robotsTxt(), markdoc(), expressiveCode(), mdx()],
29+
integrations: [
30+
icon(),
31+
sitemap(),
32+
alpinejs(),
33+
robotsTxt(),
34+
markdoc(),
35+
mdx(),
36+
plantuml(),
37+
mermaid()
38+
],
3339
markdown: {
3440
extendDefaultPlugins: true,
35-
remarkPlugins: [remarkReadingTime, remarkMath, remarkPlantUML, remarkDiagram, remarkEmoji],
36-
rehypePlugins: [
37-
[
38-
rehypeMermaid,
39-
{
40-
strategy: 'img-svg'
41-
}
42-
],
43-
rehypeKatex
44-
]
41+
remarkPlugins: [remarkReadingTime, remarkMath, remarkDiagram, remarkEmoji],
42+
rehypePlugins: [rehypeKatex]
4543
},
4644
scopedStyleStrategy: 'where'
4745
})

package.json

Lines changed: 7 additions & 10 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": "4.0.0",
4+
"version": "5.1.0",
55
"scripts": {
66
"dev": "astro dev",
77
"clean": "rm -rf node_modules .astro dist",
@@ -16,19 +16,16 @@
1616
"astro": "astro"
1717
},
1818
"devDependencies": {
19-
"@akebifiky/remark-simple-plantuml": "^1.0.2",
2019
"@astrojs/alpinejs": "0.4.8",
2120
"@astrojs/mdx": "4.3.4",
2221
"@astrojs/sitemap": "3.5.1",
23-
"@tailwindcss/aspect-ratio": "^0.4.2",
2422
"@tailwindcss/forms": "^0.5.10",
25-
"@tailwindcss/line-clamp": "^0.4.4",
2623
"@tailwindcss/typography": "^0.5.16",
2724
"@types/alpinejs": "^3.13.11",
2825
"@types/leaflet": "^1.9.20",
29-
"@typescript-eslint/parser": "^8.41.0",
26+
"@typescript-eslint/parser": "^8.42.0",
3027
"alpinejs": "^3.14.9",
31-
"astro": "5.13.3",
28+
"astro": "5.13.5",
3229
"astro-robots-txt": "^1.0.0",
3330
"eslint": "^9.34.0",
3431
"eslint-plugin-astro": "^1.3.1",
@@ -44,11 +41,11 @@
4441
"prettier-plugin-tailwindcss": "^0.6.14",
4542
"reading-time": "^1.5.0",
4643
"rehype-katex": "^7.0.1",
47-
"remark-emoji": "^5.0.1",
44+
"remark-emoji": "^5.0.2",
4845
"remark-math": "^6.0.0",
4946
"schema-dts": "^1.1.5",
5047
"typescript": "~5.9.2",
51-
"typescript-eslint": "^8.41.0",
48+
"typescript-eslint": "^8.42.0",
5249
"unist-util-visit": "^5.0.0"
5350
},
5451
"dependencies": {
@@ -59,9 +56,10 @@
5956
"@iconify-json/bi": "^1.2.6",
6057
"@iconify-json/heroicons": "^1.2.2",
6158
"@tailwindcss/vite": "^4.1.12",
62-
"astro-expressive-code": "^0.41.3",
6359
"astro-geo-map": "^2.0.0",
6460
"astro-icon": "^1.1.5",
61+
"astro-mermaid": "^1.0.4",
62+
"astro-plantuml": "^0.1.4",
6563
"astro-seo": "^0.8.4",
6664
"hero-patterns": "^2.1.0",
6765
"katex": "^0.16.22",
@@ -71,7 +69,6 @@
7169
"photoswipe": "^5.4.4",
7270
"photoswipe-dynamic-caption-plugin": "^1.2.7",
7371
"playwright": "^1.55.0",
74-
"rehype-mermaid": "^3.0.0",
7572
"swiper": "^11.2.10",
7673
"tailwindcss": "^4.1.12"
7774
},

0 commit comments

Comments
 (0)