Skip to content

Commit 2aa8bfd

Browse files
committed
add ew sections, blog, bump deps
1 parent c168b65 commit 2aa8bfd

File tree

12 files changed

+1603
-1398
lines changed

12 files changed

+1603
-1398
lines changed

astro.config.mjs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,18 @@ import starlightSidebarTopics from 'starlight-sidebar-topics';
55
import starlightImageZoom from 'starlight-image-zoom';
66
import rehypeAstroRelativeMarkdownLinks from "astro-rehype-relative-markdown-links";
77
import starlightScrollToTop from 'starlight-scroll-to-top';
8+
import starlightBlog from 'starlight-blog';
9+
import astroExpressiveCode from 'astro-expressive-code';
810

911
const options = {
1012
collectionBase: false,
1113
};
1214

1315
export default defineConfig({
1416
integrations: [
17+
astroExpressiveCode({
18+
themes: ['material-theme'],
19+
}),
1520
starlight({
1621
title: '',
1722
favicon: '/favicon.svg',
@@ -31,6 +36,9 @@ export default defineConfig({
3136
'./src/styles/global.css',
3237
],
3338
plugins: [
39+
starlightBlog({
40+
41+
}),
3442
starlightImageZoom(),
3543
starlightSidebarTopics([
3644
{
@@ -142,6 +150,13 @@ export default defineConfig({
142150
{label: 'Wiki', autogenerate: {directory: 'wiki/'}},
143151
],
144152
},
153+
{
154+
label: 'blog',
155+
link: '/blog',
156+
items: [
157+
{label: 'blog', autogenerate: {directory: 'blog/'}},
158+
],
159+
},
145160
]),
146161
starlightScrollToTop({
147162
position: 'right',

package.json

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,24 @@
1010
"astro": "astro"
1111
},
1212
"dependencies": {
13-
"@astrojs/markdown-remark": "^6.3.6",
14-
"@astrojs/react": "^4.3.0",
15-
"@astrojs/starlight": "^0.35.2",
16-
"@astrojs/starlight-tailwind": "^4.0.1",
17-
"@tailwindcss/vite": "^4.1.13",
18-
"astro": "^5.13.5",
13+
"@astrojs/markdown-remark": "^6.3.9",
14+
"@astrojs/starlight": "^0.36.3",
15+
"@astrojs/starlight-tailwind": "^4.0.2",
16+
"@tailwindcss/vite": "^4.1.17",
17+
"astro": "^5.16.0",
1918
"astro-breadcrumbs": "^3.3.1",
19+
"astro-expressive-code": "^0.41.3",
2020
"astro-rehype-relative-markdown-links": "0.18.1",
21-
"astro-vtbot": "^2.1.8",
21+
"astro-vtbot": "^2.1.9",
2222
"meilisearch-docsearch": "^0.8.0",
2323
"schema-dts": "^1.1.5",
24-
"sharp": "^0.34.3",
25-
"starlight-image-zoom": "^0.13.0",
26-
"starlight-scroll-to-top": "^0.3.1",
27-
"starlight-sidebar-topics": "^0.6.0",
28-
"swiper": "^11.2.10",
29-
"tailwind-merge": "^3.3.1",
30-
"tailwindcss": "^4.1.13"
24+
"sharp": "^0.34.5",
25+
"starlight-blog": "^0.25.1",
26+
"starlight-image-zoom": "^0.13.2",
27+
"starlight-scroll-to-top": "^0.4.0",
28+
"starlight-sidebar-topics": "^0.6.2",
29+
"swiper": "^12.0.3",
30+
"tailwind-merge": "^3.4.0",
31+
"tailwindcss": "^4.1.17"
3132
}
3233
}

pnpm-lock.yaml

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

src/components/Footer.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ const isHomepage = Astro.locals.starlightRoute.id === '';
2121
{/* Brand Column */}
2222
<div class="lg:col-span-1">
2323
<div class="flex items-center space-x-2 mb-6">
24-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-code2 h-10 w-10 text-yellow-400"><path d="m18 16 4-4-4-4"></path><path d="m6 8-4 4 4 4"></path><path d="m14.5 4-5 16"></path></svg>
25-
<span class="text-2xl font-bold bg-gradient-to-r from-yellow-400 to-purple-400 bg-clip-text text-transparent">
24+
<svg style="width: 36px; height: 34px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 332.972 316.891" height="338.017" width="355.17"><g transform="translate(-290.5 -325.712)"><ellipse ry="150.063" rx="147.984" cx="458.604" cy="491.613" fill="#607d8b"/><ellipse ry="150.063" rx="147.984" cx="438.82" cy="478.594" fill="#ffe680"/></g><g fill="#607d8b" stroke="#fff"><text transform="matrix(.995 0 0 1.00502 -290.5 -325.712)" y="521.758" x="467.057" style="line-height:0%" font-weight="400" font-size="11.675" font-family="sans-serif" letter-spacing="0" word-spacing="0" stroke-width="3.888"><tspan style="line-height:1.25;-inkscape-font-specification:'Corbel Bold'" y="521.758" x="467.057" font-weight="700" font-size="140.331" font-family="Corbel">S</tspan></text><g style="line-height:125%"><path style="-inkscape-font-specification:'Corbel Bold'" d="M329.343 383.843l-.266 3.305c-61.317 7.315-50.909-67.917-1.023-51.38l-1.27 2.214c-41.039-12.634-50.598 52.623 2.56 45.861z" font-weight="700" font-size="98.432" font-family="Corbel" transform="matrix(3.72786 -.08906 .09887 4.05186 -1102.799 -1299.182)" letter-spacing="0" word-spacing="0"/></g><path d="M65.556 87.124l-2.23 14.044 75.387 103.306L227.577 2.015l-45.284.498-56.73 156.334z" fill-rule="evenodd" stroke-width="3.888"/></g></svg>
25+
<span class="text-2xl font-bold bg-clip-text text-white ">
2626
CodeceptJS
2727
</span>
2828
</div>

src/components/SiteTitle.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ const { siteTitle, siteTitleHref } = Astro.locals.starlightRoute;
2929
)
3030
}
3131
<span class:list={{ 'sr-only': config.logo?.replacesTitle }} translate="no">
32-
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-code2 h-8 w-8 text-yellow-600"><path d="m18 16 4-4-4-4"></path><path d="m6 8-4 4 4 4"></path><path d="m14.5 4-5 16"></path></svg>
33-
<span class="text-xl font-bold bg-gradient-to-r from-yellow-600 to-purple-600 bg-clip-text text-transparent">CodeceptJS</span>
32+
<svg style="width: 36px; height: 34px" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 332.972 316.891" height="338.017" width="355.17"><g transform="translate(-290.5 -325.712)"><ellipse ry="150.063" rx="147.984" cx="458.604" cy="491.613" fill="#607d8b"/><ellipse ry="150.063" rx="147.984" cx="438.82" cy="478.594" fill="#ffe680"/></g><g fill="#607d8b" stroke="#fff"><text transform="matrix(.995 0 0 1.00502 -290.5 -325.712)" y="521.758" x="467.057" style="line-height:0%" font-weight="400" font-size="11.675" font-family="sans-serif" letter-spacing="0" word-spacing="0" stroke-width="3.888"><tspan style="line-height:1.25;-inkscape-font-specification:'Corbel Bold'" y="521.758" x="467.057" font-weight="700" font-size="140.331" font-family="Corbel">S</tspan></text><g style="line-height:125%"><path style="-inkscape-font-specification:'Corbel Bold'" d="M329.343 383.843l-.266 3.305c-61.317 7.315-50.909-67.917-1.023-51.38l-1.27 2.214c-41.039-12.634-50.598 52.623 2.56 45.861z" font-weight="700" font-size="98.432" font-family="Corbel" transform="matrix(3.72786 -.08906 .09887 4.05186 -1102.799 -1299.182)" letter-spacing="0" word-spacing="0"/></g><path d="M65.556 87.124l-2.23 14.044 75.387 103.306L227.577 2.015l-45.284.498-56.73 156.334z" fill-rule="evenodd" stroke-width="3.888"/></g></svg>
33+
<span class="text-xl font-bold bg-clip-text text-gray-700 dark:text-gray-300">CodeceptJS</span>
3434
</span>
3535
</a>
3636

src/content.config.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
import { defineCollection } from 'astro:content';
2-
import { docsLoader } from '@astrojs/starlight/loaders';
32
import { docsSchema } from '@astrojs/starlight/schema';
3+
import { docsLoader } from '@astrojs/starlight/loaders';
4+
import { topicSchema } from 'starlight-sidebar-topics/schema';
5+
import { blogSchema } from 'starlight-blog/schema';
46

57
export const collections = {
6-
docs: defineCollection({ loader: docsLoader(), schema: docsSchema() }),
8+
docs: defineCollection({
9+
loader: docsLoader(),
10+
schema: docsSchema({
11+
extend: (context) => blogSchema(context).merge(topicSchema),
12+
}),
13+
}),
714
};
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
title: My first blog post
3+
date: 2023-07-24
4+
---
5+
6+
## Hello
7+
8+
Hello world!

0 commit comments

Comments
 (0)