Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ import starlightLinksValidator from 'starlight-links-validator';
import starlightSidebarTopics from 'starlight-sidebar-topics';
import rehypePlugins from './src/plugins/rehypePluginKit.ts';
import { getTranslations } from './src/starlight-sidebar/translate.ts';
import { devServerFileWatcher } from './src/integrations/dev-file-watcher.ts';
import { remarkFallbackLang } from './src/plugins/remark-fallback-pages.ts';
import starlightLlmsTxt from 'starlight-llms-txt';

// Define the Site URL
const site = process.env.DOKPLOY_DEPLOY_URL
Expand Down Expand Up @@ -62,17 +60,6 @@ export default defineConfig({
remarkPlugins: [remarkFallbackLang()],
},
integrations: [
devServerFileWatcher([
'./hostUtils.ts',
'./typedoc.config.ts',
'./starlight-types.ts',
'./src/starlight-sidebar/*',
'./src/content.ts',
'./src/share-link.ts',
'./src/util/*.ts',
'./src/plugins/*.{ts,js}',
'./src/integrations/*.ts',
]),
ui(),
starlight({
title: 'StudioCMS',
Expand Down Expand Up @@ -169,20 +156,6 @@ export default defineConfig({
],
plugins: [
...linkValidator,
starlightLlmsTxt({
description:
"StudioCMS is a Server-Side Rendered (SSR) Headless CMS built specifically for Astro. It is designed to seamlessly integrate with Astro projects, providing a robust and efficient content management solution that leverages Astro's strengths in performance and developer experience.",
customSets: [
{
label: 'Getting Started',
description:
'Essential resources to help you get up and running with StudioCMS quickly and effectively.',
paths: ['en/start-here/**'],
},
],
exclude: ['**/guides/contributing/**'],
rawContent: true,
}),
starlightImageZoom(),
starlightSidebarTopics(
[
Expand Down
19 changes: 11 additions & 8 deletions ec.config.mjs
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import { defineEcConfig } from '@astrojs/starlight/expressive-code';
import { transformerColorizedBrackets } from '@shikijs/colorized-brackets';
import ecTwoSlash from 'expressive-code-twoslash';
import ts from 'typescript';

export default defineEcConfig({
shiki: {
transformers: [transformerColorizedBrackets()],
},
themes: ['dark-plus', 'light-plus'],
plugins: [
const linkValidatorEnabled = process.env.CHECK_LINKS
? []
: [
ecTwoSlash({
twoslashOptions: {
handbookOptions: {
Expand All @@ -18,9 +14,16 @@ export default defineEcConfig({
moduleResolution: ts.ModuleResolutionKind.Bundler,
target: ts.ScriptTarget.ESNext,
module: ts.ModuleKind.ESNext,
lib: [], // Don't include any libs, that way we can build within memory limit errors
},
},
}),
})
];

export default defineEcConfig({
themes: ['dark-plus', 'light-plus'],
plugins: [
...linkValidatorEnabled,
],
styleOverrides: {
frames: {
Expand Down
14 changes: 5 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@
"scripts": {
"dev": "pnpm gen-changelogs && astro dev",
"check": "astro check",
"build": "NODE_OPTIONS='--max-old-space-size=8192' pnpm gen-changelogs && astro build",

"prebuild": "pnpm gen-changelogs",
"build": "NODE_OPTIONS='--max-old-space-size=16384' astro build",

"preview": "astro preview",
"astro": "astro",
"lunaria:build": "tsm --require=./scripts/filter-warnings.cjs ./scripts/lunaria.mts",
Expand Down Expand Up @@ -49,36 +52,29 @@
"@docsearch/js": "^3.6.0",
"@fontsource-variable/onest": "5.1.1",
"@lunariajs/core": "https://pkg.pr.new/lunariajs/lunaria/@lunariajs/core@722c34c",
"@shikijs/colorized-brackets": "^3.2.1",
"@studiocms/ui": "^1.0.0",
"@studiocms/web-vitals": "^4.5.3",
"@types/hast": "^3.0.4",
"@types/html-escaper": "^3.0.4",
"@types/mdast": "^4.0.4",
"@types/node": "^24.1.0",
"@types/semver": "^7.7.0",
"astro": "^5.18.0",
"astro-embed": "^0.12.0",
"astro-integration-kit": "^0.19.1",
"effect": "^3.19.19",
"expressive-code-twoslash": "^0.5.3",
"expressive-code-twoslash": "https://pkg.pr.new/expressive-code-twoslash@9368115",
"fast-glob": "^3.3.3",
"hast-util-to-string": "^3.0.1",
"hastscript": "^9.0.1",
"html-escaper": "^3.0.3",
"knip": "^5.46.0",
"mdast-util-from-markdown": "^2.0.2",
"mdast-util-to-markdown": "^2.1.2",
"mdast-util-to-string": "^4.0.0",
"p-retry": "^6.2.1",
"rehype-autolink-headings": "^7.1.0",
"rehype-external-links": "^3.0.0",
"rehype-slug": "^6.0.0",
"semver": "^7.7.1",
"sharp": "^0.33.5",
"starlight-image-zoom": "^0.13.2",
"starlight-links-validator": "^0.19.2",
"starlight-llms-txt": "^0.7.0",
"starlight-package-managers": "^0.12.0",
"starlight-sidebar-topics": "^0.6.2",
"tsm": "^2.3.0",
Expand Down
Loading
Loading