How dfinity/portal works
This archived repository is the DFINITY ICP developer portal: a documentation and learning site with a custom search system. The main search path runs from indexed HTML through document extraction and index construction/upload, then from the site’s search UI through an IC actor to search results. The tree also shows navigation, homepage, blog, and shared site chrome. Source excerpts support the search calls and upload path; unsampled search internals and broader site wiring are represented only where the tree or README supports them.
Main entry points: main.rs Index and upload CLI · actor.ts Canister actor · Search.tsx Search UI · generate-docs.py Document generator
Components 16
Developer portal
- Docs navigation
sidebars.js - Docs homepage
src/components/DocsHome/index.tsx - Blog views
src/theme/BlogPostItems/index.js - Site footer
src/theme/Footer/index.js - Search UI
src/components/Common/Search/Search.tsx
Search indexing
- Built HTML docs
- Document generator
search/src/doc_generator/generate-docs.py - HTML extractor
search/src/doc_generator/lib/extractor.py - Index and upload CLI
search/src/search-cli/src/main.rs - Search index core
search/src/search/src/lib.rs - CLI result output
search/src/search-cli/src/print_results.rs
Search runtime
- Canister actor
src/components/Common/Search/actor.ts - Search interface
search/src/declarations/search/search.did.js - Search canister
search/src/search_canister/src/lib.rs
Other components
- Developer
- IC canister service
Connections 13
- Developer → Docs navigation: browses docs
sidebars.js - Developer → Docs homepage: visits
src/components/DocsHome/index.tsx - Developer → Blog views: reads posts
src/theme/BlogPostItems/index.js - Developer → Search UI: searches
src/components/Common/Search/Search.tsx - Document generator → HTML extractor: extracts with
search/src/doc_generator/generate-docs.py - Built HTML docs → Document generator: provides HTML
search/src/doc_generator/generate-docs.py - Index and upload CLI → Search index core: builds index
search/src/search-cli/src/main.rs - Index and upload CLI → CLI result output: prints results
search/src/search-cli/src/main.rs - Index and upload CLI → Search canister: uploads index
search/src/search-cli/src/main.rs - Search UI → Canister actor: queries
src/components/Common/Search/Search.tsx - Canister actor → Search interface: uses interface
src/components/Common/Search/actor.ts - Canister actor → IC canister service: sends actor calls
- IC canister service → Search canister: routes queries