How chromeos/chromeos.dev works
ChromeOS.dev is a developer-focused content site backed by a Sanity CMS. The principal workflow is editors authoring structured, localized content in the CMS, followed by the site retrieving and presenting it to developers. The tree also shows search, offline support, RSS, and deployment-related endpoints. Sampled evidence confirms CMS schema registration and configuration, but not the site’s complete rendering or data-fetching flow; those links are marked unverified where useful.
Main entry points: astro.config.mjs ChromeOS.dev site · sanity.config.ts Sanity Studio · sanity.ts Content access · Search.svelte Search interface
Components 19
Content management
- Sanity Studio
cms/sanity.config.ts - Studio theme
cms/lib/theme.ts
Content models
- Schema registry
cms/schemas/index.ts - Editorial content
cms/schemas - Localized content
cms/lib/constants.ts
Developer website
- ChromeOS.dev site
site/astro.config.mjs - Content access
site/lib/sanity.ts - Content transforms
site/lib/portabletext.ts - Guides and tutorials
site/lib/data/guidelines.ts - News and stories
site/lib/posts.ts
Site capabilities
- Site search
site/lib/search.ts - Search interface
site/src/components/Search.svelte - Search results
site/src/components/SearchResults.svelte - Offline support
site/src/sw.js - RSS feed
site/src/pages/[lang]/rss.xml.ts - Deploy endpoint
site/src/pages/endpoints/deploy.ts
Other components
- Content editor
- Sanity content service
- Developer
Connections 17
- Content editor → Sanity Studio: authors content
- Sanity Studio → Schema registry: configures schemas
cms/sanity.config.ts - Schema registry → Editorial content: registers models
cms/schemas/index.ts - Sanity Studio → Localized content: configures languages
cms/sanity.config.ts - Sanity Studio → Studio theme: applies theme
cms/sanity.config.ts - Sanity Studio → Sanity content service: stores authored content
- Developer → ChromeOS.dev site: visits
README.md - ChromeOS.dev site → Content access: loads content
- Content access → Sanity content service: queries content
- Content access → Content transforms: prepares content
- ChromeOS.dev site → Guides and tutorials: presents guidance
- ChromeOS.dev site → News and stories: presents updates
- Search interface → Site search: requests search
- Search interface → Search results: displays results
- ChromeOS.dev site → Offline support: supports offline use
- ChromeOS.dev site → RSS feed: provides feed
- ChromeOS.dev site → Deploy endpoint: exposes endpoint