Compare commits

...

9 Commits

Author SHA1 Message Date
Adam Matthiesen ca3e595401
Update package.json 2024-03-19 05:22:27 -07:00
Adam Matthiesen fa276f9d64
Update changeset-main.yml 2024-03-19 05:20:16 -07:00
Adam Matthiesen 5166bdc11f
Update package.json 2024-03-19 05:18:51 -07:00
github-actions[bot] acf9a1def4
👷 [ci]: Ready for Release (#120)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-19 05:16:19 -07:00
dependabot[bot] f82035b813
Bump the prod-dependencies group with 9 updates (#119)
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-19 05:14:59 -07:00
dependabot[bot] a6b2b28843
Bump the dev-dependencies group with 6 updates (#118)
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2024-03-19 05:03:24 -07:00
Adam Matthiesen c3b8872706 Update package versions in pnpm-lock.yaml 2024-03-12 23:27:32 -07:00
github-actions[bot] 13d6b551b8
👷 [ci]: Ready for Release (#116)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-12 23:23:30 -07:00
create-issue-branch[bot] f097c6a18b
fix: 🐛 bug: ultrahtml does not handle all html strings. add switch to enable standard html fragment tag instead. (#115)
Co-authored-by: create-issue-branch[bot] <53036503+create-issue-branch[bot]@users.noreply.github.com>
Co-authored-by: Adam Matthiesen <amatthiesen@outlook.com>
2024-03-12 23:22:39 -07:00
25 changed files with 990 additions and 512 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 run: pnpm install --no-frozen-lockfile
- 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.0", "@biomejs/biome": "1.6.1",
"@changesets/cli": "^2.27.1", "@changesets/cli": "^2.27.1",
"@vitest/ui": "^1.3.1", "@vitest/ui": "^1.4.0",
"vitest": "^1.3.1", "vitest": "^1.4.0",
"vitest-fetch-mock": "^0.2.2" "vitest-fetch-mock": "^0.2.2"
} }
} }

View File

@ -1,5 +1,32 @@
# @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.16", "version": "0.0.18",
"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.2", "@matthiesenxyz/astro-ghostcms": ">=3.3.5",
"astro": ">=4.4.1" "astro": ">=4.4.1"
}, },
"devDependencies": { "devDependencies": {
"@typescript-eslint/parser": "^7.1.1", "@typescript-eslint/parser": "^7.2.0",
"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.5", "@unocss/astro": "^0.58.6",
"@unocss/reset": "^0.58.5", "@unocss/reset": "^0.58.6",
"astro-font": "^0.0.77", "astro-font": "^0.0.78",
"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.5" "unocss": "^0.58.6"
} }
} }

View File

@ -2,6 +2,10 @@
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;
@ -23,5 +27,8 @@ const { image, alt, caption = "", settings, transitionName } = Astro.props as Pr
alt={alt} alt={alt}
transition:name={transitionName} transition:name={transitionName}
/> />
{caption && <figcaption class="text-ctp-overlay2"><Markup content={caption} /></figcaption>} {caption && (
<figcaption class="text-ctp-overlay2">
{useRemote ? <Markup content={caption} /> : <Fragment set:html={caption} />}
</figcaption>)}
</figure> </figure>

View File

@ -7,6 +7,9 @@ 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()]);
@ -30,7 +33,7 @@ invariant(settings, "Settings are required");
<div class="my-5"/> <div class="my-5"/>
<div id="ghost"> <div id="ghost">
<Markup {useRemote ? <Markup
content={post.html} content={post.html}
sanitize={{ sanitize={{
allowComponents: true, allowComponents: true,
@ -46,7 +49,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,5 +1,13 @@
# @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.13", "version": "0.0.14",
"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.3", "@matthiesenxyz/astro-ghostcms": ">=3.3.5",
"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.3", "@matthiesenxyz/astro-ghostcms": "^3.3.5",
"@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,6 +4,9 @@ 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[];
@ -61,13 +64,15 @@ 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
content={latestFeatured.html}
sanitize={{ {useRemote ? (latestFeatured && <Markup
allowComponents: true, content={latestFeatured.html}
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'], sanitize={{
}} 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'],
}}
/>) : (latestFeatured && <Fragment set:html={latestFeatured.html} />) }
</section> </section>
</div> </div>
</main> </main>

View File

@ -3,6 +3,9 @@ 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;
@ -16,10 +19,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()
@ -29,13 +32,15 @@ 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">
<Markup {useRemote ? (
content={post.html} <Markup
sanitize={{ content={post.html}
allowComponents: true, sanitize={{
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'], 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'],
/> }}
/>
) : <Fragment set:html={post.html} /> }
</div> </div>
<PostFooter post={post} settings={settings} posts={mPosts} /> <PostFooter post={post} settings={settings} posts={mPosts} />

View File

@ -1,5 +1,32 @@
# @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.18", "version": "0.1.20",
"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.7", "@astrojs/check": "^0.5.9",
"typescript": "^5.4.2" "typescript": "^5.4.2"
}, },
"peerDependencies": { "peerDependencies": {
"@matthiesenxyz/astro-ghostcms": ">=3.3.2", "@matthiesenxyz/astro-ghostcms": ">=3.3.5",
"astro": ">=4.4.0" "astro": ">=4.4.0"
}, },
"dependencies": { "dependencies": {
"astro-font": "^0.0.77", "astro-font": "^0.0.78",
"astro-remote": "^0.3.2", "astro-remote": "^0.3.2",
"sass": "^1.71.1", "sass": "^1.72.0",
"ultrahtml": "^1.5.3" "ultrahtml": "^1.5.3"
} }
} }

