Skip to content

Overhaul the doc site - #116

Merged
joadan merged 3 commits into
mainfrom
docs-generate-from-sdl
Oct 16, 2026
Merged

joadan merged 3 commits into
mainfrom
docs-generate-from-sdl

Conversation

@joadan

@joadan joadan commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Reworks the documentation site (linq2graphql.com).

Online generator

  • The Schema tab now accepts SDL as well as an introspection result, pasted or uploaded as a file, and detects which one it got.
  • The schema path now uses the selected enum strategy (it was hardcoded to FailIfMissing).
  • Generating no longer resets the active tab (TabBlazor's Dimmer rebuilds its children, so it is replaced with Tabler's dimmer markup).

New pages

  • Home is now an introduction: what Linq2GraphQL is, a first query next to the GraphQL it sends, how it works, features and packages.
  • Getting Started: install, generate, register, first query, client options.
  • Selecting fields: projecting in Select fetches only the fields the projection reads; four examples with the GraphQL and results.
  • Generator: the CLI reference, schema files, the config file and scalar mappings, moved off the home page. Fixes the option list (typos, missing --schema and --agent) and the DI example (Add<Client>, not <Client>).

All examples were run against the Star Wars API; the GraphQL shown is what they actually send.

Removed

  • The Samples section and the Monaco editor. The interface sample used a node id the Star Wars API no longer accepts and crashed the app, and the others only ran behind an unlabelled expand icon.

Upgraded

  • TabBlazor 0.8.1.1-alpha → 1.6.7-beta, Tabler CSS 1.0.0-beta20 → 1.4.0, AddTabler → AddTabBlazor.

docs/ is outside the CI solution filter, so CI does not build these changes; the site was built and checked in the browser.

The Schema tab now accepts SDL as well as an introspection result, pasted
or uploaded as a file, and detects which one it got from the content.

Also pass the selected enum strategy on the schema path (it was hardcoded
to FailIfMissing), and replace TabBlazor's Dimmer with Tabler's dimmer
markup so toggling the loading state no longer resets the active tab.
Replace the home page, which was a copy of the README's reference
material, with an introduction: what Linq2GraphQL is, a first query next
to the GraphQL it sends, how it works, features and packages. Move the
rest into a Getting Started page and a Generator reference page, which
also fixes the option list (typos, missing --schema and --agent) and the
dependency injection example (the method is Add<Client>).

Remove the Samples section and Monaco. The interface sample used a node
id the Star Wars API no longer accepts and crashed the app, and the
others only ran behind an unlabelled expand icon.

Upgrade TabBlazor from 0.8.1.1-alpha to 1.6.7-beta, with Tabler CSS
1.4.0 and AddTabBlazor.
A common misunderstanding is that Linq2GraphQL always fetches whole
objects. Projecting in Select requests only the fields the projection
reads, at any depth. Show that with four examples, each with the GraphQL
it sends and the result, and add a short section to the home page that
links to it.
@joadan
joadan merged commit 2d8da9f into main Oct 16, 2026
2 checks passed
@joadan
joadan deleted the docs-generate-from-sdl branch October 16, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant