Compare commits

..

No commits in common. "main" and "@matthiesenxyz/astro-ghostcms-brutalbyelian@0.0.16" have entirely different histories.

25 changed files with 512 additions and 990 deletions

View File

@ -26,7 +26,7 @@ jobs:
- name: Setup npmrc - name: Setup npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
- name: install dependencies - name: install dependencies
run: pnpm install --no-frozen-lockfile run: pnpm install
- name: create and publish versions - name: create and publish versions
uses: matthiesenxyz/changeset@v1 uses: matthiesenxyz/changeset@v1
with: with:

View File

@ -22,10 +22,10 @@
"test:starlight:coverage": "pnpm --filter starlight-ghostcms test:coverage" "test:starlight:coverage": "pnpm --filter starlight-ghostcms test:coverage"
}, },
"devDependencies": { "devDependencies": {
"@biomejs/biome": "1.6.1", "@biomejs/biome": "1.6.0",
"@changesets/cli": "^2.27.1", "@changesets/cli": "^2.27.1",
"@vitest/ui": "^1.4.0", "@vitest/ui": "^1.3.1",
"vitest": "^1.4.0", "vitest": "^1.3.1",
"vitest-fetch-mock": "^0.2.2" "vitest-fetch-mock": "^0.2.2"
} }
} }

View File

@ -1,32 +1,5 @@
# @matthiesenxyz/astro-ghostcms-brutalbyelian # @matthiesenxyz/astro-ghostcms-brutalbyelian
## 0.0.18
### Patch Changes
- f82035b: Bump dependencies:
- astro-integration-kit from to
- @unocss/astro from to
- @unocss/reset from to
- astro-font from to
- unocss from to
- sass from to
- @matthiesenxyz/astro-gists from to
- vite-tsconfig-paths from to
- astro from to
- Updated dependencies [f82035b]
- @matthiesenxyz/astro-ghostcms@3.3.5
## 0.0.17
### Patch Changes
- f097c6a: Adds a toggleswitch to allow users to disable astro-remote usage for rendering ghost-content
- Updated dependencies [f097c6a]
- @matthiesenxyz/astro-ghostcms@3.3.4
## 0.0.16 ## 0.0.16
### Patch Changes ### Patch Changes

View File

@ -1,7 +1,7 @@
{ {
"name": "@matthiesenxyz/astro-ghostcms-brutalbyelian", "name": "@matthiesenxyz/astro-ghostcms-brutalbyelian",
"description": "ElianCodes Brutal theme modified to work with Astro-GhostCMS", "description": "ElianCodes Brutal theme modified to work with Astro-GhostCMS",
"version": "0.0.18", "version": "0.0.16",
"homepage": "https://astro-ghostcms.xyz/", "homepage": "https://astro-ghostcms.xyz/",
"type": "module", "type": "module",
"license": "MIT", "license": "MIT",
@ -42,11 +42,11 @@
}, },
"scripts": {}, "scripts": {},
"peerDependencies": { "peerDependencies": {
"@matthiesenxyz/astro-ghostcms": ">=3.3.5", "@matthiesenxyz/astro-ghostcms": ">=3.3.2",
"astro": ">=4.4.1" "astro": ">=4.4.1"
}, },
"devDependencies": { "devDependencies": {
"@typescript-eslint/parser": "^7.2.0", "@typescript-eslint/parser": "^7.1.1",
"eslint": "^8.57.0", "eslint": "^8.57.0",
"eslint-plugin-astro": "^0.31.4", "eslint-plugin-astro": "^0.31.4",
"eslint-plugin-jsx-a11y": "^6.8.0", "eslint-plugin-jsx-a11y": "^6.8.0",
@ -57,12 +57,12 @@
"@eliancodes/brutal-ui": "^0.2.6", "@eliancodes/brutal-ui": "^0.2.6",
"@iconify-json/logos": "^1.1.41", "@iconify-json/logos": "^1.1.41",
"@iconify-json/uil": "^1.1.8", "@iconify-json/uil": "^1.1.8",
"@unocss/astro": "^0.58.6", "@unocss/astro": "^0.58.5",
"@unocss/reset": "^0.58.6", "@unocss/reset": "^0.58.5",
"astro-font": "^0.0.78", "astro-font": "^0.0.77",
"astro-remote": "0.3.2", "astro-remote": "0.3.2",
"typescript": "^5.4.2", "typescript": "^5.4.2",
"ultrahtml": "^1.5.3", "ultrahtml": "^1.5.3",
"unocss": "^0.58.6" "unocss": "^0.58.5"
} }
} }

