Skip to content

docs: add graph documentation page and refine related pages#1048

Merged
redfish4ktc merged 5 commits into
mainfrom
docs/add_graph_page
May 18, 2026
Merged

docs: add graph documentation page and refine related pages#1048
redfish4ktc merged 5 commits into
mainfrom
docs/add_graph_page

Conversation

@redfish4ktc
Copy link
Copy Markdown

@redfish4ktc redfish4ktc commented Apr 15, 2026

  • Add new "Graph" page covering AbstractGraph, Graph, BaseGraph, comparison and use cases
  • Add cross-references to the new page across usage, manual and tutorials docs
  • Refine plugins.md: alphabetized table, emoji status column, BaseGraph examples, warning against duplicate plugins, improved intro of "Choosing the Plugins to Use", removed reference to default plugins
  • Fix typo in website README

Notes

Covers #781

Tasks

Summary by CodeRabbit

  • Documentation
    • Clarified Graph vs BaseGraph behavior (defaults, auto-registration, plugins, styles, perimeters, edge styles) and added a comprehensive Graph hierarchy/usage page with improved cross-references across tutorials and guides.
    • Expanded plugin, image-bundle, i18n, CSS/image, and example guidance; refined multiple tutorial and manual wordings; README note about local dev server/navbar links.
  • Chores
    • Reorganized documentation structure.

Review Change Stack

@redfish4ktc redfish4ktc added the documentation Improvements or additions to documentation label Apr 15, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 15, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e1dce059-c7ea-42b3-90ae-eaf70c318bcf

📥 Commits

Reviewing files that changed from the base of the PR and between 0fd946a and 2fefb41.

📒 Files selected for processing (1)
  • packages/website/docs/usage/graph.md
✅ Files skipped from review due to trivial changes (1)
  • packages/website/docs/usage/graph.md

Walkthrough

This PR adds JSDoc and inline comments to AbstractGraph/Graph, introduces a comprehensive Graph hierarchy guide (graph.md), and updates many website docs to link to and clarify differences between Graph and BaseGraph (auto-registration, plugins, constructor patterns, and related wording).

Changes

Graph and BaseGraph Documentation and Integration

Layer / File(s) Summary
Core source code documentation improvements
packages/core/src/view/AbstractGraph.ts, packages/core/src/view/Graph.ts
JSDoc and inline comments document initializeCollaborators() wiring requirements for subclasses and clarify how Graph builds components via factory methods with positional constructor options.
Comprehensive Graph hierarchy documentation
packages/website/docs/usage/graph.md
New page explains the class hierarchy (AbstractGraph → Graph/BaseGraph), lifecycle hooks, auto-registration behavior, plugin defaults, constructor differences, and provides TypeScript examples for both Graph (batteries-included) and BaseGraph (minimal/opt-in) patterns.
Documentation cross-linking and Graph/BaseGraph clarifications
packages/website/README.md, packages/website/docs/development/high-level-api-description.md, packages/website/docs/intro.md, packages/website/docs/tutorials/graph.md, packages/website/docs/tutorials/the-hello-world-example.md, packages/website/docs/tutorials/editor.md, packages/website/docs/manual/cells.md, packages/website/docs/manual/group-and-complexity-management.md, packages/website/docs/usage/css-and-images.md, packages/website/docs/usage/edge-styles.md, packages/website/docs/usage/global-configuration.md, packages/website/docs/usage/i18n.md, packages/website/docs/usage/image-bundles.md, packages/website/docs/usage/migrate-from-mxgraph.md, packages/website/docs/usage/perimeters.md, packages/website/docs/usage/plugins.md
Update existing docs to link Graph/BaseGraph references to the new hierarchy guide, clarify that style elements and plugins auto-register for Graph but require explicit registration for BaseGraph, and refine wording in tutorials and guides throughout the site.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related issues

Possibly related PRs

Suggested reviewers

  • tbouffard
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description provides a clear overview of changes but lacks several PR checklist items required by the template (PR checklist checkboxes, discussion with maintainers confirmation, scope confirmation). Complete the PR checklist section with all required checkboxes marked, and confirm discussion with maintainers and scope assessment as specified in the template.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: adding a new Graph documentation page and refining related documentation pages.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment thread packages/website/docs/usage/plugins.md Outdated
Comment thread packages/website/docs/usage/plugins.md Outdated
- Add new "Graph" page covering AbstractGraph, Graph, BaseGraph, comparison and use cases
- Add cross-references to the new page across usage, manual and tutorials docs
- Refine plugins.md: alphabetized table, emoji status column, BaseGraph examples,
  warning against duplicate plugins, improved intro of "Choosing the Plugins to Use",
  removed reference to default plugins
- Fix typo in website README
@redfish4ktc redfish4ktc force-pushed the docs/add_graph_page branch from b354aff to b61394f Compare April 27, 2026 14:09
@sonarqubecloud
Copy link
Copy Markdown

@redfish4ktc redfish4ktc changed the title docs: add graph documentation page and update related pages docs: add graph documentation page and refine related pages Apr 28, 2026
@tbouffard tbouffard marked this pull request as ready for review May 16, 2026 06:27
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2

🧹 Nitpick comments (1)
packages/website/docs/usage/plugins.md (1)

25-25: ⚡ Quick win

Consider simplifying "a large number of" to "many".

To reduce wordiness, "a large number of handler instances" could be simplified to "many handler instances" or "numerous handler instances".


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 29e0a523-5595-44fe-b571-0e491bf7f31b

📥 Commits

Reviewing files that changed from the base of the PR and between 5f189e7 and 10cf860.

📒 Files selected for processing (19)
  • packages/core/src/view/AbstractGraph.ts
  • packages/core/src/view/Graph.ts
  • packages/website/README.md
  • packages/website/docs/development/high-level-api-description.md
  • packages/website/docs/intro.md
  • packages/website/docs/manual/cells.md
  • packages/website/docs/manual/group-and-complexity-management.md
  • packages/website/docs/tutorials/editor.md
  • packages/website/docs/tutorials/graph.md
  • packages/website/docs/tutorials/the-hello-world-example.md
  • packages/website/docs/usage/css-and-images.md
  • packages/website/docs/usage/edge-styles.md
  • packages/website/docs/usage/global-configuration.md
  • packages/website/docs/usage/graph.md
  • packages/website/docs/usage/i18n.md
  • packages/website/docs/usage/image-bundles.md
  • packages/website/docs/usage/migrate-from-mxgraph.md
  • packages/website/docs/usage/perimeters.md
  • packages/website/docs/usage/plugins.md

Comment thread packages/website/docs/development/high-level-api-description.md Outdated
Comment thread packages/website/docs/usage/graph.md Outdated
@sonarqubecloud
Copy link
Copy Markdown

@redfish4ktc redfish4ktc merged commit 8d744e1 into main May 18, 2026
14 checks passed
@redfish4ktc redfish4ktc deleted the docs/add_graph_page branch May 18, 2026 09:59
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.

2 participants