How chromaui/learnstorybook.com works
Learn Storybook is a Gatsby static tutorial site for learning Storybook and Component-Driven Development. Readers browse the tutorial index, choose a guide, then follow its chapters; chapter pages provide table-of-contents navigation, framework and language choices, pagination, and links to example code. Guide and chapter content is authored as Markdown with frontmatter, while the Gatsby layer supplies page data and routes. The graph reflects the supplied tree, README, and excerpts; content files are not present in the supplied tree, so their processing details are limited.
Main entry points: ChapterScreen/index.js Chapter reader · GuideScreen/index.js Guide overview · IndexScreen/index.js Tutorial index · AppLayout.js Application layout
Components 34
Site and routing
- Gatsby page layer
gatsby-node.js - Site configuration
gatsby-config.js - DX data source
src/utils/source-dx-data.js - Tutorial index route
src/pages/index.js - Not-found route
src/pages/404.js
Guide discovery
- Tutorial index
src/components/screens/IndexScreen/index.js - Guide overview
src/components/screens/GuideScreen/index.js - Guide hero
src/components/screens/GuideScreen/Hero.js - Guide contents
src/components/screens/GuideScreen/TableOfContents.js - Guide contributors
src/components/screens/GuideScreen/Contributors.js - Guide listing
src/components/screens/IndexScreen/Guides.js - Community features
src/components/screens/IndexScreen/Community.js - Social proof
src/components/screens/IndexScreen/SocialValidation.js
Chapter learning
- Chapter reader
src/components/screens/ChapterScreen/index.js - Chapter resources
src/components/screens/ChapterScreen/ChapterLinks.js - Framework selector
src/components/screens/ChapterScreen/FrameworkSelector.js - Language selector
src/components/screens/ChapterScreen/LanguageSelector.js - Chapter contents
src/components/screens/ChapterScreen/Sidebar.js - Chapter pagination
src/components/screens/ChapterScreen/Pagination.js - Example code link
src/components/screens/ChapterScreen/GithubLink.js - TOC entry mapping
src/lib/tocEntries.js - Language names
src/lib/getLanguageName.js - Translation lookup
src/lib/getChapterInOtherLanguage.js - Translation messages
src/lib/getTranslationMessages.js
Shared presentation
- Application layout
src/components/composite/AppLayout.js - Site header
src/components/composite/Header.js - Site footer
src/components/composite/Footer.js - Contributor profile
src/components/composite/User.js - Gatsby link adapter
src/components/basics/GatsbyLink.js - Card link
src/components/basics/BoxLink.js - Guide and chapter styles
src/styles/formatting.js - Not-found screen
src/components/screens/NotFoundScreen/NotFoundScreen.js
Other components
- Reader
- DX data service
Connections 37
- Reader → Tutorial index route: opens tutorials
README.md - Tutorial index route → Tutorial index: renders
src/pages/index.js - Tutorial index → Guide listing: renders
src/components/screens/IndexScreen/index.js - Tutorial index → Community features: renders
src/components/screens/IndexScreen/index.js - Tutorial index → Social proof: renders
src/components/screens/IndexScreen/index.js - Tutorial index → Application layout: renders
src/components/screens/IndexScreen/index.js - Reader → Guide overview: opens guide
README.md - Guide overview → Application layout: renders
src/components/screens/GuideScreen/index.js - Guide overview → Guide hero: renders
src/components/screens/GuideScreen/index.js - Guide overview → Guide contents: renders
src/components/screens/GuideScreen/index.js - Guide overview → Guide contributors: renders
src/components/screens/GuideScreen/index.js - Guide overview → TOC entry mapping: maps contents
src/components/screens/GuideScreen/index.js - Guide overview → Language names: names languages
src/components/screens/GuideScreen/index.js - Reader → Chapter reader: opens chapter
README.md - Chapter reader → Application layout: renders
src/components/screens/ChapterScreen/index.js - Chapter reader → TOC entry mapping: maps contents
src/components/screens/ChapterScreen/index.js - Chapter reader → Translation messages: loads messages
src/components/screens/ChapterScreen/index.js - Chapter reader → Framework selector: renders
src/components/screens/ChapterScreen/index.js - Chapter reader → Chapter contents: renders
src/components/screens/ChapterScreen/index.js - Chapter reader → Chapter pagination: renders
src/components/screens/ChapterScreen/index.js - Chapter reader → Example code link: renders
src/components/screens/ChapterScreen/index.js - Chapter reader → Guide and chapter styles: styles content
src/components/screens/ChapterScreen/index.js - Framework selector → Translation lookup: finds translation
src/components/screens/ChapterScreen/FrameworkSelector.js - Framework selector → Gatsby link adapter: links chapters
src/components/screens/ChapterScreen/FrameworkSelector.js - Language selector → Language names: names language
src/components/screens/ChapterScreen/LanguageSelector.js - Language selector → Translation lookup: finds translation
src/components/screens/ChapterScreen/LanguageSelector.js - Language selector → Gatsby link adapter: links chapters
src/components/screens/ChapterScreen/LanguageSelector.js - Chapter resources → Card link: renders
src/components/screens/ChapterScreen/ChapterLinks.js - Chapter contents → TOC entry mapping: uses headings
src/components/screens/ChapterScreen/Sidebar.js - Guide contributors → Contributor profile: renders profiles
src/components/screens/GuideScreen/Contributors.js - Social proof → Contributor profile: renders profiles
src/components/screens/IndexScreen/SocialValidation.js - Application layout → Site header: renders
src/components/composite/AppLayout.js - Application layout → Site footer: renders
src/components/composite/AppLayout.js - Gatsby page layer → Site configuration: uses configuration
gatsby-node.js - Gatsby page layer → DX data source: sources data
gatsby-node.js - DX data source → DX data service: fetches metrics
src/utils/source-dx-data.js - Not-found route → Not-found screen: renders
src/pages/404.js