View File

@ -2,10 +2,6 @@
import { getGhostImgPath } from "../../utils"; import { getGhostImgPath } from "../../utils";
import type { Settings } from "@matthiesenxyz/astro-ghostcms/api"; import type { Settings } from "@matthiesenxyz/astro-ghostcms/api";
import { Markup } from 'astro-remote'; import { Markup } from 'astro-remote';
import config from "virtual:@matthiesenxyz/astro-ghostcms/config";
const useRemote = config.ThemeProvider.astroRemote.enable;
export type Props = { export type Props = {
image: string; image: string;
alt?: string; alt?: string;
@ -27,8 +23,5 @@ const { image, alt, caption = "", settings, transitionName } = Astro.props as Pr
alt={alt} alt={alt}
transition:name={transitionName} transition:name={transitionName}
/> />
{caption && ( {caption && <figcaption class="text-ctp-overlay2"><Markup content={caption} /></figcaption>}
<figcaption class="text-ctp-overlay2">
{useRemote ? <Markup content={caption} /> : <Fragment set:html={caption} />}
</figcaption>)}
</figure> </figure>

View File

@ -7,9 +7,6 @@ import BlogPostHeader from "../components/blog/BlogPostHeader.astro";
import { Markup } from 'astro-remote'; import { Markup } from 'astro-remote';
import * as C from "../components/ghostrender"; import * as C from "../components/ghostrender";
import { Card } from "@eliancodes/brutal-ui"; import { Card } from "@eliancodes/brutal-ui";
import config from "virtual:@matthiesenxyz/astro-ghostcms/config";
const useRemote = config.ThemeProvider.astroRemote.enable;
export async function getStaticPaths() { export async function getStaticPaths() {
const [posts, pages, settings] = await Promise.all([getAllPosts(), await getAllPages(), await getSettings()]); const [posts, pages, settings] = await Promise.all([getAllPosts(), await getAllPages(), await getSettings()]);
@ -33,7 +30,7 @@ invariant(settings, "Settings are required");
<div class="my-5"/> <div class="my-5"/>
<div id="ghost"> <div id="ghost">
{useRemote ? <Markup <Markup
content={post.html} content={post.html}
sanitize={{ sanitize={{
allowComponents: true, allowComponents: true,
@ -49,7 +46,7 @@ invariant(settings, "Settings are required");
p: C.Paragraph, p: C.Paragraph,
astrocard: C.astrocard, astrocard: C.astrocard,
}} }}
/> : <Fragment set:html={post.html} />} />
</div> </div>
</article> </article>

View File

@ -1,13 +1,5 @@
# @matthiesenxyz/astro-ghostcms-catppuccin # @matthiesenxyz/astro-ghostcms-catppuccin
## 0.0.14
### Patch Changes
- f097c6a: Adds a toggleswitch to allow users to disable astro-remote usage for rendering ghost-content
- Updated dependencies [f097c6a]
- @matthiesenxyz/astro-ghostcms@3.3.4
## 0.0.13 ## 0.0.13
### Patch Changes ### Patch Changes

View File

@ -1,7 +1,7 @@
{ {
"name": "@matthiesenxyz/astro-ghostcms-catppuccin", "name": "@matthiesenxyz/astro-ghostcms-catppuccin",
"description": "A dark theme made with Catppuccin and TailwindCSS for Astro-GhostCMS", "description": "A dark theme made with Catppuccin and TailwindCSS for Astro-GhostCMS",
"version": "0.0.14", "version": "0.0.13",
"homepage": "https://astro-ghostcms.xyz/", "homepage": "https://astro-ghostcms.xyz/",
"type": "module", "type": "module",
"license": "MIT", "license": "MIT",
@ -50,7 +50,7 @@
}, },
"scripts": {}, "scripts": {},
"peerDependencies": { "peerDependencies": {
"@matthiesenxyz/astro-ghostcms": ">=3.3.5", "@matthiesenxyz/astro-ghostcms": ">=3.3.3",
"astro": ">=4.4.0" "astro": ">=4.4.0"
}, },
"devDependencies": { "devDependencies": {
@ -60,7 +60,7 @@
"@astrojs/tailwind": "^5.1.0", "@astrojs/tailwind": "^5.1.0",
"@catppuccin/tailwindcss": "0.1.6", "@catppuccin/tailwindcss": "0.1.6",
"@fontsource-variable/inter": "^5.0.17", "@fontsource-variable/inter": "^5.0.17",
"@matthiesenxyz/astro-ghostcms": "^3.3.5", "@matthiesenxyz/astro-ghostcms": "^3.3.3",
"@tailwindcss/typography": "^0.5.10", "@tailwindcss/typography": "^0.5.10",
"astro-navbar": "^2.3.1", "astro-navbar": "^2.3.1",
"astro-remote": "^0.3.2", "astro-remote": "^0.3.2",

View File

@ -4,9 +4,6 @@ import FeatureImage from "./FeatureImage.astro";
import AuthorList from "./AuthorList.astro"; import AuthorList from "./AuthorList.astro";
import { formatDate } from "../utils"; import { formatDate } from "../utils";
import { Markup } from 'astro-remote'; import { Markup } from 'astro-remote';
import config from "virtual:@matthiesenxyz/astro-ghostcms/config";
const useRemote = config.ThemeProvider.astroRemote.enable;
export type Props = { export type Props = {
posts: Post[]; posts: Post[];
@ -64,15 +61,13 @@ const latestFeatured = posts[0]
</div> </div>
<div class="divider my-4"/> <div class="divider my-4"/>
<section id="ghostimport" class="text-ctp-subtext1"> <section id="ghostimport" class="text-ctp-subtext1">
{latestFeatured && <Markup
{useRemote ? (latestFeatured && <Markup
content={latestFeatured.html} content={latestFeatured.html}
sanitize={{ sanitize={{
allowComponents: true, allowComponents: true,
allowElements: ['a', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'img', 'figure', 'figcaption', 'ul', 'ol', 'li', 'blockquote', 'pre', 'code', 'em', 'strong', 'del', 'hr', 'br', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'caption', 'div', 'span', 'script', 'astrocard'], allowElements: ['a', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'img', 'figure', 'figcaption', 'ul', 'ol', 'li', 'blockquote', 'pre', 'code', 'em', 'strong', 'del', 'hr', 'br', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'caption', 'div', 'span', 'script', 'astrocard'],
}} }}
/>) : (latestFeatured && <Fragment set:html={latestFeatured.html} />) } /> }
</section> </section>
</div> </div>
</main> </main>

View File

@ -3,9 +3,6 @@ import PostHero from "../components/PostHero.astro";
import PostFooter from "../components/PostFooter.astro"; import PostFooter from "../components/PostFooter.astro";
import { getFeaturedPosts, invariant, type Post, type Settings } from "@matthiesenxyz/astro-ghostcms/api"; import { getFeaturedPosts, invariant, type Post, type Settings } from "@matthiesenxyz/astro-ghostcms/api";
import { Markup } from 'astro-remote'; import { Markup } from 'astro-remote';
import config from "virtual:@matthiesenxyz/astro-ghostcms/config";
const useRemote = config.ThemeProvider.astroRemote.enable;
export type Props = { export type Props = {
post: Post; post: Post;
@ -19,10 +16,10 @@ async function getPostsSet(){
const featuredPosts = await getFeaturedPosts(); const featuredPosts = await getFeaturedPosts();
const fposts = posts; const fposts = posts;
if(featuredPosts.posts.length === 0){ return fposts } if(featuredPosts.posts.length === 0){ return fposts }
else {
const featured = featuredPosts.posts[0] const featured = featuredPosts.posts[0]
return fposts.filter((p: Post)=>p.id !== featured.id) return fposts.filter((p: Post)=>p.id !== featured.id)
}
} }
const mPosts = await getPostsSet() const mPosts = await getPostsSet()
@ -32,7 +29,6 @@ invariant(settings, "Settings not found");
<PostHero post={post} settings={settings} /> <PostHero post={post} settings={settings} />
<div id="ghostimport" class="mt-4 text-ctp-subtext1"> <div id="ghostimport" class="mt-4 text-ctp-subtext1">
{useRemote ? (
<Markup <Markup
content={post.html} content={post.html}
sanitize={{ sanitize={{
@ -40,7 +36,6 @@ invariant(settings, "Settings not found");
allowElements: ['a', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'img', 'figure', 'figcaption', 'ul', 'ol', 'li', 'blockquote', 'pre', 'code', 'em', 'strong', 'del', 'hr', 'br', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'caption', 'div', 'span', 'script', 'astrocard'], allowElements: ['a', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'img', 'figure', 'figcaption', 'ul', 'ol', 'li', 'blockquote', 'pre', 'code', 'em', 'strong', 'del', 'hr', 'br', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'caption', 'div', 'span', 'script', 'astrocard'],
}} }}
/> />
) : <Fragment set:html={post.html} /> }
</div> </div>
<PostFooter post={post} settings={settings} posts={mPosts} /> <PostFooter post={post} settings={settings} posts={mPosts} />

View File

@ -1,32 +1,5 @@
# @matthiesenxyz/astro-ghostcms-theme-default # @matthiesenxyz/astro-ghostcms-theme-default
## 0.1.20
### Patch Changes
- f82035b: Bump dependencies:
- astro-integration-kit from to
- @unocss/astro from to
- @unocss/reset from to
- astro-font from to
- unocss from to
- sass from to
- @matthiesenxyz/astro-gists from to
- vite-tsconfig-paths from to
- astro from to
- Updated dependencies [f82035b]
- @matthiesenxyz/astro-ghostcms@3.3.5
## 0.1.19
### Patch Changes
- f097c6a: Adds a toggleswitch to allow users to disable astro-remote usage for rendering ghost-content
- Updated dependencies [f097c6a]
- @matthiesenxyz/astro-ghostcms@3.3.4
## 0.1.18 ## 0.1.18
### Patch Changes ### Patch Changes

View File

@ -1,7 +1,7 @@
{ {
"name": "@matthiesenxyz/astro-ghostcms-theme-default", "name": "@matthiesenxyz/astro-ghostcms-theme-default",
"description": "Default Theme for astro-ghostcms", "description": "Default Theme for astro-ghostcms",
"version": "0.1.20", "version": "0.1.18",
"homepage": "https://astro-ghostcms.xyz/", "homepage": "https://astro-ghostcms.xyz/",
"type": "module", "type": "module",
"license": "MIT", "license": "MIT",
@ -43,17 +43,17 @@
"scripts": {}, "scripts": {},
"devDependencies": { "devDependencies": {
"@matthiesenxyz/astro-ghostcms": "*", "@matthiesenxyz/astro-ghostcms": "*",
"@astrojs/check": "^0.5.9", "@astrojs/check": "^0.5.7",
"typescript": "^5.4.2" "typescript": "^5.4.2"
}, },
"peerDependencies": { "peerDependencies": {
"@matthiesenxyz/astro-ghostcms": ">=3.3.5", "@matthiesenxyz/astro-ghostcms": ">=3.3.2",
"astro": ">=4.4.0" "astro": ">=4.4.0"
}, },
"dependencies": { "dependencies": {
"astro-font": "^0.0.78", "astro-font": "^0.0.77",
"astro-remote": "^0.3.2", "astro-remote": "^0.3.2",
"sass": "^1.72.0", "sass": "^1.71.1",
"ultrahtml": "^1.5.3" "ultrahtml": "^1.5.3"
} }
} }

View File

@ -2,9 +2,6 @@
import FeatureImage from "../components/FeatureImage.astro"; import FeatureImage from "../components/FeatureImage.astro";
import type { Settings, Page } from "@matthiesenxyz/astro-ghostcms/api"; import type { Settings, Page } from "@matthiesenxyz/astro-ghostcms/api";
import { Markup } from 'astro-remote'; import { Markup } from 'astro-remote';
import config from "virtual:@matthiesenxyz/astro-ghostcms/config";
const useRemote = config.ThemeProvider.astroRemote.enable;
export type Props = { export type Props = {
page: Page; page: Page;
@ -29,7 +26,6 @@ const { page, settings, pageClass } = Astro.props as Props;
<section class="gh-content gh-canvas"> <section class="gh-content gh-canvas">
<h1 class="article-title">{page.title}</h1> <h1 class="article-title">{page.title}</h1>
{useRemote ? (
<Markup <Markup
content={page.html} content={page.html}
sanitize={{ sanitize={{
@ -37,7 +33,6 @@ const { page, settings, pageClass } = Astro.props as Props;
allowElements: ['a', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'img', 'figure', 'figcaption', 'ul', 'ol', 'li', 'blockquote', 'pre', 'code', 'em', 'strong', 'del', 'hr', 'br', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'caption', 'div', 'span', 'script', 'astrocard'], allowElements: ['a', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'img', 'figure', 'figcaption', 'ul', 'ol', 'li', 'blockquote', 'pre', 'code', 'em', 'strong', 'del', 'hr', 'br', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'caption', 'div', 'span', 'script', 'astrocard'],
}} }}
/> />
) : <Fragment set:html={page.html} /> }
</section> </section>
</article> </article>
</main> </main>

View File

@ -3,9 +3,6 @@ import PostHero from "../components/PostHero.astro";
import PostFooter from "../components/PostFooter.astro"; import PostFooter from "../components/PostFooter.astro";
import {invariant, type Post, type Settings } from "@matthiesenxyz/astro-ghostcms/api"; import {invariant, type Post, type Settings } from "@matthiesenxyz/astro-ghostcms/api";
import { Markup } from 'astro-remote'; import { Markup } from 'astro-remote';
import config from "virtual:@matthiesenxyz/astro-ghostcms/config";
const useRemote = config.ThemeProvider.astroRemote.enable;
export type Props = { export type Props = {
post: Post; post: Post;
@ -21,7 +18,6 @@ invariant(settings, "Settings not found");
<article class={`article post ${postClass}`}> <article class={`article post ${postClass}`}>
<PostHero post={post} settings={settings} /> <PostHero post={post} settings={settings} />
<section class="gh-content gh-canvas"> <section class="gh-content gh-canvas">
{useRemote ? (
<Markup <Markup
content={post.html} content={post.html}
sanitize={{ sanitize={{
@ -29,7 +25,6 @@ invariant(settings, "Settings not found");
allowElements: ['a', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'img', 'figure', 'figcaption', 'ul', 'ol', 'li', 'blockquote', 'pre', 'code', 'em', 'strong', 'del', 'hr', 'br', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'caption', 'div', 'span', 'script', 'astrocard'], allowElements: ['a', 'p', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'img', 'figure', 'figcaption', 'ul', 'ol', 'li', 'blockquote', 'pre', 'code', 'em', 'strong', 'del', 'hr', 'br', 'table', 'thead', 'tbody', 'tr', 'th', 'td', 'caption', 'div', 'span', 'script', 'astrocard'],
}} }}
/> />
) : <Fragment set:html={post.html} /> }
</section> </section>
</article> </article>
<PostFooter post={post} settings={settings} posts={posts} /> <PostFooter post={post} settings={settings} posts={posts} />

View File

@ -1,32 +1,5 @@
# @matthiesenxyz/astro-ghostcms # @matthiesenxyz/astro-ghostcms
## 3.3.5
### Patch Changes
- f82035b: Bump dependencies:
- astro-integration-kit from to
- @unocss/astro from to
- @unocss/reset from to
- astro-font from to
- unocss from to
- sass from to
- @matthiesenxyz/astro-gists from to
- vite-tsconfig-paths from to
- astro from to
- Updated dependencies [f82035b]
- @matthiesenxyz/astro-ghostcms-theme-default@0.1.20
## 3.3.4
### Patch Changes
- f097c6a: Adds a toggleswitch to allow users to disable astro-remote usage for rendering ghost-content
- Updated dependencies [f097c6a]
- @matthiesenxyz/astro-ghostcms-theme-default@0.1.19
## 3.3.3 ## 3.3.3
### Patch Changes ### Patch Changes

View File

@ -66,9 +66,6 @@ export default defineConfig({
ThemeProvider: { // Allows you to pass config options to our ThemeProvider if enabled. ThemeProvider: { // Allows you to pass config options to our ThemeProvider if enabled.
disableThemeProvider: false, // OPTIONAL - Default False disableThemeProvider: false, // OPTIONAL - Default False
theme: "@matthiesenxyz/astro-ghostcms-theme-default", // OPTIONAL - Default Theme shown. theme: "@matthiesenxyz/astro-ghostcms-theme-default", // OPTIONAL - Default Theme shown.
astroRemote: {
enable: true // OPTIONAL - Default True, Allows the user to switch to standard <Fragment> html rendering if they are having issues with Astro-remote
}
}; };
disableDefault404: false, // Allows the user to disable the default `/404 page, to be able to create their own under `/src/pages/404.astro`. disableDefault404: false, // Allows the user to disable the default `/404 page, to be able to create their own under `/src/pages/404.astro`.
enableRSSFeed: true, // Allows the user to Enable or disable RSS Feed Generation. Default: true enableRSSFeed: true, // Allows the user to Enable or disable RSS Feed Generation. Default: true

View File

@ -1,7 +1,7 @@
{ {
"name": "@matthiesenxyz/astro-ghostcms", "name": "@matthiesenxyz/astro-ghostcms",
"description": "Astro GhostCMS integration to allow easier importing of GhostCMS Content", "description": "Astro GhostCMS integration to allow easier importing of GhostCMS Content",
"version": "3.3.5", "version": "3.3.3",
"homepage": "https://astro-ghostcms.xyz/", "homepage": "https://astro-ghostcms.xyz/",
"type": "module", "type": "module",
"license": "MIT", "license": "MIT",
@ -61,18 +61,18 @@
}, },
"devDependencies": { "devDependencies": {
"@types/fs-extra": "^11.0.4", "@types/fs-extra": "^11.0.4",
"@types/node": "^20.11.28", "@types/node": "^20.11.25",
"vitest": "^1.4.0", "vitest": "^1.3.1",
"vitest-fetch-mock": "^0.2.2" "vitest-fetch-mock": "^0.2.2"
}, },
"dependencies": { "dependencies": {
"@astrojs/rss": "^4.0.5", "@astrojs/rss": "^4.0.5",
"@astrojs/sitemap": "^3.1.1", "@astrojs/sitemap": "^3.1.1",
"@matthiesenxyz/astro-ghostcms-theme-default": "^0.1.20", "@matthiesenxyz/astro-ghostcms-theme-default": "^0.1.17",
"@resvg/resvg-js": "^2.6.0", "@resvg/resvg-js": "^2.6.0",
"@ts-ghost/core-api": "^6.0.0", "@ts-ghost/core-api": "^6.0.0",
"@ts-ghost/content-api": "^4.0.12", "@ts-ghost/content-api": "^4.0.12",
"astro-integration-kit": "^0.6.0", "astro-integration-kit": "^0.5.1",
"astro-robots-txt": "^1.0.0", "astro-robots-txt": "^1.0.0",
"fs-extra": "^11.2.0", "fs-extra": "^11.2.0",
"package-json": "^10.0.0", "package-json": "^10.0.0",

View File

@ -17,19 +17,22 @@ export const GhostUserConfigSchema = z.object({
/** OPTIONAL - Configure the Theme Provider /** OPTIONAL - Configure the Theme Provider
* @ This option allows the user to configure the Theme Provider * @ This option allows the user to configure the Theme Provider
*/ */
ThemeProvider: z.object({ ThemeProvider: z
.object({
/** OPTIONAL - Disable the theme provider /** OPTIONAL - Disable the theme provider
* @default false * @default false
*/ */
disableThemeProvider: z.coerce.boolean().default(false), disableThemeProvider: z.coerce.boolean(),
/** OPTIONAL - Set the theme you want to use /** OPTIONAL - Set the theme you want to use
* @default "@matthiesenxyz/astro-ghostcms-theme-default" * @default "@matthiesenxyz/astro-ghostcms-theme-default"
*/ */
theme: z.string().default("@matthiesenxyz/astro-ghostcms-theme-default"), theme: z.string(),
astroRemote: z.object({ })
enable: z.boolean().default(true), .optional()
}).optional().default({}), .default({
}).optional().default({}), disableThemeProvider: false,
theme: "@matthiesenxyz/astro-ghostcms-theme-default"
}),
/** Allows the user to disable the provided 404 page */ /** Allows the user to disable the provided 404 page */
disableDefault404: z.coerce.boolean().optional(), disableDefault404: z.coerce.boolean().optional(),
/** Allows the user to disable the provided RSS Feed */ /** Allows the user to disable the provided RSS Feed */

View File

@ -44,7 +44,7 @@
"devDependencies": { "devDependencies": {
"@types/fs-extra": "^11.0.1", "@types/fs-extra": "^11.0.1",
"@types/gunzip-maybe": "^1.4.0", "@types/gunzip-maybe": "^1.4.0",
"@types/node": "^20.11.28", "@types/node": "^20.11.25",
"@types/tar-fs": "^2.0.1", "@types/tar-fs": "^2.0.1",
"typescript": "^5.4.2" "typescript": "^5.4.2"
}, },

View File

@ -1,21 +1,5 @@
# @matthiesenxyz/starlight-ghostcms # @matthiesenxyz/starlight-ghostcms
## 0.1.9
### Patch Changes
- f82035b: Bump dependencies:
- astro-integration-kit from to
- @unocss/astro from to
- @unocss/reset from to
- astro-font from to
- unocss from to
- sass from to
- @matthiesenxyz/astro-gists from to
- vite-tsconfig-paths from to
- astro from to
## 0.1.8 ## 0.1.8
### Patch Changes ### Patch Changes

View File

@ -1,7 +1,7 @@
{ {
"name": "@matthiesenxyz/starlight-ghostcms", "name": "@matthiesenxyz/starlight-ghostcms",
"description": "Starlight GhostCMS plugin to allow easier importing of GhostCMS Content into your starlight website", "description": "Starlight GhostCMS plugin to allow easier importing of GhostCMS Content into your starlight website",
"version": "0.1.9", "version": "0.1.8",
"homepage": "https://astro-ghostcms.xyz/", "homepage": "https://astro-ghostcms.xyz/",
"type": "module", "type": "module",
"license": "MIT", "license": "MIT",
@ -54,19 +54,19 @@
}, },
"devDependencies": { "devDependencies": {
"@astrojs/starlight": "^0.21.1", "@astrojs/starlight": "^0.21.1",
"vitest": "^1.4.0", "vitest": "^1.3.1",
"vitest-fetch-mock": "^0.2.2" "vitest-fetch-mock": "^0.2.2"
}, },
"dependencies": { "dependencies": {
"@astrojs/rss": "^4.0.5", "@astrojs/rss": "^4.0.5",
"@matthiesenxyz/astro-gists": "^0.2.11", "@matthiesenxyz/astro-gists": "^0.2.7",
"@ts-ghost/core-api": "^6.0.0", "@ts-ghost/core-api": "^6.0.0",
"@ts-ghost/content-api": "^4.0.12", "@ts-ghost/content-api": "^4.0.12",
"astro-integration-kit": "^0.6.0", "astro-integration-kit": "^0.5.1",
"astro-remote": "^0.3.2", "astro-remote": "^0.3.2",
"ultrahtml": "^1.5.3", "ultrahtml": "^1.5.3",
"vite": "^5.1.6", "vite": "^5.1.6",
"vite-tsconfig-paths": "^4.3.2" "vite-tsconfig-paths": "^4.3.1"
}, },
"peerDependencies": { "peerDependencies": {
"@astrojs/starlight": ">=0.19.0", "@astrojs/starlight": ">=0.19.0",

View File

@ -1,21 +1,18 @@
import ghostcms from "@matthiesenxyz/astro-ghostcms"; import ghostcms from "@matthiesenxyz/astro-ghostcms";
import { defineConfig } from "astro/config"; import { defineConfig } from "astro/config";
// import tailwind from "@astrojs/tailwind"; import tailwind from "@astrojs/tailwind";
//import UnoCSS from "unocss/astro"; //import UnoCSS from "unocss/astro";
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
site: "https://demo.astro-ghostcms.xyz/", site: "https://demo.astro-ghostcms.xyz/",
integrations: [ integrations: [
//tailwind(), tailwind(),
// UnoCSS({ injectReset: true }), // UnoCSS({ injectReset: true }),
ghostcms({ ghostcms({
ghostURL: 'https://ghostdemo.matthiesen.xyz', ghostURL: 'https://ghostdemo.matthiesen.xyz',
ThemeProvider: { ThemeProvider: {
theme: "@matthiesenxyz/astro-ghostcms-theme-default", theme: "@matthiesenxyz/astro-ghostcms-catppuccin",
astroRemote: {
enable: true,
},
}, },
verbose: true, verbose: true,
}), }),

View File

@ -11,18 +11,18 @@
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"astro": "^4.5.6", "astro": "^4.4.13",
"@matthiesenxyz/astro-ghostcms": "workspace:*", "@matthiesenxyz/astro-ghostcms": "workspace:*",
"@matthiesenxyz/astro-ghostcms-theme-default": "workspace:*", "@matthiesenxyz/astro-ghostcms-theme-default": "workspace:*",
"@matthiesenxyz/astro-ghostcms-catppuccin": "workspace:*", "@matthiesenxyz/astro-ghostcms-catppuccin": "workspace:*",
"@matthiesenxyz/astro-ghostcms-brutalbyelian": "workspace:*", "@matthiesenxyz/astro-ghostcms-brutalbyelian": "workspace:*",
"@astrojs/tailwind": "^5.1.0", "@astrojs/tailwind": "^5.1.0",
"@unocss/astro": "^0.58.6", "@unocss/astro": "^0.58.5",
"tailwindcss": "^3.3.5" "tailwindcss": "^3.3.5"
}, },
"devDependencies": { "devDependencies": {
"@unocss/reset": "^0.58.6", "@unocss/reset": "^0.58.5",
"typescript": "^5.4.2", "typescript": "^5.4.2",
"unocss": "^0.58.6" "unocss": "^0.58.5"
} }
} }

View File

@ -12,13 +12,13 @@
"astro": "astro" "astro": "astro"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^20.11.28" "@types/node": "^20.11.25"
}, },
"dependencies": { "dependencies": {
"@astrojs/starlight": "^0.21.1", "@astrojs/starlight": "^0.21.1",
"@matthiesenxyz/starlight-ghostcms": "workspace:*", "@matthiesenxyz/starlight-ghostcms": "workspace:*",
"@matthiesenxyz/astro-gists": "^0.2.11", "@matthiesenxyz/astro-gists": "^0.2.7",
"astro": "^4.5.6", "astro": "^4.4.13",
"sharp": "^0.33.2" "sharp": "^0.33.2"
} }
} }

File diff suppressed because it is too large Load Diff