View File

@ -2,6 +2,9 @@
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;
@ -26,13 +29,15 @@ 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>
<Markup {useRemote ? (
content={page.html} <Markup
sanitize={{ content={page.html}
allowComponents: true, sanitize={{
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'], 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'],
/> }}
/>
) : <Fragment set:html={page.html} /> }
</section> </section>
</article> </article>
</main> </main>

View File

@ -3,6 +3,9 @@ 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;
@ -18,13 +21,15 @@ 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">
<Markup {useRemote ? (
content={post.html} <Markup
sanitize={{ content={post.html}
allowComponents: true, sanitize={{
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'], 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'],
/> }}
/>
) : <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,5 +1,32 @@
# @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,6 +66,9 @@ 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.3", "version": "3.3.5",
"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.25", "@types/node": "^20.11.28",
"vitest": "^1.3.1", "vitest": "^1.4.0",
"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.17", "@matthiesenxyz/astro-ghostcms-theme-default": "^0.1.20",
"@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.5.1", "astro-integration-kit": "^0.6.0",
"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,22 +17,19 @@ 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 ThemeProvider: z.object({
.object({
/** OPTIONAL - Disable the theme provider /** OPTIONAL - Disable the theme provider
* @default false * @default false
*/ */
disableThemeProvider: z.coerce.boolean(), disableThemeProvider: z.coerce.boolean().default(false),
/** 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(), theme: z.string().default("@matthiesenxyz/astro-ghostcms-theme-default"),
}) astroRemote: z.object({
.optional() enable: z.boolean().default(true),
.default({ }).optional().default({}),
disableThemeProvider: false, }).optional().default({}),
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.25", "@types/node": "^20.11.28",
"@types/tar-fs": "^2.0.1", "@types/tar-fs": "^2.0.1",
"typescript": "^5.4.2" "typescript": "^5.4.2"
}, },

View File

@ -1,5 +1,21 @@
# @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.8", "version": "0.1.9",
"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.3.1", "vitest": "^1.4.0",
"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.7", "@matthiesenxyz/astro-gists": "^0.2.11",
"@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.5.1", "astro-integration-kit": "^0.6.0",
"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.1" "vite-tsconfig-paths": "^4.3.2"
}, },
"peerDependencies": { "peerDependencies": {
"@astrojs/starlight": ">=0.19.0", "@astrojs/starlight": ">=0.19.0",

View File

@ -1,18 +1,21 @@
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-catppuccin", theme: "@matthiesenxyz/astro-ghostcms-theme-default",
astroRemote: {
enable: true,
},
}, },
verbose: true, verbose: true,
}), }),

View File

@ -11,18 +11,18 @@
"astro": "astro" "astro": "astro"
}, },
"dependencies": { "dependencies": {
"astro": "^4.4.13", "astro": "^4.5.6",
"@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.5", "@unocss/astro": "^0.58.6",
"tailwindcss": "^3.3.5" "tailwindcss": "^3.3.5"
}, },
"devDependencies": { "devDependencies": {
"@unocss/reset": "^0.58.5", "@unocss/reset": "^0.58.6",
"typescript": "^5.4.2", "typescript": "^5.4.2",
"unocss": "^0.58.5" "unocss": "^0.58.6"
} }
} }

View File

@ -12,13 +12,13 @@
"astro": "astro" "astro": "astro"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "^20.11.25" "@types/node": "^20.11.28"
}, },
"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.7", "@matthiesenxyz/astro-gists": "^0.2.11",
"astro": "^4.4.13", "astro": "^4.5.6",
"sharp": "^0.33.2" "sharp": "^0.33.2"
} }
} }

File diff suppressed because it is too large Load Diff