How ubc-igem/wiki-2026 works
The repository is a UBC iGEM wiki monorepo. Its clearest workflow is the exporter: read a configured Notion master page, build a content map, export pages and supporting team, citation, and media assets, then write outputs. The tree also contains an Astro web package, but the supplied excerpts do not establish its page-level runtime or how it consumes export results. Edges below are limited to calls or dependencies visible in excerpts or the source index; unsampled implementation details are not inferred.
Main entry points: main.ts Export entrypoint · blocks.ts Block conversion · parse.ts Page export · components.ts Custom components
Components 22
Wiki export
- Export entrypoint
exporter/src/main.ts - Export config
exporter/src/config.ts - Page mapping
exporter/src/map.ts - Page export
exporter/src/parse.ts - Team page
exporter/src/team.ts - Output utilities
exporter/src/utils.ts
Content conversion
- Block conversion
exporter/src/markdown/blocks.ts - Rich text
exporter/src/markdown/rich-text.ts - Custom components
exporter/src/markdown/components.ts - Citation rendering
exporter/src/markdown/citations.ts - Link resolution
exporter/src/markdown/link.ts - MDX helpers
exporter/src/markdown/mdx.ts
External integrations
- Notion client
exporter/src/notion.ts - Notion API
- Media handling
exporter/src/markdown/media.ts - iGEM tools client
exporter/src/tools-api.ts - Zotero export
exporter/src/zotero.ts
Web utilities
- Astro configuration
web/astro.config.ts - Web utilities
web/src/utils - Literature utility
web/src/utils/literature.ts - Sound effects
web/src/utils/sfx.ts
Other components
- Exporter operator
Connections 28
- Exporter operator → Export entrypoint: runs
exporter/src/main.ts - Export entrypoint → Export config: reads
exporter/src/main.ts - Export entrypoint → Page export: exports pages
exporter/src/main.ts - Export entrypoint → Team page: exports team
exporter/src/main.ts - Export entrypoint → Zotero export: saves database
exporter/src/main.ts - Export entrypoint → Page mapping: adds nav links
exporter/src/main.ts - Export entrypoint → Output utilities: writes outputs
exporter/src/main.ts - Page export → Notion client: reads pages
exporter/src/parse.ts - Page export → Page mapping: uses routes
exporter/src/parse.ts - Page export → Block conversion: converts content
exporter/src/parse.ts - Notion client → Notion API: retrieves blocks
exporter/src/notion.ts - Page mapping → Notion client: uses page IDs
exporter/src/map.ts - Block conversion → Custom components: dispatches components
exporter/src/markdown/blocks.ts - Block conversion → Rich text: converts text
exporter/src/markdown/blocks.ts - Block conversion → Link resolution: resolves mentions
exporter/src/markdown/blocks.ts - Block conversion → MDX helpers: builds MDX
exporter/src/markdown/blocks.ts - Custom components → Media handling: uploads media
exporter/src/markdown/components.ts - Custom components → Rich text: converts text
exporter/src/markdown/components.ts - Custom components → Output utilities: parses CSV
exporter/src/markdown/components.ts - Rich text → Link resolution: resolves links
exporter/src/markdown/rich-text.ts - Rich text → Citation rendering: creates citations
exporter/src/markdown/rich-text.ts - Link resolution → Zotero export: finds literature
exporter/src/markdown/link.ts - Citation rendering → MDX helpers: creates elements
exporter/src/markdown/citations.ts - Media handling → iGEM tools client: uploads assets
exporter/src/markdown/media.ts - iGEM tools client → Export config: uses settings
exporter/src/tools-api.ts - Team page → Notion client: reads team data
exporter/src/team.ts - Team page → iGEM tools client: uses asset client
exporter/src/team.ts - Astro configuration → Export config: references config
web/astro.config.ts