How pharmadatahub/gravitate-center-webpage works
Gravitate is a static public-information and community website, not an interactive health-information service. Its main visitor workflow is browsing the centre’s mission and focus, exploring collaboration, and reading dated updates; editors maintain updates as Markdown. The graph includes the documented routes, update filtering and feeds, and URL handling. Several route implementations and UI components are unsampled, so their internal calls are not inferred.
Main entry points: updates.ts Update selection · content/updates Update articles · rss.xml.ts RSS feed · pages/updates Update routes
Components 19
Public site
- Home page
src/pages/index.astro - About page
src/pages/about.astro - Focus pages
src/pages/our-focus.astro - Collaborate page
src/pages/collaborate.astro - Privacy page
src/pages/privacy.astro - Not-found page
src/pages/404.astro - Layouts and components
src/components
Editorial content
- Update articles
src/content/updates - Update schema
src/content.config.ts - Update routes
src/pages/updates - Focus-area content
src/data/focus.ts - Partner audiences
src/data/audiences.ts
Shared site logic
- Site configuration
src/config/site.ts - Update selection
src/lib/updates.ts - URL helpers
src/lib/url.ts - Markdown link rewriting
src/plugins/base-links.mjs
Feeds and discovery
- RSS feed
src/pages/rss.xml.ts - Robots directives
src/pages/robots.txt.ts
Other components
- Site visitor
Connections 21
- Site visitor → Home page: visits
README.md - Site visitor → About page: visits
README.md - Site visitor → Focus pages: visits
README.md - Site visitor → Collaborate page: visits
README.md - Site visitor → Update routes: reads updates
README.md - Site visitor → Privacy page: visits
README.md - Site visitor → Not-found page: requests unknown path
README.md - Update articles → Update schema: validated as
src/content.config.ts - Update selection → Update articles: filters and sorts
src/lib/updates.ts - Update routes → Update selection: lists and filters
README.md - Home page → Update selection: shows latest
README.md - Update routes → Update articles: renders articles
README.md - Focus pages → Focus-area content: presents focus areas
src/data/focus.ts - Collaborate page → Partner audiences: presents audiences
src/data/audiences.ts - RSS feed → Update selection: gets published updates
src/pages/rss.xml.ts - RSS feed → Site configuration: uses site metadata
src/pages/rss.xml.ts - RSS feed → URL helpers: builds feed links
src/pages/rss.xml.ts - Robots directives → URL helpers: builds sitemap URL
src/pages/robots.txt.ts - Update selection → URL helpers: creates category slugs
src/lib/updates.ts - Markdown link rewriting → Update articles: rewrites Markdown links
README.md - Layouts and components → Site configuration: uses navigation and metadata
README.md