cosmolo 0.3.3 → 0.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/types.ts DELETED
@@ -1,65 +0,0 @@
1
- // ─── Package configuration ────────────────────────────────────────────────────
2
-
3
- export interface CosmoloConfig {
4
- /** Directory containing article files (.md, .svx). @default 'src/content/articles' */
5
- articlesDir?: string;
6
- /** Directory containing static page files (.md). @default 'src/content/pages' */
7
- pagesDir?: string;
8
- /** Path to site configuration JSON. @default 'config/site.json' */
9
- siteConfigPath?: string;
10
- /** Path to categories configuration JSON. @default 'config/categories.json' */
11
- categoriesConfigPath?: string;
12
- }
13
-
14
- export type ResolvedCosmoloConfig = Required<CosmoloConfig>;
15
-
16
- // ─── Content types ────────────────────────────────────────────────────────────
17
-
18
- export interface TocEntry {
19
- level: number;
20
- id: string;
21
- text: string;
22
- }
23
-
24
- export interface ArticleFrontmatter {
25
- title: string;
26
- category: string;
27
- excerpt: string;
28
- sort: number;
29
- date: string;
30
- tags: string[];
31
- series?: string;
32
- seriesOrder?: number;
33
- draft: boolean;
34
- related: string[];
35
- }
36
-
37
- export interface Article extends ArticleFrontmatter {
38
- slug: string;
39
- html: string;
40
- markdown: string;
41
- toc: TocEntry[];
42
- }
43
-
44
- export interface Page {
45
- slug: string;
46
- title: string;
47
- html: string;
48
- }
49
-
50
- export interface CategoryEntry {
51
- slug: string;
52
- label: string;
53
- description: string;
54
- }
55
-
56
- export interface SiteConfig {
57
- url: string;
58
- name: string;
59
- description: string;
60
- twitterHandle: string;
61
- fallbackCategoryLabel: string;
62
- articlesPerPage: number;
63
- ogImage: { mode: 'static' | 'generated' };
64
- api: { articleBody: 'html' | 'markdown' | 'plaintext' };
65
- }
File without changes