Skip to content

docs(design-system-docs): redesign 2.0.0-beta documentation site - #4989

Draft
eddiman wants to merge 8 commits into
mainfrom
docs/redesign-2.0.0-beta
Draft

docs(design-system-docs): redesign 2.0.0-beta documentation site#4989
eddiman wants to merge 8 commits into
mainfrom
docs/redesign-2.0.0-beta

Conversation

@eddiman

@eddiman eddiman commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

What

Redesign of the 2.0.0-beta documentation site.

  • New landing/section pages: about, foundation, getting-started (src/pages/*).
  • New HomepageSections (replaces HomepageFeatures), reworked Footer, client modules for the foundation dropdown nav and Storybook-iframe no-scroll behaviour.
  • Migrated several docs pages from .md to .mdx (about, getting-started, resources, support, components overview) with live next component previews.
  • Component docs wrapped in <Tabs> (When to use / Structure / Guidelines / Accessibility / Figma / Do's & Don'ts) with scrolling="no" on embedded Storybook iframes.
  • Substantial custom.css work, docusaurus.config.ts + sidebars.ts updates, team-page styling.

Resolving @equinor/eds-core-react/next (preserves #4395)

The components overview page renders live next components. Rather than re-adding ./next to the package's committed exports (which would leak /next into stable releases and undo #4395), the docs build resolves it via a webpack alias in the existing eds-resolver plugin (docusaurus.config.ts), pointing at the built artifacts:

  • @equinor/eds-core-react/nextdist/esm-next/index.next.js
  • @equinor/eds-core-react/next/index.cssbuild/index.css

package.json is left untouched, so #4395's beta-only export injection (publish_core_react.yaml) stays the single mechanism for shipping /next.

Build-order note: the alias targets built output, so eds-core-react must be built before the docs (the same requirement the existing eds-tokens/icons/utils aliases already impose).

Scope

  • apps/design-system-docs/**
  • pnpm-lock.yaml (docs-app deps: eds-icons, eds-utils)

No published-package changes. Self-contained — bases on main.

@eddiman
eddiman force-pushed the docs/redesign-2.0.0-beta branch from c3bf47f to d440399 Compare July 13, 2026 10:29
eddiman added 6 commits July 14, 2026 09:36
… components

Restructure the redesigned documentation site onto one reusable system,
removing copy-paste, multiple sources of truth, and DOM-hack client modules.

- Add shared components (Hero, SectionHeading, IconCard/IconCardGrid,
  CtaSection, TeamCard, Icon, StorybookEmbed) and single-source data modules;
  refactor the landing pages and MDX docs onto them.
- Dogfood @equinor/eds-icons and @equinor/eds-tokens; drop hardcoded inline
  SVGs and literal hex/px values.
- Fix dark mode: base text colour and neutral surfaces that did not flip now
  use Infima variables; accent/brand stays on EDS tokens.
- Make the footer config-driven; replace the Foundation hover-menu dropdown
  and the Storybook-iframe scroll hack with idiomatic Docusaurus (plain link,
  StorybookEmbed component).
- Unify all cards onto IconCard; migrate 101 Storybook iframes to
  StorybookEmbed; centralise Tabs/TabItem via theme/MDXComponents.
- Delete legacy CSS (resource-card, about-*, component-gallery, role-card,
  mega-menu) and dead per-page module.css; consolidate custom.css and tokenise
  shadow/radius/spacing.
- Fix correctness bugs: duplicate sidebar category, editUrl 404, broken Slack
  link, class to className, content max-width, hero jump, component-gallery
  collapse at wide viewports.

Add REDESIGN_CONSOLIDATION.md documenting the work.
Reduce the docs site to two explicit layout templates:

- Landing — <DocsLanding> (MDX) or @theme/Layout (React pages) + <Hero> +
  <section className="docs-section"> + <SectionHeading> + cards. Covers the
  overview pages (/, /foundation, /getting-started, /about, components,
  resources, support) and the getting-started guides.
- Doc — full-width auto-hero via the docs-doc-id-{foundation,components}/
  styling (scoped :not(:has(.docs-landing))); component reference docs add the
  tab bar. Covers foundation subpages and component reference docs.

- Add the DocsLanding component (renamed the .about-page full-width breakout to
  .docs-landing and centralised it in custom.css).
- Convert components/resources/support and the getting-started guides to the
  explicit landing structure; drop the .about-hero/.about-section system.
- Fix a duplicate hero (hide Docusaurus's auto doc-title header under
  .docs-landing) and inner-container full-width (scope the breakout to
  main:has(.docs-landing) > .container).
- Rename team.css -> accordion.css (now only holds the FAQ accordion).

Update REDESIGN_CONSOLIDATION.md with the final two-layout reference.
Add a "Which layout each area uses" table to REDESIGN_CONSOLIDATION.md, spelling
out that component reference docs (incl. components/data-display/*) use the Doc
layout with the component-doc-tabs variant, and only the overview/guide pages
use the Landing layout.
…width hero

Rework the component reference docs into a standard three-column Docusaurus
layout (left componentsSidebar + content + right TOC) with a full-width hero
band on top, replacing the previous full-bleed tabbed layout that hid the
sidebar and TOC.

- Flatten the component-doc-tabs into sequential sections so headings feed the TOC
- New component-doc template: hide_title + description frontmatter (lead doubles
  as SEO meta); in-body h1 + intro removed, leaving exactly one h1 (the hero)
- Swizzle DocItem/Layout to render the hero band above the content/TOC row,
  breaking out to fill the main area right of the sidebar
- Drop the components arm from the foundation full-width CSS and delete the
  dead component-doc-tabs block
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