How nocobase/website-v3 works
This repository builds and serves NocoBase’s multilingual marketing website. The main workflow collects page, blog, and changelog content; localizes and assembles pages; then Astro emits the site. Browser scripts support lead, partner, and public forms. The graph also preserves shared site configuration and link, navigation, and validation layers. Evidence is limited to the supplied excerpts and SOURCE INDEX references; unsampled subsystems are represented only where the tree or documentation supports their role.
Main entry points: site.mjs Page assembly · astro.config.ts Astro site build · links.mjs Link rewriting · nav.mjs Navigation and footer
Components 25
Site content
- Page content
homepage/src/lib/pages.mjs - Blog and stories
homepage/src/lib/blog.mjs - Release notes
homepage/src/lib/changelog.mjs - Translations
homepage/src/lib/i18n.mjs - YAML reader
homepage/src/lib/yaml-io.mjs
Page generation
- Astro site build
homepage/astro.config.ts - Page assembly
homepage/src/lib/site.mjs - HTML localization
homepage/src/lib/html.mjs - Navigation and footer
homepage/src/lib/nav.mjs
Shared site services
- Link rewriting
homepage/src/lib/links.mjs - Content paths
homepage/src/lib/paths.mjs - Site configuration
homepage/src/lib/config.mjs - Build validation
homepage/src/lib/checks.mjs - Build check hook
homepage/src/integrations/checks.mjs - Shared languages
packages/shared/src/languages.mjs - Shared configuration
packages/shared/src/config.mjs - Site files integration
packages/shared/src/integration.mjs - Sitemap helpers
packages/shared/src/sitemap.mjs
Browser interactions
- Browser script loader
homepage/src/scripts/site.js - Lead form
homepage/src/scripts/lead-form.js - Partner forms
homepage/src/scripts/partner-forms.js - Public forms
homepage/src/scripts/public-form.js - Country codes
homepage/src/scripts/country-codes.js - Country data
homepage/src/scripts/countries.js
Other components
- Site visitor
Connections 34
- Site visitor → Astro site build: requests pages
homepage/astro.config.ts - Astro site build → Page assembly: collects pages
homepage/astro.config.ts - Astro site build → Build check hook: registers checks
homepage/astro.config.ts - Astro site build → Site files integration: registers site files
homepage/astro.config.ts - Astro site build → Sitemap helpers: configures sitemap
homepage/astro.config.ts - Page assembly → Page content: reads pages
homepage/src/lib/site.mjs - Page assembly → Blog and stories: collects posts
homepage/src/lib/site.mjs - Page assembly → Release notes: collects releases
homepage/src/lib/site.mjs - Page assembly → HTML localization: localizes content
homepage/src/lib/site.mjs - Page assembly → Navigation and footer: collects navigation
homepage/src/lib/site.mjs - Page assembly → Translations: loads translations
homepage/src/lib/site.mjs - Page assembly → Link rewriting: rewrites links
homepage/src/lib/site.mjs - Page assembly → Content paths: reads content paths
homepage/src/lib/site.mjs - Page content → HTML localization: uses HTML helpers
homepage/src/lib/pages.mjs - Page content → Content paths: reads source files
homepage/src/lib/pages.mjs - Blog and stories → Link rewriting: rewrites legacy links
homepage/src/lib/blog.mjs - Blog and stories → Content paths: reads blog data
homepage/src/lib/blog.mjs - Release notes → HTML localization: escapes rendered text
homepage/src/lib/changelog.mjs - Release notes → Content paths: reads release files
homepage/src/lib/changelog.mjs - Translations → YAML reader: reads YAML
homepage/src/lib/i18n.mjs - Navigation and footer → Release notes: checks releases
homepage/src/lib/nav.mjs - Navigation and footer → Link rewriting: localizes doc links
homepage/src/lib/nav.mjs - Navigation and footer → Site configuration: uses languages
homepage/src/lib/nav.mjs - Link rewriting → HTML localization: decodes entities
homepage/src/lib/links.mjs - Link rewriting → Site configuration: uses link rules
homepage/src/lib/links.mjs - Site configuration → Shared languages: imports languages
homepage/src/lib/config.mjs - Site configuration → Shared configuration: reads shared settings
homepage/src/lib/config.mjs - Build check hook → Build validation: runs checks
homepage/src/integrations/checks.mjs - Build check hook → Page assembly: checks generated pages
homepage/src/integrations/checks.mjs - Browser script loader → Lead form: loads form script
homepage/src/scripts/site.js - Browser script loader → Partner forms: loads form script
homepage/src/scripts/site.js - Browser script loader → Public forms: loads form script
homepage/src/scripts/site.js - Lead form → Country data: uses country data
homepage/src/scripts/lead-form.js - Partner forms → Country codes: uses country codes
homepage/src/scripts/partner-forms.js