Skip to content

Commit

Permalink
Merge pull request #4 from ajile-in/main
Browse files Browse the repository at this point in the history
Merge pull request #3 from credebl/local-setup-feature
  • Loading branch information
sunilbade committed Sep 3, 2023
2 parents 9c06061 + 5de8847 commit 4ee8e12
Show file tree
Hide file tree
Showing 18 changed files with 412 additions and 735 deletions.
31 changes: 6 additions & 25 deletions .astro/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,6 @@ declare module 'astro:content' {
type Flatten<T> = T extends { [K: string]: infer U } ? U : never;
export type CollectionEntry<C extends keyof AnyEntryMap> = Flatten<AnyEntryMap[C]>;

// TODO: Remove this when having this fallback is no longer relevant. 2.3? 3.0? - erika, 2023-04-04
/**
* @deprecated
* `astro:content` no longer provide `image()`.
*
* Please use it through `schema`, like such:
* ```ts
* import { defineCollection, z } from "astro:content";
*
* defineCollection({
* schema: ({ image }) =>
* z.object({
* image: image(),
* }),
* });
* ```
*/
export const image: never;

// This needs to be in sync with ImageMetadata
export type ImageFunction = () => import('astro/zod').ZodObject<{
src: import('astro/zod').ZodString;
Expand All @@ -56,7 +37,7 @@ declare module 'astro:content' {
import('astro/zod').ZodLiteral<'tiff'>,
import('astro/zod').ZodLiteral<'webp'>,
import('astro/zod').ZodLiteral<'gif'>,
import('astro/zod').ZodLiteral<'svg'>
import('astro/zod').ZodLiteral<'svg'>,
]
>;
}>;
Expand Down Expand Up @@ -96,7 +77,7 @@ declare module 'astro:content' {

export function getEntryBySlug<
C extends keyof ContentEntryMap,
E extends ValidContentEntrySlug<C> | (string & {})
E extends ValidContentEntrySlug<C> | (string & {}),
>(
collection: C,
// Note that this has to accept a regular string too, for SSR
Expand All @@ -121,7 +102,7 @@ declare module 'astro:content' {

export function getEntry<
C extends keyof ContentEntryMap,
E extends ValidContentEntrySlug<C> | (string & {})
E extends ValidContentEntrySlug<C> | (string & {}),
>(entry: {
collection: C;
slug: E;
Expand All @@ -130,7 +111,7 @@ declare module 'astro:content' {
: Promise<CollectionEntry<C> | undefined>;
export function getEntry<
C extends keyof DataEntryMap,
E extends keyof DataEntryMap[C] | (string & {})
E extends keyof DataEntryMap[C] | (string & {}),
>(entry: {
collection: C;
id: E;
Expand All @@ -139,7 +120,7 @@ declare module 'astro:content' {
: Promise<CollectionEntry<C> | undefined>;
export function getEntry<
C extends keyof ContentEntryMap,
E extends ValidContentEntrySlug<C> | (string & {})
E extends ValidContentEntrySlug<C> | (string & {}),
>(
collection: C,
slug: E
Expand All @@ -148,7 +129,7 @@ declare module 'astro:content' {
: Promise<CollectionEntry<C> | undefined>;
export function getEntry<
C extends keyof DataEntryMap,
E extends keyof DataEntryMap[C] | (string & {})
E extends keyof DataEntryMap[C] | (string & {}),
>(
collection: C,
id: E
Expand Down
6 changes: 3 additions & 3 deletions astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ integrations: [
github: 'https://github.com/credebl',
twitter: 'https://twitter.com/credebl',
discord: 'https://discord.gg/w4hnQT7NJG',
youtube: 'https://youtube.com/@astrodotbuild',
youtube: 'https://www.youtube.com/@blocksterlabs5489',
},
sidebar: [
{
Expand All @@ -53,7 +53,7 @@ integrations: [
{ label: 'Local Setup using NPM',link: '/en/guides/local-setup-using-npm/' },
{ label: 'Local Setup using Docker', link: '/en/guides/local-setup-using-docker/' },
//{ label: 'Self-hosting', link: '/en/guides/self-hosting/' },
{ label: 'Using credebl.id', link: '/en/guides/using-credebl-id/' },
{ label: 'Using CREDEBL Cloud', link: '/en/guides/using-credebl-cloud/' },
],
},
{
Expand All @@ -69,7 +69,7 @@ integrations: [
items: [
// Each item here is one entry in the navigation menu.
{ label: 'Community', link: '/en/support/community/' },
{ label: 'Troubleshooting', link: '/en/support/troubleshooting/' },
// { label: 'Troubleshooting', link: '/en/support/troubleshooting/' },
],
},
],
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
"astro": "astro"
},
"dependencies": {
"@astrojs/starlight": "^0.7.3",
"astro": "^2.10.5",
"@astrojs/starlight": "^0.9.0",
"astro": "^3.0.7",
"sharp": "^0.32.3"
}
}
Loading

0 comments on commit 4ee8e12

Please sign in to comment.