ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Janady13/llms-txt-hub / apps/web/content-collections.js

Source identity, revision, and recovered contents.

GitHub sourceSource text recovered

Source identity

FieldRecorded value
Source typeGitHub source
Original recordJanady13/llms-txt-hub / apps/web/content-collections.js
DateNot specified in source
RepositoryJanady13/llms-txt-hub
Revisione0f4bf978d4df168369c7601d9c5f5ea89e84377
Branchmain
Path or archive memberapps/web/content-collections.js
Original SHA-256c03c7236071fa7e1f50991d984f8fdedf1fe0360e8ca6e3854415e3fa017f6ed
Git blob SHAbe3512ac1306a05d2665a07ff26f62b0592bee0a
Reading-copy SHA-256c03c7236071fa7e1f50991d984f8fdedf1fe0360e8ca6e3854415e3fa017f6ed

Original source ↗

Recovered source transcript

import { defineCollection, defineConfig } from '@content-collections/core' // Paths will resolve from the project root const websitesPath = '../../packages/content/data/websites' const guidesPath = '../../packages/content/data/guides' const resourcesPath = '../../packages/content/data/resources' const legalPath = '../../packages/content/data/legal' const websites = defineCollection({ name: 'Website', directory: websitesPath, include: '**/*.mdx', computedFields: { slug: { type: 'string', resolve: doc => doc._raw.sourceFileName.replace(/\.mdx$/, '') } }, schema: z => ({ name: z.string(), description: z.string(), website: z.string().url(), llmsUrl: z.string().url(), // Even more flexible validation for llmsFullUrl llmsFullUrl: z .union([ z.string().url(), z.string().refine(val => val === '', { message: 'Empty string is allowed' }), z.null(), z.undefined() ]) .optional(), category: z.string(), publishedAt: z.string(), isUnofficial: z.boolean().optional().default(false) }) }) const guides = defineCollection({ name: 'Guide', directory: guidesPath, include: '**/*.mdx', computedFields: { slug: { type: 'string', resolve: doc => doc._raw.sourceFileName.replace(/\.mdx$/, '') } }, schema: z => ({ title: z.string(), description: z.string(), date: z.string(), authors: z.array( z.object({ name: z.string(), url: z.string().url().optional() }) ), tags: z.array(z.string()).optional(), difficulty: z.enum(['beginner', 'intermediate', 'advanced']).default('beginner'), category: z .enum(['getting-started', 'implementation', 'best-practices', 'integration']) .default('getting-started'), published: z.boolean().default(true), publishedAt: z.string().optional(), readingTime: z.number().optional() }) }) const resources = defineCollection({ name: 'Resource', directory: resourcesPath, include: '**/*.mdx', computedFields: { slug: { type: 'string', resolve: doc => doc._raw.sourceFileName.replace(/\.mdx$/, '') } }, schema: z => ({ title: z.string(), description: z.string(), url: z.string().url().optional(), category: z.string(), icon: z.string().optional(), featured: z.boolean().optional().default(false) }) }) const legal = defineCollection({ name: 'Legal', directory: legalPath, include: '**/*.mdx', computedFields: { slug: { type: 'string', resolve: doc => doc._raw.sourceFileName.replace(/\.mdx$/, '') } }, schema: z => ({ title: z.string().optional(), lastUpdated: z.string().optional(), summary: z.string().optional() }) }) export default defineConfig({ collections: [websites, guides, resources, legal] })

Search equations, builds, manuscript text, and recovered sources.