How casper-network/docs-redux works
Casper Network Docs is a Docusaurus documentation site. A reader navigates its configured documentation sections and uses the site’s theme and custom React components to view content. The README identifies local serving and optional Algolia search; the sidebar excerpt shows material for network concepts, developers, operators, resources, and users. Source excerpts primarily cover configuration and UI components, so links between documentation content and rendering are shown only where supported; unsampled content implementation is not inferred.
Main entry points: index.js Theme assembly · NumberSection/index.tsx Number section · docusaurus.config.js Site configuration · Section/index.tsx Section wrapper
Components 24
Site configuration
- Site configuration
docusaurus.config.js - Environment settings
env.config.js - Theme assembly
config/index.js - Navbar settings
config/theme.navbar.config.js - Footer settings
config/theme.footer.config.js - Algolia settings
config/theme.algolia.config.js - Announcement bar
config/announcementBar.config.js
Documentation navigation
- Docs navigation
config/sidebar.config.js - FAQ navigation
faq/faq.sidebar.js - Condor navigation
condor/condor.sidebar.js
Custom site UI
- Landing sections
src/components/atoms/InfoSection/index.tsx - Image text block
src/components/atoms/ImageAndTextBlock/index.tsx - Section wrapper
src/components/containers/Section/index.tsx - Hero banner
src/components/containers/Hero/Hero.tsx - UI component exports
src/components/atoms/index.ts - Site button
src/components/atoms/SiteButton/index.tsx - Number section
src/components/atoms/NumberSection/index.tsx - Viewport width hook
src/hooks/useWindowWidth.ts - Visibility hook
src/hooks/useOnScreen.ts - Card
src/components/atoms/Card/Card.tsx - Navigation button
src/components/atoms/Button/Button.tsx - Background
src/components/atoms/Background/Background.tsx
Other components
- Reader
- Docusaurus runtime
Connections 17
- Reader → Docusaurus runtime: views site
README - Docusaurus runtime → Site configuration: loads configuration
- Site configuration → Environment settings: imports settings
docusaurus.config.js - Site configuration → Theme assembly: imports theme
docusaurus.config.js - Theme assembly → Navbar settings: imports settings
config/index.js - Theme assembly → Footer settings: imports settings
config/index.js - Theme assembly → Algolia settings: imports settings
config/index.js - Theme assembly → Announcement bar: imports settings
config/index.js - Docusaurus runtime → Docs navigation: uses navigation
- Hero banner → UI component exports: imports components
src/components/containers/Hero/Hero.tsx - Image text block → Section wrapper: renders within
src/components/atoms/ImageAndTextBlock/index.tsx - Image text block → Site button: renders
src/components/atoms/ImageAndTextBlock/index.tsx - Landing sections → Section wrapper: uses wrapper
src/components/atoms/InfoSection/index.tsx - Landing sections → Site button: renders
src/components/atoms/InfoSection/index.tsx - Number section → Section wrapper: uses wrapper
src/components/atoms/NumberSection/index.tsx - Number section → Viewport width hook: checks width
src/components/atoms/NumberSection/index.tsx - Number section → Visibility hook: checks visibility
src/components/atoms/NumberSection/index.tsx