Spaces:
Running
Running
thibaud frere
commited on
Commit
·
0237ec2
1
Parent(s):
d96b3a3
update bibliography and fix package json
Browse files- app/.astro/astro/content.d.ts +0 -204
- app/package.json +0 -0
- app/src/content/bibliography.bib +0 -0
app/.astro/astro/content.d.ts
CHANGED
@@ -1,204 +0,0 @@
|
|
1 |
-
declare module 'astro:content' {
|
2 |
-
interface Render {
|
3 |
-
'.mdx': Promise<{
|
4 |
-
Content: import('astro').MarkdownInstance<{}>['Content'];
|
5 |
-
headings: import('astro').MarkdownHeading[];
|
6 |
-
remarkPluginFrontmatter: Record<string, any>;
|
7 |
-
components: import('astro').MDXInstance<{}>['components'];
|
8 |
-
}>;
|
9 |
-
}
|
10 |
-
}
|
11 |
-
|
12 |
-
declare module 'astro:content' {
|
13 |
-
interface RenderResult {
|
14 |
-
Content: import('astro/runtime/server/index.js').AstroComponentFactory;
|
15 |
-
headings: import('astro').MarkdownHeading[];
|
16 |
-
remarkPluginFrontmatter: Record<string, any>;
|
17 |
-
}
|
18 |
-
interface Render {
|
19 |
-
'.md': Promise<RenderResult>;
|
20 |
-
}
|
21 |
-
|
22 |
-
export interface RenderedContent {
|
23 |
-
html: string;
|
24 |
-
metadata?: {
|
25 |
-
imagePaths: Array<string>;
|
26 |
-
[key: string]: unknown;
|
27 |
-
};
|
28 |
-
}
|
29 |
-
}
|
30 |
-
|
31 |
-
declare module 'astro:content' {
|
32 |
-
type Flatten<T> = T extends { [K: string]: infer U } ? U : never;
|
33 |
-
|
34 |
-
export type CollectionKey = keyof AnyEntryMap;
|
35 |
-
export type CollectionEntry<C extends CollectionKey> = Flatten<AnyEntryMap[C]>;
|
36 |
-
|
37 |
-
export type ContentCollectionKey = keyof ContentEntryMap;
|
38 |
-
export type DataCollectionKey = keyof DataEntryMap;
|
39 |
-
|
40 |
-
type AllValuesOf<T> = T extends any ? T[keyof T] : never;
|
41 |
-
type ValidContentEntrySlug<C extends keyof ContentEntryMap> = AllValuesOf<
|
42 |
-
ContentEntryMap[C]
|
43 |
-
>['slug'];
|
44 |
-
|
45 |
-
/** @deprecated Use `getEntry` instead. */
|
46 |
-
export function getEntryBySlug<
|
47 |
-
C extends keyof ContentEntryMap,
|
48 |
-
E extends ValidContentEntrySlug<C> | (string & {}),
|
49 |
-
>(
|
50 |
-
collection: C,
|
51 |
-
// Note that this has to accept a regular string too, for SSR
|
52 |
-
entrySlug: E,
|
53 |
-
): E extends ValidContentEntrySlug<C>
|
54 |
-
? Promise<CollectionEntry<C>>
|
55 |
-
: Promise<CollectionEntry<C> | undefined>;
|
56 |
-
|
57 |
-
/** @deprecated Use `getEntry` instead. */
|
58 |
-
export function getDataEntryById<C extends keyof DataEntryMap, E extends keyof DataEntryMap[C]>(
|
59 |
-
collection: C,
|
60 |
-
entryId: E,
|
61 |
-
): Promise<CollectionEntry<C>>;
|
62 |
-
|
63 |
-
export function getCollection<C extends keyof AnyEntryMap, E extends CollectionEntry<C>>(
|
64 |
-
collection: C,
|
65 |
-
filter?: (entry: CollectionEntry<C>) => entry is E,
|
66 |
-
): Promise<E[]>;
|
67 |
-
export function getCollection<C extends keyof AnyEntryMap>(
|
68 |
-
collection: C,
|
69 |
-
filter?: (entry: CollectionEntry<C>) => unknown,
|
70 |
-
): Promise<CollectionEntry<C>[]>;
|
71 |
-
|
72 |
-
export function getEntry<
|
73 |
-
C extends keyof ContentEntryMap,
|
74 |
-
E extends ValidContentEntrySlug<C> | (string & {}),
|
75 |
-
>(entry: {
|
76 |
-
collection: C;
|
77 |
-
slug: E;
|
78 |
-
}): E extends ValidContentEntrySlug<C>
|
79 |
-
? Promise<CollectionEntry<C>>
|
80 |
-
: Promise<CollectionEntry<C> | undefined>;
|
81 |
-
export function getEntry<
|
82 |
-
C extends keyof DataEntryMap,
|
83 |
-
E extends keyof DataEntryMap[C] | (string & {}),
|
84 |
-
>(entry: {
|
85 |
-
collection: C;
|
86 |
-
id: E;
|
87 |
-
}): E extends keyof DataEntryMap[C]
|
88 |
-
? Promise<DataEntryMap[C][E]>
|
89 |
-
: Promise<CollectionEntry<C> | undefined>;
|
90 |
-
export function getEntry<
|
91 |
-
C extends keyof ContentEntryMap,
|
92 |
-
E extends ValidContentEntrySlug<C> | (string & {}),
|
93 |
-
>(
|
94 |
-
collection: C,
|
95 |
-
slug: E,
|
96 |
-
): E extends ValidContentEntrySlug<C>
|
97 |
-
? Promise<CollectionEntry<C>>
|
98 |
-
: Promise<CollectionEntry<C> | undefined>;
|
99 |
-
export function getEntry<
|
100 |
-
C extends keyof DataEntryMap,
|
101 |
-
E extends keyof DataEntryMap[C] | (string & {}),
|
102 |
-
>(
|
103 |
-
collection: C,
|
104 |
-
id: E,
|
105 |
-
): E extends keyof DataEntryMap[C]
|
106 |
-
? Promise<DataEntryMap[C][E]>
|
107 |
-
: Promise<CollectionEntry<C> | undefined>;
|
108 |
-
|
109 |
-
/** Resolve an array of entry references from the same collection */
|
110 |
-
export function getEntries<C extends keyof ContentEntryMap>(
|
111 |
-
entries: {
|
112 |
-
collection: C;
|
113 |
-
slug: ValidContentEntrySlug<C>;
|
114 |
-
}[],
|
115 |
-
): Promise<CollectionEntry<C>[]>;
|
116 |
-
export function getEntries<C extends keyof DataEntryMap>(
|
117 |
-
entries: {
|
118 |
-
collection: C;
|
119 |
-
id: keyof DataEntryMap[C];
|
120 |
-
}[],
|
121 |
-
): Promise<CollectionEntry<C>[]>;
|
122 |
-
|
123 |
-
export function render<C extends keyof AnyEntryMap>(
|
124 |
-
entry: AnyEntryMap[C][string],
|
125 |
-
): Promise<RenderResult>;
|
126 |
-
|
127 |
-
export function reference<C extends keyof AnyEntryMap>(
|
128 |
-
collection: C,
|
129 |
-
): import('astro/zod').ZodEffects<
|
130 |
-
import('astro/zod').ZodString,
|
131 |
-
C extends keyof ContentEntryMap
|
132 |
-
? {
|
133 |
-
collection: C;
|
134 |
-
slug: ValidContentEntrySlug<C>;
|
135 |
-
}
|
136 |
-
: {
|
137 |
-
collection: C;
|
138 |
-
id: keyof DataEntryMap[C];
|
139 |
-
}
|
140 |
-
>;
|
141 |
-
// Allow generic `string` to avoid excessive type errors in the config
|
142 |
-
// if `dev` is not running to update as you edit.
|
143 |
-
// Invalid collection names will be caught at build time.
|
144 |
-
export function reference<C extends string>(
|
145 |
-
collection: C,
|
146 |
-
): import('astro/zod').ZodEffects<import('astro/zod').ZodString, never>;
|
147 |
-
|
148 |
-
type ReturnTypeOrOriginal<T> = T extends (...args: any[]) => infer R ? R : T;
|
149 |
-
type InferEntrySchema<C extends keyof AnyEntryMap> = import('astro/zod').infer<
|
150 |
-
ReturnTypeOrOriginal<Required<ContentConfig['collections'][C]>['schema']>
|
151 |
-
>;
|
152 |
-
|
153 |
-
type ContentEntryMap = {
|
154 |
-
"chapters": {
|
155 |
-
"available-blocks.mdx": {
|
156 |
-
id: "available-blocks.mdx";
|
157 |
-
slug: "available-blocks";
|
158 |
-
body: string;
|
159 |
-
collection: "chapters";
|
160 |
-
data: any
|
161 |
-
} & { render(): Render[".mdx"] };
|
162 |
-
"best-pratices.mdx": {
|
163 |
-
id: "best-pratices.mdx";
|
164 |
-
slug: "best-pratices";
|
165 |
-
body: string;
|
166 |
-
collection: "chapters";
|
167 |
-
data: any
|
168 |
-
} & { render(): Render[".mdx"] };
|
169 |
-
"getting-started.mdx": {
|
170 |
-
id: "getting-started.mdx";
|
171 |
-
slug: "getting-started";
|
172 |
-
body: string;
|
173 |
-
collection: "chapters";
|
174 |
-
data: any
|
175 |
-
} & { render(): Render[".mdx"] };
|
176 |
-
"writing-your-content.mdx": {
|
177 |
-
id: "writing-your-content.mdx";
|
178 |
-
slug: "writing-your-content";
|
179 |
-
body: string;
|
180 |
-
collection: "chapters";
|
181 |
-
data: any
|
182 |
-
} & { render(): Render[".mdx"] };
|
183 |
-
};
|
184 |
-
|
185 |
-
};
|
186 |
-
|
187 |
-
type DataEntryMap = {
|
188 |
-
"assets": Record<string, {
|
189 |
-
id: string;
|
190 |
-
collection: "assets";
|
191 |
-
data: any;
|
192 |
-
}>;
|
193 |
-
"embeds": Record<string, {
|
194 |
-
id: string;
|
195 |
-
collection: "embeds";
|
196 |
-
data: any;
|
197 |
-
}>;
|
198 |
-
|
199 |
-
};
|
200 |
-
|
201 |
-
type AnyEntryMap = ContentEntryMap & DataEntryMap;
|
202 |
-
|
203 |
-
export type ContentConfig = never;
|
204 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
app/package.json
CHANGED
Binary files a/app/package.json and b/app/package.json differ
|
|
app/src/content/bibliography.bib
CHANGED
The diff for this file is too large to render.
See raw diff
|
|