Skip to content

docs(get-started): add Cardano Developer Pathway with interactive Mermaid map#1751

Open
danbaruka wants to merge 14 commits intocardano-foundation:stagingfrom
danbaruka:feat/get-started-developer-pathway
Open

docs(get-started): add Cardano Developer Pathway with interactive Mermaid map#1751
danbaruka wants to merge 14 commits intocardano-foundation:stagingfrom
danbaruka:feat/get-started-developer-pathway

Conversation

@danbaruka
Copy link
Copy Markdown
Collaborator

Updating documentation or Bugfix

This PR adds a Cardano Developer Pathway page under Get Started: a single overview with an interactive Mermaid flowchart that outlines typical learning and delivery paths (orientation, tracks, integration, testnets, and specialisations). Nodes use click targets to external docs and to this page where helpful.

Implementation notes

  • New doc: docs/get-started/developer-pathway/overview.mdx, with diagram source in src/data/developer-pathway-chart.js and rendering via src/components/MermaidDiagramFrame (fullscreen, zoom +/- and 1:1 reset, Ctrl/Cmd + scroll zoom, theme-aware diagram background).
  • Sidebar: Developer Pathway is listed fourth under Get Started (after Networks, Infrastructure, Client SDKs) in sidebars.js.
  • Theme: src/theme/DocSidebarItems/index.js keeps all four Get Started siblings visible when viewing the pathway page (avoids Docusaurus hiding inactive categories so the item no longer looks “first” or alone).

Scope / content

  • Intro and closing paragraphs kept short; former deep-link sections and “Explore further” were removed per iteration.
  • Internal Mermaid click URLs point at the pathway doc (no orphaned anchors).

Please review wording and whether the pathway should stay MDX + custom frame or be simplified later.

Add overview with Mermaid pathway map, internal click targets to
on-page anchors, deep-link sections, and Explore further links.
Register Developer Pathway as first item under Get Started sidebar.
Introduce MermaidDiagramFrame using @theme/Mermaid with toolbar zoom,
reset, Ctrl/Cmd+wheel zoom, and fullscreen. Move diagram source to
src/data/developer-pathway-chart.js; convert overview to MDX.
Treat DEFAULT_ZOOM (1.55x) as 100% in the toolbar; reset returns there.
Enlarge percentage typography (1.25rem, bold).
Add MermaidDiagramFrame with full screen API, zoom +/- and 1:1 reset,
and Ctrl/Cmd+scroll zoom over the diagram viewport. Move diagram source
to developer-pathway-chart and render via @theme/Mermaid in overview.mdx.
Stretch the diagram to 100% of the frame width (not Mermaid intrinsic
px size) so default size matches fenced Mermaid in markdown. Widen
viewport min/max height for a larger scroll area.
White canvas in light mode; site dark background in dark mode.
Remove redundant entry from sidebar and streamline internal links in the Developer Pathway overview. Adjust description for clarity and enhance the diagram's click targets for better navigation. Update styles for the Mermaid diagram viewport to improve responsiveness and visual consistency across themes.
Align lockfile with the staging branch baseline for reproducible installs
and CONTRIBUTING guidance.

Made-with: Cursor
@danbaruka danbaruka added the documentation Improvements or additions to documentation label Apr 3, 2026
@Ranchhand87
Copy link
Copy Markdown
Collaborator

Latest version reviewed and tested, PR should be left in /staging or moved to another branch while additional input is considered. Suggested Placement is a new folder (Menu Option) under 'Get Started'.

@katomm
Copy link
Copy Markdown
Member

katomm commented Apr 8, 2026

Hey, like said in the dev ex call, this is a great idea. A few comments on this PR.

The DocSidebarItems override (src/theme/DocSidebarItems/index.js) is the main thing that gives me pause. It overrides a core Docusaurus component just to keep sibling items visible, and it relies on hardcoded checks for the "Networks" label and the pathway doc ID. This will likely break on Docusaurus upgrades without warning. Could this be solved by restructuring the sidebar config instead? For example, making Developer Pathway a category with a link doc (like Client SDKs already does) would avoid the swizzle entirely. (Swizzle something is risky and should be last resort)

A lot of the click links go nowhere useful as the Mermaid click targets point back to /docs/get-started/developer-pathway/overview/ (the page you're already on)

The frontmatter references image: /img/og/og-getstarted-overview.png but the file isn't included in the PR.

@katomm
Copy link
Copy Markdown
Member

katomm commented Apr 23, 2026

Hey @Ranchhand87 should this be merged to staging or to a different branch? I'm asking because of the "PR should be left in /staging". If something is in staging then it will land in main soon after. If we want to work on this on a different branch then @danbaruka should make the PR against the other branch.

- Remove DocSidebarItems override and avoid swizzling core components
- Add Get Started section links and a Developer Pathway category to keep navigation clear
- Update Mermaid click targets to point to useful docs
- Remove invalid OG image frontmatter reference

Made-with: Cursor
Make the diagram movable again by using a scrollable viewport (with hidden
scrollbars) and adding click-and-drag grab-to-pan support. Keep Ctrl/Cmd+wheel
zoom and fullscreen behavior.

Made-with: Cursor
- Refresh Mermaid click URLs to latest targets
- Auto-fit diagram to viewport width on load/fullscreen and add toolbar Fit button

Made-with: Cursor
Start the Mermaid frame at 0.66x so the full diagram better fits the
viewport by default. Reset returns to 66%. Also update pathway click
links.

Made-with: Cursor
Auto-center the scroll viewport on first render and after zoom reset so
the map starts centered at the default 66% zoom.

Made-with: Cursor
@danbaruka
Copy link
Copy Markdown
Collaborator Author

Hey @katomm,

Thanks for the feedback.

I’ve addressed the previous comments:

  • Removed the DocSidebarItems override and restructured the sidebar config
  • Fixed the Mermaid links so they point to the correct pages
  • Added the missing image asset

Everything should be updated now. We can go ahead and merge this into staging.

Let me know if anything else needs adjustment.
Cc: @Ranchhand87

@Ranchhand87
Copy link
Copy Markdown
Collaborator

Hey @Ranchhand87 should this be merged to staging or to a different branch? I'm asking because of the "PR should be left in /staging". If something is in staging then it will land in main soon after. If we want to work on this on a different branch then @danbaruka should make the PR against the other branch.

If the mechanics have not been decided RE: Where this fits in the Portal Infrastructure, then it should be pushed a 'given' or New branch for continued work.

Ideally, as long as you @katomm comments are addressed, I would love to see this up on the Portal. We could even add an in draft label. The goal here is to get it published, but also to work together without overstepping. Happy to grab a quick call as needed to make a clearer decision.

@danbaruka danbaruka requested a review from 0xBora April 29, 2026 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants